Code::Blocks Forums

User forums => Help => Topic started by: wxwizard on March 19, 2013, 05:39:19 pm

Title: Fresh install of CB 12.11 on Fresh install of CentOs 6.3 hangs / unresponsive
Post by: wxwizard on March 19, 2013, 05:39:19 pm
I have a server with a fresh install of CentOs 6.3 and a fresh install of Codeblocks 12.11 via the linux binaries. Specifically:
 Mar 18 02:57:22 Installed: wxBase-2.8.12-1.el6.centos.x86_64
 Mar 18 02:57:25 Installed: wxGTK-2.8.12-1.el6.centos.x86_64
 Mar 18 02:57:29 Installed: codeblocks-12.11-1.el6.x86_64
 Mar 18 02:58:32 Installed: codeblocks-contrib-12.11-1.el6.x86_64

When I open up a project, the UI hangs for a minute or two. I then get control to makes edits, but then the UI hangs again. Does anyone have any clues as to why this is hanging, or where I might look (logs, etc) to see what might be causing CB to become unresponsive?

Unless I can fix this quickly, I'll need to go back to 10.05 as this install is currently un-usable.

Title: Re: Fresh install of CB 12.11 on Fresh install of CentOs 6.3 hangs / unresponsive
Post by: oBFusCATed on March 19, 2013, 06:20:02 pm
Try to unload the code completion plugin in Plugins -> Manage
Title: Re: Fresh install of CB 12.11 on Fresh install of CentOs 6.3 hangs / unresponsive
Post by: wxwizard on March 19, 2013, 08:18:10 pm
Try to unload the code completion plugin in Plugins -> Manage

OK, that seems to fix the hanging issue.
Code completion is nice to have... Is there anything I can do to fix this plugin so that it works?
Title: Re: Fresh install of CB 12.11 on Fresh install of CentOs 6.3 hangs / unresponsive
Post by: oBFusCATed on March 19, 2013, 08:33:09 pm
You can install the debug info for codeblocks and then try to use gdb and grab some backtraces to see where is the problem.

Is your project big? Does it happen with all projects?
Title: Re: Fresh install of CB 12.11 on Fresh install of CentOs 6.3 hangs / unresponsive
Post by: wxwizard on March 19, 2013, 09:02:34 pm
Not too big. The main cpp is 400 lines, but I link in 12 other cpp/h object files. Not sure how many lines that makes in total. If I can find an extra hour, I'll try running the gdb...

Thanks for help! I sure do appreciate it!
Title: Re: Fresh install of CB 12.11 on Fresh install of CentOs 6.3 hangs / unresponsive
Post by: wxwizard on March 19, 2013, 09:08:11 pm
Further thoughts...
Comparatively, I have managed much bigger projects on another server running CB 10.05, and I never had a problem with the code completion plugin. So I don't think this is a project size issue. It seems more like something is getting hung somewhere.
Title: Re: Fresh install of CB 12.11 on Fresh install of CentOs 6.3 hangs / unresponsive
Post by: oBFusCATed on March 19, 2013, 09:38:39 pm
Bigger projects most of the times do more complex stuff that simple projects.
I'm talking about more complex include search paths, sometimes people add to the projects files that are not under the project dir, but some other place and so on.

One thing you could do is to start cb with the --debug-log option and you can inspect the debug log for strange messages.
Title: Re: Fresh install of CB 12.11 on Fresh install of CentOs 6.3 hangs / unresponsive
Post by: pir on March 21, 2013, 03:22:22 pm
I am having exactly the same problem with CB 12.11 on Ubuntu 12.04. When I get a periodic hang the System Monitor reports that the process is in an "Uninterruptible" state and "waiting_for_response.isra.5". What is this problem?

Disabling the code completion plugin does indeed cure the problem for me - I presume this is a known bug? I too did not see these hangs in the old version of CB.

Added 26 March 2013:

