Author Topic: CODE BLOCKS CRASHING ON MAC. HELP!  (Read 5855 times)

Offline yzepeda28

  • Single posting newcomer
  • *
  • Posts: 2
CODE BLOCKS CRASHING ON MAC. HELP!
« on: July 23, 2011, 02:31:07 am »
Entering Settings, Editor, Source Formatter followed by changing the format and selecting OK crashes CodeBlocks. :shock:

Any help would be appreciated! :D

Offline Freem

  • Almost regular
  • **
  • Posts: 219
Re: CODE BLOCKS CRASHING ON MAC. HELP!
« Reply #1 on: July 24, 2011, 03:33:37 pm »
What C::B version do you use:
8.02, 10.05, nightly dgb, nightly trunk?

And for Mac, I don't use it, but I guess all Macs are not the same, so which one do you use?

Offline Ceniza

  • Developer
  • Lives here!
  • *****
  • Posts: 1441
    • CenizaSOFT
Re: CODE BLOCKS CRASHING ON MAC. HELP!
« Reply #2 on: July 24, 2011, 03:55:46 pm »
I have just reproduced the problem here, and it is caused by the keybinder plugin (Keyboard Shortcuts).

Here is part of the crash report, just in case.

Quote
Crashed Thread:  0  Dispatch queue: com.apple.main-thread

Exception Type:  EXC_CRASH (SIGILL)
Exception Codes: 0x0000000000000000, 0x0000000000000000

Application Specific Information:
objc[422]: garbage collection is OFF

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libsystem_c.dylib                0x9b070c1d _spin_lock$VARIANT$mp + 13
1   libsystem_c.dylib                0x9b03866b szone_malloc + 24
2   libsystem_c.dylib                0x9b06e962 malloc_zone_malloc + 77
3   libsystem_c.dylib                0x9b06f882 malloc + 50
4   libwx_macu-2.8.0.dylib           0x00699a12 wxStringBase::AllocBuffer(unsigned long) + 54
5   libwx_macu-2.8.0.dylib           0x00699f79 wxStringBase::InitWith(wchar_t const*, unsigned long, unsigned long) + 49
6   libwx_macu-2.8.0.dylib           0x0069acdb wxString::Left(unsigned long) const + 75
7   libkeybinder.so                  0x0ac603b9 wxMenuCmd::IsNumericMenuItem(wxMenuItem*) + 81
8   libkeybinder.so                  0x0ac60612 wxMenuCmd::Update(wxMenuItem*) + 48
9   libkeybinder.so                  0x0ac56801 wxKeyBinder::UpdateSubMenu(wxMenu*) + 285
10  libkeybinder.so                  0x0ac56779 wxKeyBinder::UpdateSubMenu(wxMenu*) + 149
11  libkeybinder.so                  0x0ac5694a wxKeyBinder::UpdateAllCmd(wxMenuBar*) + 70
12  libkeybinder.so                  0x0ac4eea5 cbKeyBinder::OnKeyConfigDialogDone(MyDialog*) + 261
13  libkeybinder.so                  0x0ac4f1f9 MyDialog::OnApply() + 27
14  libcodeblocks.0.dylib            0x00157ff0 EditorConfigurationDlg::EndModal(int) + 9812
15  libwx_macu-2.8.0.dylib           0x007a3982 wxDialogBase::AcceptAndClose() + 64

Funny thing is that disabling that plugin does not solve the problem. Snippet follows.

Quote
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib           0x98fbfc22 mach_msg_trap + 10
1   libsystem_kernel.dylib           0x98fbf1f6 mach_msg + 70
2   com.apple.CoreGraphics           0x9304a738 _CGSGetWindowWorkspaceIgnoringVisibility + 155
3   com.apple.CoreGraphics           0x9304a69b CGSGetWindowWorkspaceIgnoringVisibility + 245
4   com.apple.HIToolbox              0x9099e886 WindowData::OnActiveSpace() + 158
5   com.apple.HIToolbox              0x9099f102 HideWindow + 115
6   libwx_macu-2.8.0.dylib           0x00752e9d wxTopLevelWindowMac::Show(bool) + 401
7   libwx_macu-2.8.0.dylib           0x0070546a wxDialog::Show(bool) + 38
8   libcodeblocks.0.dylib            0x0020e396 wxScrollingDialog::Show(bool) + 68
9   libwx_macu-2.8.0.dylib           0x0070564e wxDialog::EndModal(int) + 38
10  libcodeblocks.0.dylib            0x001559d8 EditorConfigurationDlg::EndModal(int) + 60

Who's to blame now? wxWidgets?

Offline Freem

  • Almost regular
  • **
  • Posts: 219
Re: CODE BLOCKS CRASHING ON MAC. HELP!
« Reply #3 on: July 24, 2011, 04:12:39 pm »
If I remember correctly, I'd read somewhere on this forum that disabling plug-ins does not avoid them to be loaded.
I don't know details, but try to remove it completely?

Offline yzepeda28

  • Single posting newcomer
  • *
  • Posts: 2
Re: CODE BLOCKS CRASHING ON MAC. HELP!
« Reply #4 on: July 24, 2011, 06:53:33 pm »
I have 10.5, I'm going to try and remove the plug ins and see if that works

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12298
    • Travis build status
Re: CODE BLOCKS CRASHING ON MAC. HELP!
« Reply #5 on: July 24, 2011, 08:08:01 pm »
Ceniza:
Have you tried reproduce the problem with a trunk version?
I think this was fixed after the release of 10.05...
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline Ceniza

  • Developer
  • Lives here!
  • *****
  • Posts: 1441
    • CenizaSOFT
Re: CODE BLOCKS CRASHING ON MAC. HELP!
« Reply #6 on: July 25, 2011, 06:02:35 pm »
Ceniza:
Have you tried reproduce the problem with a trunk version?
I think this was fixed after the release of 10.05...

Nope. I have not tried to compile it myself yet. One of these days... maybe :(

Offline Ceniza

  • Developer
  • Lives here!
  • *****
  • Posts: 1441
    • CenizaSOFT
Re: CODE BLOCKS CRASHING ON MAC. HELP!
« Reply #7 on: July 26, 2011, 08:10:41 pm »
Well, I gave it a try, but I could not get wxWidgets 2.8 to build on Lion. I will see if I can get 2.9 to build, and then Code::Blocks with it.