Author Topic: C::B freezes on changing editor settings  (Read 7530 times)

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9508
C::B freezes on changing editor settings
« on: October 20, 2006, 02:39:22 pm »
Dear all,
I have an issue that C::B freezes if you do the following:
1.) Open a file in an editor
2.) Goto Settings -> Editor.
3.) Toggle the checkbox "Highlight line under cursor..."
4.) Click OK
5.) Have fun with the freeze... ;-)
This does not happen if there is no file open in the editor.
I believe this is related to one of the the find/and replace changes (3101, 3108, 3110...).
Whoever did these - could you please check what might cause this?
With regards, Morten.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: http://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ

Offline tiwag

  • Developer
  • Lives here!
  • *****
  • Posts: 1196
  • sailing away ...
    • tiwag.cb

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9508
Re: C::B freezes on changing editor settings
« Reply #2 on: October 20, 2006, 03:31:39 pm »
me too, see there
http://forums.codeblocks.org/index.php?topic=4261.msg33663#msg33663
Yes - same for me. This sucks. :? I vote for reverting these changes immediatley.
With regards, Morten.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: http://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ

Offline tiwag

  • Developer
  • Lives here!
  • *****
  • Posts: 1196
  • sailing away ...
    • tiwag.cb
Re: C::B freezes on changing editor settings
« Reply #3 on: October 20, 2006, 03:34:52 pm »
I vote for reverting these changes immediatley.

i can't imagine, how this bug is related to find & replace dialog changes ?
need to find the reason first ...

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5195
Re: C::B freezes on changing editor settings
« Reply #4 on: October 20, 2006, 03:59:49 pm »
I highly doubt this has anything to do with search replace. Major changes of serach and replace have effect after you issue that command. When starting cb and going to settings, you not near that place (only nearly related change is the removal of setting of searches in the settings dialog))

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4291
    • Code::Blocks IDE
Re: C::B freezes on changing editor settings
« Reply #5 on: October 20, 2006, 04:07:18 pm »
Guys, don't search. It's a race condition in the codecompletion plugin and has to do with the recent wxFNB changes. It's now getting more events than before and I, obviously, have missed something.
I 'll try to fix it this evening.
Be patient!
This bug will be fixed soon...

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5195

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2180
Re: C::B freezes on changing editor settings
« Reply #7 on: October 20, 2006, 04:44:33 pm »
Guys, don't search. It's a race condition in the codecompletion plugin and has to do with the recent wxFNB changes. It's now getting more events than before and I, obviously, have missed something.
I 'll try to fix it this evening.

You may be right. However I'd like to mention:
1) the wxFNB was updated in svn3090
2) the bug does *not* occur in svn 3094
3) the bug *does* occur in 3103
4) the bug occurs with *only* CC, compiler,debugger plugins loaded
5) the bug only occurs when dismissing the Setting dlg with Ok, not Cancel

So the bug might/must  have happened within:
« Last Edit: October 20, 2006, 04:48:16 pm by Pecan »

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5195
Re: C::B freezes on changing editor settings
« Reply #8 on: October 20, 2006, 05:03:57 pm »
it has been "pointing to this earlier this week" : rev 3100.

Could you try to build with that patch reverted ??

If no-one has done it before i can try, I will try this evening (I hope)

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9508
Re: C::B freezes on changing editor settings
« Reply #9 on: October 20, 2006, 05:17:50 pm »
2) the bug does *not* occur in svn 3094
3) the bug *does* occur in 3103
So the bug might/must  have happened within:
That's what I had in mind, too... and made me believe. Maybe I was wrong.
With regards, Morten.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: http://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ

Offline tiwag

  • Developer
  • Lives here!
  • *****
  • Posts: 1196
  • sailing away ...
    • tiwag.cb
Re: C::B freezes on changing editor settings
« Reply #10 on: October 20, 2006, 05:20:40 pm »
it has been "pointing to this earlier this week" : rev 3100.

Could you try to build with that patch reverted ??

If no-one has done it before i can try, I will try this evening (I hope)

good guess !!!

fixed (reverted rev 3100) now in svn rev 3114

Offline Ceniza

  • Developer
  • Lives here!
  • *****
  • Posts: 1442
    • CenizaSOFT
Re: C::B freezes on changing editor settings
« Reply #11 on: October 20, 2006, 05:40:15 pm »
So the patch that fixes those random crashes causes crashes...

I just tried Morten's steps to make it crash and it didn't (rev 3111). Also tried tiwag's steps and nothing. Maybe a difference is that I don't use Nightly Builds, I compile it, but why then? HT?

Oh, BTW, I have all plugins enabled.

[edit]
I finally saw it. You have to open a project and then open a file. If I open just a file nothing happens.
[/edit]
« Last Edit: October 20, 2006, 05:47:28 pm by Ceniza »

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2180
Re: C::B freezes on changing editor settings
« Reply #12 on: October 20, 2006, 05:46:55 pm »
Re: svn 3114. I concur that the crash/loop is gone.

However, it sure is taking some time for that Settings dlg window to disappear when any options are changed (eg, syntax hilighting).
3-5 seconds on a 1.8mhz Xp Dell 9300.

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2180
Re: C::B freezes on changing editor settings
« Reply #13 on: October 20, 2006, 05:49:58 pm »
If the 3100 patch works for *nix, why not just put a __wxGTK__ guard around it?

Offline rjmyst3

  • Multiple posting newcomer
  • *
  • Posts: 117
    • wxFormBuilder
Re: C::B freezes on changing editor settings
« Reply #14 on: October 20, 2006, 07:15:45 pm »
Quote
If the 3100 patch works for *nix, why not just put a __wxGTK__ guard around it?
Agreed. Those crashes in linux make it very difficult to use.