Author Topic: Mac OS X 10.9 (Mavericks) compatibility  (Read 8099 times)

Offline lrampey

  • Single posting newcomer
  • *
  • Posts: 2
Mac OS X 10.9 (Mavericks) compatibility
« on: November 20, 2013, 06:14:40 pm »
I have tried over the past week or so to go back uninstall, reinstall and read up on the wiki about how to get code blocks running
on mavericks.

I'll tell you guys what I ended up doing, I'm new to code blocks (I've used netbeans previously but this class prefers code blocks and from what I have experienced on my windows partition I enjoy it) and I can't always use my windows partition (installed on bootcamp, requires restart) but I would really like to see if I can get it work.

Basically I can create a new project but as soon as I click on the main function to edit my code the program crashes and I get this error
Code
Process:         CodeBlocks [28007]
Path:            /Applications/CodeBlocks.app/Contents/MacOS/CodeBlocks
Identifier:      org.codeblocks.app
Version:         12.11 (8629)
Code Type:       X86 (Native)
Parent Process:  launchd [266]
Responsible:     CodeBlocks [28007]
User ID:         501

Date/Time:       2013-11-20 12:06:22.011 -0500
OS Version:      Mac OS X 10.9 (13A603)
Report Version:  11
Anonymous UUID:  BC16847A-0A41-4F38-75BA-0A6FE6A9CEAA

Sleep/Wake UUID: 3F00555A-3A08-4641-A075-73EB24846035

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

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

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libsystem_pthread.dylib       0x9755d8b7 pthread_threadid_np + 50
1   libsystem_pthread.dylib       0x975607e1 _pthread_mutex_lock + 48
2   libsystem_pthread.dylib       0x975607ac pthread_mutex_lock + 16
3   com.apple.HIToolbox           0x90780cd0 _NotifyEventLoopObservers + 162
4   com.apple.HIToolbox           0x907a60bf PostEventToQueueInternal + 761
5   com.apple.HIToolbox           0x907a5d9e PostEventToQueue + 124
6   libwx_macu-2.8.0.dylib         0x0091cad9 wxMacWakeUp() + 201
7   libwx_macu-2.8.0.dylib         0x00880d62 wxWakeUpIdle() + 34
8   libcodecompletion.so           0x093801da CCLogger::DebugLog(wxString const&) + 120
9   libcodecompletion.so           0x0932f053 ClassBrowser::OnThreadEvent(wxCommandEvent&) + 135
10  libwx_macu-2.8.0.dylib         0x0090e0c3 wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) + 115
11  libwx_macu-2.8.0.dylib         0x0090e23f wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) + 111
12  libwx_macu-2.8.0.dylib         0x0090e98f wxEvtHandler::ProcessEvent(wxEvent&) + 207
13  libwx_macu-2.8.0.dylib         0x0090ecac wxEvtHandler::ProcessPendingEvents() + 108
14  libwx_macu-2.8.0.dylib         0x00880df9 wxAppConsole::ProcessPendingEvents() + 137
15  libwx_macu-2.8.0.dylib         0x00906d62 wxMacProcessNotifierAndPendingEvents + 34
16  libwx_macu-2.8.0.dylib         0x009337d4 wxApp::MacHandleOneEvent(void*) + 100
17  libwx_macu-2.8.0.dylib         0x0093386f wxApp::MacDoOneEvent() + 127
18  libwx_macu-2.8.0.dylib         0x0094dbe3 wxEventLoop::Dispatch() + 35
19  libwx_macu-2.8.0.dylib         0x009febaf wxEventLoopManual::Run() + 111
20  libwx_macu-2.8.0.dylib         0x009d6353 wxAppBase::MainLoop() + 83
21  org.codeblocks.app             0x0000e76c CodeBlocksApp::OnRun() + 26
22  libwx_macu-2.8.0.dylib         0x008bb3ea wxEntry(int&, wchar_t**) + 154
23  org.codeblocks.app             0x000126ee main + 30
24  org.codeblocks.app             0x0000c39d start + 53

Thread 1:: Dispatch queue: com.apple.libdispatch-manager
0   libsystem_kernel.dylib         0x92f06992 kevent64 + 10
1   libdispatch.dylib             0x90f8f8bd _dispatch_mgr_invoke + 238
2   libdispatch.dylib             0x90f8f556 _dispatch_mgr_thread + 52

Thread 2:: com.apple.CFSocket.private
0   libsystem_kernel.dylib         0x92f05ace __select + 10
1   com.apple.CoreFoundation       0x98c1cdc6 __CFSocketManager + 1158
2   libsystem_pthread.dylib       0x9755d5fb _pthread_body + 144
3   libsystem_pthread.dylib       0x9755d485 _pthread_start + 130
4   libsystem_pthread.dylib       0x97562cf2 thread_start + 34

