Author Topic: CodeBlocks frequently crashes on osx mavericks  (Read 5865 times)

Offline Calexus

  • Multiple posting newcomer
  • *
  • Posts: 48
CodeBlocks frequently crashes on osx mavericks
« on: February 10, 2014, 05:21:15 pm »
I've been testing the 13.12 release on mavericks (10.9.1) and it doesn't work very well  :'(  On the + side, it feels allot quicker then before. I don't appear have the problem running on Lion (10.7.5).

Here is the crash report, my guess is that its some drawing problem. Code completion maybe?

Code
Process:         CodeBlocks [2093]
Path:            /Applications/CodeBlocks.app/Contents/MacOS/CodeBlocks
Identifier:      org.codeblocks.app
Version:         CodeBlocks version 13.12 (CodeBlocks version 13.12)
Code Type:       X86 (Native)
Parent Process:  launchd [275]
Responsible:     CodeBlocks [2093]
User ID:         501

Date/Time:       2014-02-10 16:45:14.052 +0100
OS Version:      Mac OS X 10.9.1 (13B3116)
Report Version:  11

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

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

Application Specific Information:
Assertion failed: (shape != NULL), function assert_check_shape, file Regions/shape.c, line 155.
 

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib         0x9058a952 __pthread_kill + 10
1   libsystem_pthread.dylib       0x91654167 pthread_kill + 101
2   libsystem_c.dylib             0x96ad7340 abort + 155
3   libsystem_c.dylib             0x96aa243e __assert_rtn + 347
4   com.apple.CoreGraphics         0x94292c85 assert_check_shape + 80
5   com.apple.CoreGraphics         0x9429b31f shape_is_empty + 34
6   com.apple.CoreGraphics         0x9429b7c8 CGRegionIsEmpty + 33
7   com.apple.CoreGraphics         0x9429b79f CGSRegionIsEmpty + 17
8   com.apple.HIServices           0x9201406e HIShapeIsEmpty + 24
9   com.apple.HIServices           0x9201447a CreateIntersection(__HIShape const*, __HIShape const*, CGSRegionObject**) + 36
10  com.apple.HIServices           0x920147ac HIShapeCreateIntersection + 35
11  com.apple.HIToolbox           0x95cf62d4 HIView::BuildAggregateInvalidRegion(__HIShape*) + 326
12  com.apple.HIToolbox           0x95cf61ea HIView::BuildAggregateInvalidRegion(__HIShape*) + 92
13  com.apple.HIToolbox           0x95db8a8c HIView::DetermineAreaToPaint(OpaqueGrafPtr*, unsigned long, __HIShape const*) + 40
14  com.apple.HIToolbox           0x95db81ab HIView::DrawComposited(short, OpaqueGrafPtr*, __HIShape const*, unsigned long, HIView*, CGContext*) + 145
15  com.apple.HIToolbox           0x95db80ce HIView::Draw(short, OpaqueGrafPtr*, unsigned long) + 84
16  com.apple.HIToolbox           0x95db8073 HIView::Render(unsigned long, CGContext*) + 45
17  com.apple.HIToolbox           0x95cff015 FlushWindowObject(WindowData*, void**, unsigned char) + 851
18  com.apple.HIToolbox           0x95d093db FlushAllBuffers(__CFRunLoopObserver*, unsigned long, void*) + 256
19  com.apple.CoreFoundation       0x97baa59e __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 30
20  com.apple.CoreFoundation       0x97baa4ef __CFRunLoopDoObservers + 399
21  com.apple.CoreFoundation       0x97b9ad43 CFRunLoopRunSpecific + 371
22  com.apple.CoreFoundation       0x97b9abbb CFRunLoopRunInMode + 123
23  com.apple.HIToolbox           0x95d00e2d RunCurrentEventLoopInMode + 259
24  com.apple.HIToolbox           0x95d00a47 ReceiveNextEventCommon + 163
25  com.apple.HIToolbox           0x95e9ba46 ReceiveNextEventInMode + 75
26  com.apple.HIToolbox           0x95e9baaa ReceiveNextEvent + 72
27  libwx_macu-2.8.dylib           0x003c496a wxApp::MacDoOneEvent() + 74
28  libwx_macu-2.8.dylib           0x003dbd67 wxEventLoop::Dispatch() + 39
29  libwx_macu-2.8.dylib           0x0046cb05 wxEventLoopManual::Run() + 133
30  libwx_macu-2.8.dylib           0x00449f3f wxAppBase::MainLoop() + 79
31  libwx_macu-2.8.dylib           0x004499a1 wxAppBase::OnRun() + 33
32  org.codeblocks.app             0x00023337 std::map<cbWatch const*, WatchRawDialog*, std::less<cbWatch const*>, std::allocator<std::pair<cbWatch const* const, WatchRawDialog*> > >::map() + 16407
33  libwx_macu-2.8.dylib           0x00353e54 wxEntry(int&, wchar_t**) + 116
34  libwx_macu-2.8.dylib           0x00353f22 wxEntry(int&, char**) + 50
35  org.codeblocks.app             0x0002a624 std::map<cbWatch const*, WatchRawDialog*, std::less<cbWatch const*>, std::allocator<std::pair<cbWatch const* const, WatchRawDialog*> > >::map() + 45828
36  org.codeblocks.app             0x0001f3e5 std::map<cbWatch const*, WatchRawDialog*, std::less<cbWatch const*>, std::allocator<std::pair<cbWatch const* const, WatchRawDialog*> > >::map() + 197

