Code::Blocks Forums

User forums => Help => Topic started by: RenierVR on June 12, 2017, 11:00:31 am

Title: Abnormal lags/freezes when editing some header files in large project
Post by: RenierVR on June 12, 2017, 11:00:31 am
Hi

I am working with a fairly large C project (around 110 files included). For some reason, in the last week, Code::Blocks has been exhibit very strange behaviour when opening and trying to edit some of the header files. Every few seconds C::B freezes, which also lasts for a few seconds. Apart from this, the whole program is slow to respond and frequently lags when typing or closing/switching files. The size of the project did not grow significantly recently, and neither did I change anything relating to C::B (such as installing updates or add-ons).

This does not happen at all when editing source files. It doesn't even happen on most header files, only ones that generally seem to be included by a lot of other files in the project.

Are there any settings or automatic linking, or something similar that might be causing these freezes? I've tried to look around but cannot see anything or find anyone with a similar problem in the forums. Any help would be greatly appreciated!

Thanks in advance.
Title: Re: Abnormal lags/freezes when editing some header files in large project
Post by: oBFusCATed on June 12, 2017, 12:33:48 pm
What OS and C::B version are you using?
Title: Re: Abnormal lags/freezes when editing some header files in large project
Post by: RenierVR on June 12, 2017, 04:55:44 pm
I am running Windows 10 Pro and C::B 16.01.
Title: Re: Abnormal lags/freezes when editing some header files in large project
Post by: stahta01 on June 12, 2017, 07:35:19 pm
I suggest turning off the Code Completion plugin; that is the likely cause of the issue.

Devs: Is there any hot keys method to enable and disable Code Completion?
If the OP problem is tied to Code Completion, a fast way to turn it on and off would be good.

Tim S.
 
Title: Re: Abnormal lags/freezes when editing some header files in large project
Post by: oBFusCATed on June 12, 2017, 08:04:37 pm
Devs: Is there any hot keys method to enable and disable Code Completion?
If the OP problem is tied to Code Completion, a fast way to turn it on and off would be good.
No there aren't. And it won't help, because the cc would need to keep track of changes or do a full reparse...
Title: Re: Abnormal lags/freezes when editing some header files in large project
Post by: oBFusCATed on June 12, 2017, 08:08:10 pm
RenierVR: Please test with CC disabled and also test a night build...
Title: Re: Abnormal lags/freezes when editing some header files in large project
Post by: RenierVR on July 07, 2017, 03:30:42 pm
So it turns out the Code Completion plugin was the culprit. Turning it off appears to completely solve the freezing/lagging problem. I tried a fresh C:B install, but the CC plugin still gives problems. Would a nightly build possibly provide me with an updated/improved CC plugin version?
Title: Re: Abnormal lags/freezes when editing some header files in large project
Post by: Commaster on July 07, 2017, 04:21:55 pm
Sadly, no. The current Code Completion plugin was developed for wx2.8 and already did some terrible things(like calling UI functions from a secondary thread). With the arrival of wx3.0 this boiled to the surface.

Currently, a lot of effort is going into developing an alternative: http://forums.codeblocks.org/index.php/board,18.0.html