Thread 3:
0   libsystem_kernel.dylib         0x92f00fce semaphore_timedwait_trap + 10
1   com.apple.CoreServices.CarbonCore 0x918a2311 MPWaitOnSemaphore + 104
2   libwx_macu-2.8.0.dylib         0x00904f1b wxSemaphoreInternal::WaitTimeout(unsigned long) + 27
3   libwx_macu-2.8.0.dylib         0x00904fd4 wxSemaphore::Wait() + 36
4   libcodeblocks.0.dylib         0x00220e6d BackgroundThread::Entry() + 119
5   libwx_macu-2.8.0.dylib         0x0090614d wxThreadInternal::MacThreadStart(void*) + 173
6   com.apple.CoreServices.CarbonCore 0x918a256e PrivateMPEntryPoint + 68
7   libsystem_pthread.dylib       0x9755d5fb _pthread_body + 144
8   libsystem_pthread.dylib       0x9755d485 _pthread_start + 130
9   libsystem_pthread.dylib       0x97562cf2 thread_start + 34

Thread 4:
0   libsystem_kernel.dylib         0x92f00fce semaphore_timedwait_trap + 10
1   com.apple.CoreServices.CarbonCore 0x918a2311 MPWaitOnSemaphore + 104
2   libwx_macu-2.8.0.dylib         0x00904f1b wxSemaphoreInternal::WaitTimeout(unsigned long) + 27
3   libwx_macu-2.8.0.dylib         0x00904fd4 wxSemaphore::Wait() + 36
4   libcodeblocks.0.dylib         0x00220e6d BackgroundThread::Entry() + 119
5   libwx_macu-2.8.0.dylib         0x0090614d wxThreadInternal::MacThreadStart(void*) + 173
6   com.apple.CoreServices.CarbonCore 0x918a256e PrivateMPEntryPoint + 68
7   libsystem_pthread.dylib       0x9755d5fb _pthread_body + 144
8   libsystem_pthread.dylib       0x9755d485 _pthread_start + 130
9   libsystem_pthread.dylib       0x97562cf2 thread_start + 34

Thread 5:
0   libsystem_kernel.dylib         0x92f00fce semaphore_timedwait_trap + 10
1   com.apple.CoreServices.CarbonCore 0x918a2311 MPWaitOnSemaphore + 104
2   libwx_macu-2.8.0.dylib         0x00904f1b wxSemaphoreInternal::WaitTimeout(unsigned long) + 27
3   libwx_macu-2.8.0.dylib         0x00904fd4 wxSemaphore::Wait() + 36
4   libcodeblocks.0.dylib         0x00220e6d BackgroundThread::Entry() + 119
5   libwx_macu-2.8.0.dylib         0x0090614d wxThreadInternal::MacThreadStart(void*) + 173
6   com.apple.CoreServices.CarbonCore 0x918a256e PrivateMPEntryPoint + 68
7   libsystem_pthread.dylib       0x9755d5fb _pthread_body + 144
8   libsystem_pthread.dylib       0x9755d485 _pthread_start + 130
9   libsystem_pthread.dylib       0x97562cf2 thread_start + 34

Thread 6:
0   libsystem_kernel.dylib         0x92f00fce semaphore_timedwait_trap + 10
1   com.apple.CoreServices.CarbonCore 0x918a2311 MPWaitOnSemaphore + 104
2   libwx_macu-2.8.0.dylib         0x00904f1b wxSemaphoreInternal::WaitTimeout(unsigned long) + 27
3   libwx_macu-2.8.0.dylib         0x00904fd4 wxSemaphore::Wait() + 36
4   libcodeblocks.0.dylib         0x00220e6d BackgroundThread::Entry() + 119
5   libwx_macu-2.8.0.dylib         0x0090614d wxThreadInternal::MacThreadStart(void*) + 173
6   com.apple.CoreServices.CarbonCore 0x918a256e PrivateMPEntryPoint + 68
7   libsystem_pthread.dylib       0x9755d5fb _pthread_body + 144
8   libsystem_pthread.dylib       0x9755d485 _pthread_start + 130
9   libsystem_pthread.dylib       0x97562cf2 thread_start + 34