Thread 1:: Dispatch queue: com.apple.libdispatch-manager
0   libsystem_kernel.dylib         0x9058b992 kevent64 + 10
1   libdispatch.dylib             0x955e18bd _dispatch_mgr_invoke + 238
2   libdispatch.dylib             0x955e1556 _dispatch_mgr_thread + 52

Thread 2:: com.apple.CFSocket.private
0   libsystem_kernel.dylib         0x9058aace __select + 10
1   com.apple.CoreFoundation       0x97bebdc6 __CFSocketManager + 1158
2   libsystem_pthread.dylib       0x916535fb _pthread_body + 144
3   libsystem_pthread.dylib       0x91653485 _pthread_start + 130
4   libsystem_pthread.dylib       0x91658cf2 thread_start + 34

Thread 3:
0   libsystem_kernel.dylib         0x90585fce semaphore_timedwait_trap + 10
1   com.apple.CoreServices.CarbonCore 0x9a8d2311 MPWaitOnSemaphore + 104
2   libwx_macu-2.8.dylib           0x003969c2 wxSemaphore::Wait() + 34
3   libcodeblocks.dylib           0x00c8e4b3 BackgroundThread::Entry() + 35
4   libwx_macu-2.8.dylib           0x0039678c wxThreadInternal::MacThreadStart(void*) + 140
5   com.apple.CoreServices.CarbonCore 0x9a8d256e PrivateMPEntryPoint + 68
6   libsystem_pthread.dylib       0x916535fb _pthread_body + 144
7   libsystem_pthread.dylib       0x91653485 _pthread_start + 130
8   libsystem_pthread.dylib       0x91658cf2 thread_start + 34

Thread 4:
0   libsystem_kernel.dylib         0x90585fce semaphore_timedwait_trap + 10
1   com.apple.CoreServices.CarbonCore 0x9a8d2311 MPWaitOnSemaphore + 104
2   libwx_macu-2.8.dylib           0x003969c2 wxSemaphore::Wait() + 34
3   libcodeblocks.dylib           0x00c8e4b3 BackgroundThread::Entry() + 35
4   libwx_macu-2.8.dylib           0x0039678c wxThreadInternal::MacThreadStart(void*) + 140
5   com.apple.CoreServices.CarbonCore 0x9a8d256e PrivateMPEntryPoint + 68
6   libsystem_pthread.dylib       0x916535fb _pthread_body + 144
7   libsystem_pthread.dylib       0x91653485 _pthread_start + 130
8   libsystem_pthread.dylib       0x91658cf2 thread_start + 34

