[MAC OSX] Lion - Crash

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
badday
Posts: 102
Joined: Mon Aug 16, 2010 1:14 pm

[MAC OSX] Lion - Crash

Post by badday »

There is some strange bug with OSX (Lion) and Irrlicht 1.7.2 when it comes to createDevice and you pass parameters (probably the size). When you leave brackets blank, everything seems to work as intended.
This error occurs not in the same manner all the time, there are at least two options: Either segmentation fault or bus error 10. Here's the callstack for the seg fault:

Code: Select all

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000010
 
VM Regions Near 0x10:
--> 
    __TEXT                 000000010d993000-000000010dce4000 [ 3396K] r-x/rwx SM=COW  /Users/USER/Desktop/*
 
Application Specific Information:
objc_msgSend() selector name: update
objc[3424]: garbage collection is OFF
 
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libobjc.A.dylib                     0x00007fff853dbe90 objc_msgSend + 16
1   libIrrlicht.dylib                   0x000000010ed48d3f irr::CIrrDeviceMacOSX::setResize(int, int) + 331
2   libIrrlicht.dylib                   0x000000010ed464cf -[AppDelegate windowDidResize:] + 175
3   com.apple.Foundation                0x00007fff90dd1d32 __-[NSNotificationCenter addObserver:selector:name:object:]_block_invoke_1 + 47
4   com.apple.CoreFoundation            0x00007fff8a13caaa _CFXNotificationPost + 2634
5   com.apple.Foundation                0x00007fff90dbdfe7 -[NSNotificationCenter postNotificationName:object:userInfo:] + 65
6   com.apple.AppKit                    0x0000000110139d75 -[NSWindow _setFrameCommon:display:stashSize:] + 2234
7   com.apple.AppKit                    0x00000001101394b3 -[NSWindow setFrame:display:] + 60
8   com.apple.AppKit                    0x0000000110137607 -[NSWindow _reallyDoOrderWindow:relativeTo:findKey:forCounter:force:isModal:] + 1033
9   com.apple.AppKit                    0x0000000110137115 -[NSWindow _doOrderWindow:relativeTo:findKey:forCounter:force:isModal:] + 807
10  com.apple.AppKit                    0x0000000110136d99 -[NSWindow orderWindow:relativeTo:] + 154
11  com.apple.AppKit                    0x000000011013663a -[NSWindow makeKeyAndOrderFront:] + 49
12  libIrrlicht.dylib                   0x000000010ed498da irr::CIrrDeviceMacOSX::createWindow() + 2186
13  libIrrlicht.dylib                   0x000000010ed4b1b9 irr::CIrrDeviceMacOSX::CIrrDeviceMacOSX(irr::SIrrlichtCreationParameters const&) + 1469
14  libIrrlicht.dylib                   0x000000010ed4608d createDeviceEx + 93
15  libIrrlicht.dylib                   0x000000010ed45fb4 createDevice + 132
16  APP                                 0x000000010daec801
17  APP                                         0x000000010d997091 main
18  APP                                 0x000000010d9949a4 start + 52
 
Thread 1:: Dispatch queue: com.apple.libdispatch-manager
0   libsystem_kernel.dylib              0x00007fff8972d7e6 kevent + 10
1   libdispatch.dylib                   0x00007fff863a55be _dispatch_mgr_invoke + 923
2   libdispatch.dylib                   0x00007fff863a414e _dispatch_mgr_thread + 54
 
Thread 2:
0   libsystem_kernel.dylib              0x00007fff8972d192 __workq_kernreturn + 10
1   libsystem_c.dylib                   0x00007fff87180594 _pthread_wqthread + 758
2   libsystem_c.dylib                   0x00007fff87181b85 start_wqthread + 13
 
Thread 3:
0   libsystem_kernel.dylib              0x00007fff8972d192 __workq_kernreturn + 10
1   libsystem_c.dylib                   0x00007fff87180594 _pthread_wqthread + 758
2   libsystem_c.dylib                   0x00007fff87181b85 start_wqthread + 13
 
Thread 0 crashed with X86 Thread State (64-bit):
  rax: 0x00007fff8b2249d4  rbx: 0x00007fcaf9542080  rcx: 0x00000001105134e1  rdx: 0x0000000000000010
  rdi: 0x00000001105134e1  rsi: 0x00007fff8b2249d4  rbp: 0x00007fff6d590cb0  rsp: 0x00007fff6d590b40
   r8: 0x000000011137a400   r9: 0x0000000000000146  r10: 0x0000000000000001  r11: 0x0000000000000000
  r12: 0x00007fcafa00f200  r13: 0x00000000000f4278  r14: 0x00007fff8b1a6556  r15: 0x000000000000001f
  rip: 0x00007fff853dbe90  rfl: 0x0000000000010202  cr2: 0x0000000000000010
Logical CPU: 1
Due to some modifications, exact line number might differ.

If more/other information is required, feel free to tell me ;)



badday
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Re: [MAC OSX] Lion - Crash

Post by hybrid »

Please switch over to SVN/trunk for OSX compilation. There have been several issues, which are only fixed in trunk version.
Post Reply