Thread 7:
0   libsystem_kernel.dylib         0x92f00fce semaphore_timedwait_trap + 10
1   com.apple.CoreServices.CarbonCore 0x918a2311 MPWaitOnSemaphore + 104
2   libwx_macu-2.8.0.dylib         0x00904f1b wxSemaphoreInternal::WaitTimeout(unsigned long) + 27
3   libwx_macu-2.8.0.dylib         0x00904fd4 wxSemaphore::Wait() + 36
4   libcodeblocks.0.dylib         0x001b06f0 cbThreadPool::cbWorkerThread::Entry() + 198
5   libwx_macu-2.8.0.dylib         0x0090614d wxThreadInternal::MacThreadStart(void*) + 173
6   com.apple.CoreServices.CarbonCore 0x918a256e PrivateMPEntryPoint + 68
7   libsystem_pthread.dylib       0x9755d5fb _pthread_body + 144
8   libsystem_pthread.dylib       0x9755d485 _pthread_start + 130
9   libsystem_pthread.dylib       0x97562cf2 thread_start + 34


Thread 0 crashed with X86 Thread State (32-bit):
  eax: 0x9755d893  ebx: 0xa040a710  ecx: 0xa13df1a8  edx: 0xbffff8a0
  edi: 0x00000000  esi: 0x00000016  ebp: 0xbffff858  esp: 0xbffff840
   ss: 0x00000023  efl: 0x00000246  eip: 0x9755d8b7   cs: 0x0000001b
   ds: 0x00000023   es: 0x00000023   fs: 0x00000000   gs: 0x0000000f
  cr2: 0x0a832340
  
Logical CPU:     0
Error Code:      0x00000000
Trap Number:     222


External Modification Summary:
  Calls made by other processes targeting this process:
    task_for_pid: 2
    thread_create: 0
    thread_set_state: 0
  Calls made by this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by all processes on this machine:
    task_for_pid: 253261
    thread_create: 1
    thread_set_state: 0

VM Region Summary:
ReadOnly portion of Libraries: Total=277.3M resident=106.5M(38%) swapped_out_or_unallocated=170.8M(62%)
Writable regions: Total=140.1M written=5260K(4%) resident=66.6M(48%) swapped_out=0K(0%) unallocated=73.5M(52%)
 
REGION TYPE                      VIRTUAL
===========                      =======
ATS (font support)                 32.9M
CG backing stores                  3212K
CG image                             72K
CG raster data                      296K
CG shared images                    212K
CoreGraphics                          4K
CoreImage                             4K
CoreServices                        432K
Foundation                            4K
IOKit                               408K
IOKit (reserved)                      4K        reserved VM address space (unallocated)
Kernel Alloc Once                     4K
MALLOC                             68.6M
MALLOC (admin)                       48K
Memory Tag 242                       12K
Memory Tag 249                      156K
OpenCL                               40K
OpenGL GLSL                        1280K
Stack                              72.2M
VM_ALLOCATE                        17.2M
__DATA                             34.2M
__IMAGE                             528K
__IMPORT                             12K
__LINKEDIT                         56.2M
__OBJC                             4096K
__PAGEZERO                            4K
__TEXT                            221.1M
__UNICODE                           544K
mapped file                        85.4M
shared memory                        68K
===========                      =======
TOTAL                             598.9M
TOTAL, minus reserved VM space    598.9M
 


I have installed the latest version of Xcode, then installed the latest version of code blocks.
I thought I had everything covered but am I missing a step to get these two things talking to each other properly?

Thanks in advance

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7191
    • My Best Post
Re: Mac OS X 10.9 (Mavericks) compatibility
« Reply #1 on: November 20, 2013, 06:39:17 pm »
I suggest trying to start up CB with command line option "--safe-mode"
It should disable most or all CB Plugins.

I would then go into the plugin manager and disable most of the Plugins.
I would at least disable the Code Completion Plugin.

Then exit Code::Blocks and see if it works without the option of  "--safe-mode"

Note: I am a Windows User and have NOT yet used the option "--safe-mode".

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline jens

  • Administrator
  • Lives here!
  • *****
  • Posts: 7254
Re: Mac OS X 10.9 (Mavericks) compatibility
« Reply #2 on: November 20, 2013, 06:59:40 pm »
You can not disable plugins in safe-mode (they are all disabled).
But as I can see, you can start C::b without crash, and the crash occurs after loading the project.

There are three crash-candidates in the 12.11 release on macosx, see: http://forums.codeblocks.org/index.php/topic,17325.msg118871.html#msg118871

Offline lrampey

  • Single posting newcomer
  • *
  • Posts: 2
Re: Mac OS X 10.9 (Mavericks) compatibility
« Reply #3 on: November 20, 2013, 07:01:28 pm »
Excellent that worked!

I couldn't run it in safe mode but I was able to just go in and disable that plugin, I will note the other 2 and possibly go ahead and disable them
Code
- CodeCompletion
- ThreadSearch
- KeyMacs

So far I just tested a few of my previously compiled programs, I will update this thread if I see anymore potential problems.

Thanks so much for the quick fix, I would have never guessed...