I have investigated further. I have a second, notionally identical system on which CodeBlocks 12.11 runs without the problems flagged above. The only difference is that the system on which CodeBlocks hangs was upgraded from Ubuntu 11.10 whereas the systems on which it runs fine was a fresh install. I have checked all the dependencies on both machines and I can see no difference in any of the version numbers. The only difference I can find is that the non-hanging machine has a 32-bit PAE kernel whereas the hanging machine in not PAE. But I cannot think how the page table structures would affect this problem.

Any suggestions welcome!
Title: Re: Fresh install of CB 12.11 on Fresh install of CentOs 6.3 hangs / unresponsive
Post by: ollydbg on April 12, 2013, 03:07:48 am
I also read this bug report Code Completion plugin causes periodic hangs (https://developer.berlios.de/bugs/?func=detailbug&bug_id=18942&group_id=5358), my suggestion is that you can disable some functions in CC (not disable the CC plugin, but only some functionality), like disable the hover hint, disable the symbol browser.... BTW: I'm a currently a windows guy, I hardly find such hang issue.
Title: Re: Fresh install of CB 12.11 on Fresh install of CentOs 6.3 hangs / unresponsive
Post by: oBFusCATed on April 12, 2013, 09:41:34 am
For me it hangs once a day or something like that.
Most of the times it is on RemoveTokenBlaBla....
Title: Re: Fresh install of CB 12.11 on Fresh install of CentOs 6.3 hangs / unresponsive
Post by: pir on April 12, 2013, 11:33:08 am
I also read this bug report Code Completion plugin causes periodic hangs (https://developer.berlios.de/bugs/?func=detailbug&bug_id=18942&group_id=5358), my suggestion is that you can disable some functions in CC (not disable the CC plugin, but only some functionality), like disable the hover hint, disable the symbol browser

OK. Ready to give that a try. How do you turn on/off individual features in the CC plugin? I cannot see any way of doing that.
Title: Re: Fresh install of CB 12.11 on Fresh install of CentOs 6.3 hangs / unresponsive
Post by: ollydbg on April 12, 2013, 12:09:35 pm
OK. Ready to give that a try. How do you turn on/off individual features in the CC plugin? I cannot see any way of doing that.
The settings are in the menu->setting->editor->code completion setting. Thanks.
Title: Re: Fresh install of CB 12.11 on Fresh install of CentOs 6.3 hangs / unresponsive
Post by: pir on April 12, 2013, 12:46:21 pm
OK. Ready to give that a try. How do you turn on/off individual features in the CC plugin? I cannot see any way of doing that.
The settings are in the menu->setting->editor->code completion setting. Thanks.

Not on my install, it's not! (Do you mean the pane down the left side of the Settings->Editor dialog?) Are you using Windows? I am on Linux...
Title: Re: Fresh install of CB 12.11 on Fresh install of CentOs 6.3 hangs / unresponsive
Post by: ollydbg on April 12, 2013, 03:33:54 pm
Do you mean the pane down the left side of the Settings->Editor dialog?
Yes, that's right. I mean the code completion setting panel in the Editor dialog.
Title: Re: Fresh install of CB 12.11 on Fresh install of CentOs 6.3 hangs / unresponsive
Post by: pir on April 12, 2013, 05:55:59 pm
Do you mean the pane down the left side of the Settings->Editor dialog?
Yes, that's right. I mean the code completion setting panel in the Editor dialog.

This does not exist on the Linux version! At least not on the machine which misbehaves... But it certainly does on Windows. Can any other Linux users confirm that there is no such pane under Linux? (That may be part of my problem!)
Title: Re: Fresh install of CB 12.11 on Fresh install of CentOs 6.3 hangs / unresponsive
Post by: Jenna on April 12, 2013, 10:33:33 pm
It's definitely there if the plugin is not disabled, but might not always be at the same place (as on windows).
Title: Re: Fresh install of CB 12.11 on Fresh install of CentOs 6.3 hangs / unresponsive
Post by: pir on April 15, 2013, 11:47:19 am
It's definitely there if the plugin is not disabled, but might not always be at the same place (as on windows).

Sorry, I'm being dim! It wasn't displaying because I disabled the CC plugin... because it was hanging the whole IDE.

I will following up on ollydbg's suggestion of turning on/off various features to see if I can isolate what is causing the problem.