Author Topic: Debugger crashing codeblocks. Is 4785 too many lines?  (Read 4063 times)

Offline ouch

  • Almost regular
  • **
  • Posts: 223
Debugger crashing codeblocks. Is 4785 too many lines?
« on: January 25, 2014, 12:36:26 am »
So I'm getting a consistent crash if I try to go over 4784 lines of code. As soon as I push enter CodeBlocks crashes.

Here is the .RPT log:

Code
Error occured on Friday, January 24, 2014 at 17:16:22.

C:\Programming\codeblocks\src\output\codeblocks.exe caused an Access Violation at location 79726f6d Reading from location 79726f6d.

Registers:
eax=79726f6d ebx=02a49640 ecx=0ea90d48 edx=08c87290 esi=0028eda4 edi=617e0c84
eip=79726f6d esp=0028eb08 ebp=08634760 iopl=0         nv up ei pl nz na po nc
cs=0023  ss=002b  ds=002b  es=002b  fs=0053  gs=002b             efl=00010206

Call stack:
79726F6D
61BDA0B5  C:\Programming\codeblocks\src\output\codeblocks.dll:61BDA0B5  _ZNSt8_Rb_treeIP16cbDebuggerPluginSt4pairIKS1_N15DebuggerManager10PluginDataEESt10_Select1stIS6_ESt4lessIS1_ESaIS6_EE8_M_eraseEPSt13_Rb_tree_nodeIS6_E
617E0F04  C:\Programming\codeblocks\src\output\codeblocks.dll:617E0F04  _ZN8cbEditor16OnEditorModifiedER16wxScintillaEvent
62701242  C:\Programming\codeblocks\src\output\wxmsw28u_gcc_custom.dll:62701242  _ZNK12wxAppConsole11HandleEventEP12wxEvtHandlerMS0_FvR7wxEventES3_
76F5E023  C:\Windows\SysWOW64\ntdll.dll:76F5E023  RtlFreeHeap
6278EEE7  C:\Programming\codeblocks\src\output\wxmsw28u_gcc_custom.dll:6278EEE7  _ZN12wxEvtHandler23SearchDynamicEventTableER7wxEvent
6278EF94  C:\Programming\codeblocks\src\output\wxmsw28u_gcc_custom.dll:6278EF94  _ZN12wxEvtHandler12ProcessEventER7wxEvent
62AE43DF  C:\Programming\codeblocks\src\output\wxmsw28u_gcc_custom.dll:62AE43DF  _ZN12wxStringData6UnlockEv
6289AA38  C:\Programming\codeblocks\src\output\wxmsw28u_gcc_custom.dll:6289AA38  _ZN12wxWindowBase9TryParentER7wxEvent
61939111  C:\Programming\codeblocks\src\output\codeblocks.dll:61939111  _ZN11ScintillaWX12NotifyParentE14SCNotification
61964279  C:\Programming\codeblocks\src\output\codeblocks.dll:61964279  _ZN6Editor14NotifyModifiedEP8Document15DocModificationPv

So I disabled the debugging plugin and the crash does go away. This on a release build of my program too, so I'm not even sure what the debugger plugin is trying to do with the open file.

This is with SVN 9602 of codeblocks 32bit on wxWidgets 2.8 and running on win 7 64bit.

It might also be worth noting that the file for code I'm trying to edit is almost 230kb in size as well.

Online ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5914
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Debugger crashing codeblocks. Is 4785 too many lines?
« Reply #1 on: January 25, 2014, 02:32:51 am »
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 ouch

  • Almost regular
  • **
  • Posts: 223
Re: Debugger crashing codeblocks. Is 4785 too many lines?
« Reply #2 on: January 27, 2014, 10:08:53 pm »
Yep, fixed as of svn 9613.