Thread 5:
0   libsystem_kernel.dylib         0x90585fce semaphore_timedwait_trap + 10
1   com.apple.CoreServices.CarbonCore 0x9a8d2311 MPWaitOnSemaphore + 104
2   libwx_macu-2.8.dylib           0x003969c2 wxSemaphore::Wait() + 34
3   libcodeblocks.dylib           0x00c8e4b3 BackgroundThread::Entry() + 35
4   libwx_macu-2.8.dylib           0x0039678c wxThreadInternal::MacThreadStart(void*) + 140
5   com.apple.CoreServices.CarbonCore 0x9a8d256e PrivateMPEntryPoint + 68
6   libsystem_pthread.dylib       0x916535fb _pthread_body + 144
7   libsystem_pthread.dylib       0x91653485 _pthread_start + 130
8   libsystem_pthread.dylib       0x91658cf2 thread_start + 34

Thread 6:
0   libsystem_malloc.dylib         0x917e6b10 szone_size + 651
1   libsystem_malloc.dylib         0x917f3c46 free + 62
2   libwx_macu-2.8.dylib           0x004e8203 wxGenericTreeItem::~wxGenericTreeItem() + 99
3   libwx_macu-2.8.dylib           0x004ea8f1 wxGenericTreeCtrl::Delete(wxTreeItemId const&) + 305
4   libcodecompletion.dylib       0x0d82fc5a ClassBrowserBuilderThread::RemoveInvalidNodes(CCTreeCtrl*, wxTreeItemId) + 2410
5   libcodecompletion.dylib       0x0d837aff ClassBrowserBuilderThread::BuildTree() + 1199
6   libcodecompletion.dylib       0x0d838031 ClassBrowserBuilderThread::Entry() + 129
7   libwx_macu-2.8.dylib           0x0039678c wxThreadInternal::MacThreadStart(void*) + 140
8   com.apple.CoreServices.CarbonCore 0x9a8d256e PrivateMPEntryPoint + 68
9   libsystem_pthread.dylib       0x916535fb _pthread_body + 144
10  libsystem_pthread.dylib       0x91653485 _pthread_start + 130
11  libsystem_pthread.dylib       0x91658cf2 thread_start + 34

Thread 7:
0   libsystem_kernel.dylib         0x90585fce semaphore_timedwait_trap + 10
1   com.apple.CoreServices.CarbonCore 0x9a8d2311 MPWaitOnSemaphore + 104
2   libwx_macu-2.8.dylib           0x003969c2 wxSemaphore::Wait() + 34
3   libcodeblocks.dylib           0x00bc448a cbThreadPool::cbWorkerThread::Entry() + 106
4   libwx_macu-2.8.dylib           0x0039678c wxThreadInternal::MacThreadStart(void*) + 140
5   com.apple.CoreServices.CarbonCore 0x9a8d256e PrivateMPEntryPoint + 68
6   libsystem_pthread.dylib       0x916535fb _pthread_body + 144
7   libsystem_pthread.dylib       0x91653485 _pthread_start + 130
8   libsystem_pthread.dylib       0x91658cf2 thread_start + 34

Thread 8:
0   libsystem_kernel.dylib         0x9058b046 __workq_kernreturn + 10
1   libsystem_pthread.dylib       0x91654dcf _pthread_wqthread + 372
2   libsystem_pthread.dylib       0x91658cce start_wqthread + 30

Thread 9:

Thread 0 crashed with X86 Thread State (32-bit):
  eax: 0x00000000  ebx: 0xa0c67cec  ecx: 0xbffff5dc  edx: 0x9058a952
  edi: 0xa063e1a8  esi: 0x00000006  ebp: 0xbffff5f8  esp: 0xbffff5dc
   ss: 0x00000023  efl: 0x00000206  eip: 0x9058a952   cs: 0x0000000b
   ds: 0x00000023   es: 0x00000023   fs: 0x00000000   gs: 0x0000000f
  cr2: 0xa0c67cf4
  
 

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: CodeBlocks frequently crashes on osx mavericks
« Reply #1 on: February 10, 2014, 08:30:05 pm »
Try to disable the class browser and it should stop to crash.

The crash happens, because some gui operation is executed in a worker thread, which is dangerous and crashy.
« Last Edit: February 10, 2014, 08:36:04 pm by oBFusCATed »
(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 Calexus

  • Multiple posting newcomer
  • *
  • Posts: 48
Re: CodeBlocks frequently crashes on osx mavericks
« Reply #2 on: February 11, 2014, 03:27:29 pm »
I deactivated the Symbols browser, I guess that's what you meant, been working for a day now without crashes.  Thx   :D