Author Topic: Crash in 5905 when disabling a plugin  (Read 6625 times)

Offline ironhead

  • Almost regular
  • **
  • Posts: 210
Crash in 5905 when disabling a plugin
« on: November 09, 2009, 04:23:55 am »
I just svn'd up to 5905 and now whenever I try to disable a plugin, I get an immediate crash.  Enabling a plugin seems to work fine.

I'm running Windows XP Professional with Code::Blocks compiled with MinGW GCC/G++ 4.4.0.

No .RPT file is being generated.

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: Crash in 5905 when disabling a plugin
« Reply #1 on: November 09, 2009, 06:43:41 am »
Does this happen with any plugin ?

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: Crash in 5905 when disabling a plugin
« Reply #2 on: November 09, 2009, 09:44:37 am »
I just svn'd up to 5905 and now whenever I try to disable a plugin, I get an immediate crash.
What plugin? Notice that this usually is a bug in the plugin, not C::B.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline ironhead

  • Almost regular
  • **
  • Posts: 210
Re: Crash in 5905 when disabling a plugin
« Reply #3 on: November 09, 2009, 01:00:55 pm »
For me it's happening for all plugins.

Edit: Running codeblocks.exe through GDB when the crash occurs I get:

Program received signal SIGSEGV, Segmentation fault.
0x6277aeab in wxEvtHandler::SearchDynamicEventTable(wxEvent&)
   from C:\Source\codeblocks\trunk\src\devel\wxmsw28u_gcc_custom.dll
« Last Edit: November 09, 2009, 01:49:35 pm by ironhead »

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2875
Re: Crash in 5905 when disabling a plugin
« Reply #4 on: November 09, 2009, 03:18:20 pm »
This seems to be caused by the new BrowseTracker jump code.
I'm looking into it.

Fixed: SVN 5908
« Last Edit: November 09, 2009, 05:15:51 pm by Pecan »

Offline ironhead

  • Almost regular
  • **
  • Posts: 210
Re: Crash in 5905 when disabling a plugin
« Reply #5 on: November 09, 2009, 07:07:42 pm »
Fixed: SVN 5908

I confirm that it is fixed.  Thank you for the quick response Pecan! :)

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6077
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Crash in 5905 when disabling a plugin
« Reply #6 on: November 10, 2009, 01:54:30 pm »
Hi, Pecan:
I have just built the SVN 5908, but I still don't know how to use the new BrowserTrack feature---it seems this plug-in can record the jump information....

Can you give a simple instruction? Which key should I use to navigate forward between the jump position?

Thanks.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2875
Re: Crash in 5905 when disabling a plugin
« Reply #7 on: November 10, 2009, 02:12:33 pm »
Hi, Pecan:
I have just built the SVN 5908, but I still don't know how to use the new BrowserTrack feature---it seems this plug-in can record the jump information....

Can you give a simple instruction? Which key should I use to navigate forward between the jump position?

Thanks.

You'll have to assign a key to View->Jump Back/Frwd with Settings->Editor->Keyboard Shortcuts (KeyBinder)
« Last Edit: November 10, 2009, 02:16:55 pm by Pecan »

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6077
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Crash in 5905 when disabling a plugin
« Reply #8 on: November 10, 2009, 03:34:01 pm »
Hi, Pecan:
I have just built the SVN 5908, but I still don't know how to use the new BrowserTrack feature---it seems this plug-in can record the jump information....

Can you give a simple instruction? Which key should I use to navigate forward between the jump position?

Thanks.

You'll have to assign a key to View->Jump Back/Frwd with Settings->Editor->Keyboard Shortcuts (KeyBinder)

Thanks, it works great!!!
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.