Author Topic: Codeblocks crashes repeatedly on Mac  (Read 3321 times)

Offline thomasak

  • Single posting newcomer
  • *
  • Posts: 2
Codeblocks crashes repeatedly on Mac
« on: October 21, 2019, 02:59:02 pm »
Hi everyone,
It's my first message so I hope everyone is doing great. I am an "amateur" programmer who exclusively uses C language for personal purposes, from time to time.
I used to use code blocks a long time ago on windows and pretty much want to stick with it. But I installed it a few days ago and keeps on crashing without saving!!! Any ideas?
Code blocks version 13.12, constantly crashing on Mac OSX 10.14.6, MacBook Pro Mid 2014. Can anybody know how to fix it?
Huuuuge error message below, I give only the first part (forum max is 20000):

Process:               CodeBlocks [47703]
Path:                  /private/var/folders/*/CodeBlocks.app/Contents/MacOS/CodeBlocks
Identifier:            org.codeblocks.app
Version:               CodeBlocks version 13.12 (CodeBlocks version 13.12)
Code Type:             X86 (Native)
Parent Process:        ??? [1]
Responsible:           CodeBlocks [47703]
User ID:               502
 
 
Date/Time:             2019-10-19 19:07:04.112 +0200
OS Version:            Mac OS X 10.14.6 (18G95)
Report Version:        12
Anonymous UUID:        3404B3ED-703D-6E1A-C40E-D2744C311DC8
 
 
Sleep/Wake UUID:       EC7BA7A6-D62A-49EB-9A27-DF676633E83D
 
 
Time Awake Since Boot: 220000 seconds
Time Since Wake:       3400 seconds
 
 
System Integrity Protection: enabled
 
 
Notes:                 Translocated Process
 
 
Crashed Thread:        0  Dispatch queue: com.apple.main-thread
 
 
Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY
 
 
Application Specific Information:
Assertion failed: (r->shape != NULL), function assert_check_region, file /BuildRoot/Library/Caches/com.apple.xbs/Sources/CoreGraphics/CoreGraphics-1265.9/CoreGraphics/Regions/CGRegion.c, line 29.
 
 
 
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib          0xa7c1ffde __pthread_kill + 10
1   libsystem_pthread.dylib         0xa7cd0125 pthread_kill + 289
2   libsystem_c.dylib               0xa7b7f80e abort + 133
3   libsystem_c.dylib               0xa7b4ab3a __assert_rtn + 305
4   com.apple.CoreGraphics          0x93c5beec assert_check_region + 179
5   com.apple.CoreGraphics          0x93d09c7e CGRegionCreateIntersectionWithRegion + 40
6   com.apple.CoreGraphics          0x93d09c49 CGSIntersectRegion + 22
7   com.apple.HIServices            0x9258dfe2 CreateIntersection(__HIShape const*, __HIShape const*, CGSRegionObject**) + 132
8   com.apple.HIServices            0x9258e263 HIShapeCreateIntersection + 37
9   com.apple.HIToolbox             0x92e14ea5 HIView::BuildAggregateInvalidRegion(__HIShape*) + 329
10  com.apple.HIToolbox             0x92e14db9 HIView::BuildAggregateInvalidRegion(__HIShape*) + 93
11  com.apple.HIToolbox             0x92e14db9 HIView::BuildAggregateInvalidRegion(__HIShape*) + 93
12  com.apple.HIToolbox             0x92e14db9 HIView::BuildAggregateInvalidRegion(__HIShape*) + 93
13  com.apple.HIToolbox             0x92ec33c2 HIView::DetermineAreaToPaint(OpaqueGrafPtr*, unsigned long, __HIShape const*) + 96
14  com.apple.HIToolbox             0x92ec2b29 HIView::DrawComposited(short, OpaqueGrafPtr*, __HIShape const*, unsigned long, HIView*, CGContext*) + 141
15  com.apple.HIToolbox             0x92ec2a50 HIView::Draw(short, OpaqueGrafPtr*, unsigned long) + 56
16  com.apple.HIToolbox             0x92ec2a11 HIView::Render(unsigned long, CGContext*) + 33
17  com.apple.HIToolbox             0x92e20632 FlushWindowObject(WindowData*, void**, unsigned char) + 811
18  com.apple.HIToolbox             0x92e2009d FlushAllBuffers(__CFRunLoopObserver*, unsigned long, void*) + 349
19  com.apple.CoreFoundation        0x938a5aca __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 22
20  com.apple.CoreFoundation        0x938a59f3 __CFRunLoopDoObservers + 459
21  com.apple.CoreFoundation        0x9384bcf7 CFRunLoopRunSpecific + 423
22  com.apple.CoreFoundation        0x93864b5d CFRunLoopRunInMode + 82
23  com.apple.HIToolbox             0x92dea271 RunCurrentEventLoopInMode + 323
24  com.apple.HIToolbox             0x92de9e3c ReceiveNextEventCommon + 438
25  com.apple.HIToolbox             0x92f8e460 ReceiveNextEvent + 68
26  libwx_macu-2.8.dylib            0x004d396a wxApp::MacDoOneEvent() + 74
27  libwx_macu-2.8.dylib            0x004ead67 wxEventLoop::Dispatch() + 39
28  libwx_macu-2.8.dylib            0x0057bb05 wxEventLoopManual::Run() + 133
29  libwx_macu-2.8.dylib            0x00558f3f wxAppBase::MainLoop() + 79
30  libwx_macu-2.8.dylib            0x005589a1 wxAppBase::OnRun() + 33
31  org.codeblocks.app              0x00023337 std::map<cbWatch const*, WatchRawDialog*, std::less<cbWatch const*>, std::allocator<std::pair<cbWatch const* const, WatchRawDialog*> > >::map() + 16407
32  libwx_macu-2.8.dylib            0x00462e54 wxEntry(int&, wchar_t**) + 116
33  libwx_macu-2.8.dylib            0x00462f22 wxEntry(int&, char**) + 50
34  org.codeblocks.app              0x0002a624 std::map<cbWatch const*, WatchRawDialog*, std::less<cbWatch const*>, std::allocator<std::pair<cbWatch const* const, WatchRawDialog*> > >::map() + 45828
35  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:: com.apple.CFSocket.private
0   libsystem_kernel.dylib          0xa7c212b2 __select + 10
1   com.apple.CoreFoundation        0x93876fe4 __CFSocketManager + 678
2   libsystem_pthread.dylib         0xa7ccd5f8 _pthread_body + 137
3   libsystem_pthread.dylib         0xa7cd07f7 _pthread_start + 78
4   libsystem_pthread.dylib         0xa7ccc7ce thread_start + 34
 
 
Thread 2:
0   libsystem_kernel.dylib          0xa7c1a226 semaphore_timedwait_trap + 10
1   com.apple.CoreServices.CarbonCore   0x948e7234 MPWaitOnSemaphore + 86
2   libwx_macu-2.8.dylib            0x004a59c2 wxSemaphore::Wait() + 34
3   libcodeblocks.dylib             0x00d9d4b3 BackgroundThread::Entry() + 35
4   libwx_macu-2.8.dylib            0x004a578c wxThreadInternal::MacThreadStart(void*) + 140
5   com.apple.CoreServices.CarbonCore   0x948e7462 PrivateMPEntryPoint + 51
6   libsystem_pthread.dylib         0xa7ccd5f8 _pthread_body + 137
7   libsystem_pthread.dylib         0xa7cd07f7 _pthread_start + 78
8   libsystem_pthread.dylib         0xa7ccc7ce thread_start + 34
 
 
Thread 3:
0   libsystem_kernel.dylib          0xa7c1a226 semaphore_timedwait_trap + 10
1   com.apple.CoreServices.CarbonCore   0x948e7234 MPWaitOnSemaphore + 86
2   libwx_macu-2.8.dylib            0x004a59c2 wxSemaphore::Wait() + 34
3   libcodeblocks.dylib             0x00d9d4b3 BackgroundThread::Entry() + 35
4   libwx_macu-2.8.dylib            0x004a578c wxThreadInternal::MacThreadStart(void*) + 140
5   com.apple.CoreServices.CarbonCore   0x948e7462 PrivateMPEntryPoint + 51
6   libsystem_pthread.dylib         0xa7ccd5f8 _pthread_body + 137
7   libsystem_pthread.dylib         0xa7cd07f7 _pthread_start + 78
8   libsystem_pthread.dylib         0xa7ccc7ce thread_start + 34
 
 
Thread 4:
0   libsystem_kernel.dylib          0xa7c1a226 semaphore_timedwait_trap + 10
1   com.apple.CoreServices.CarbonCore   0x948e7234 MPWaitOnSemaphore + 86
2   libwx_macu-2.8.dylib            0x004a59c2 wxSemaphore::Wait() + 34
3   libcodeblocks.dylib             0x00d9d4b3 BackgroundThread::Entry() + 35
4   libwx_macu-2.8.dylib            0x004a578c wxThreadInternal::MacThreadStart(void*) + 140
5   com.apple.CoreServices.CarbonCore   0x948e7462 PrivateMPEntryPoint + 51
6   libsystem_pthread.dylib         0xa7ccd5f8 _pthread_body + 137
7   libsystem_pthread.dylib         0xa7cd07f7 _pthread_start + 78
8   libsystem_pthread.dylib         0xa7ccc7ce thread_start + 34
 

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Codeblocks crashes repeatedly on Mac
« Reply #1 on: October 21, 2019, 07:53:01 pm »
Go to night build subforum and try a night build.
The old builds are known to cause problems. They are based on Carbon which is no longer supported by Apple.
In the next release they currently don't allow 32bit builds, so this version of C::B won't even run.
(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 thomasak

  • Single posting newcomer
  • *
  • Posts: 2
Re: Codeblocks crashes repeatedly on Mac
« Reply #2 on: October 22, 2019, 02:46:24 pm »
Honestly I am going to learn how to operate on Xcode, I think it will be less time consuming than trying to fix this code:blocks thing with some non official trials.
Thank you anyway.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Codeblocks crashes repeatedly on Mac
« Reply #3 on: October 22, 2019, 07:27:46 pm »
If you don't intend to switch your OS, using Xcode is the safest and most reliable option.
(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!]