Skip to content

Instantly share code, notes, and snippets.

@andykorth
Created November 29, 2012 21:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andykorth/7e6e5b25c1a742b326da to your computer and use it in GitHub Desktop.
Save andykorth/7e6e5b25c1a742b326da to your computer and use it in GitHub Desktop.
OpenTK crash
User assembly '/Users/kortham/projects/opentk/Installers/Nsis/Build.Installer.Nsis.exe' is missing. Debugger will now debug all code, not just user code.
Loaded assembly: /Users/kortham/projects/opentk/Binaries/OpenTK/Debug/Examples.exe
Loaded assembly: /Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/gac/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
Loaded assembly: /Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/gac/System/2.0.0.0__b77a5c561934e089/System.dll
Loaded assembly: /Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/gac/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
Loaded assembly: /Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/gac/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
Loaded assembly: /Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/gac/Mono.Posix/2.0.0.0__0738eb9f132ed756/Mono.Posix.dll
Loaded assembly: /Users/kortham/projects/opentk/Binaries/OpenTK/Debug/OpenTK.dll
Loaded assembly: /Users/kortham/projects/opentk/Binaries/OpenTK/Debug/OpenTK.GLControl.dll
Loaded assembly: /Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/gac/I18N/2.0.0.0__0738eb9f132ed756/I18N.dll
Loaded assembly: /Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/gac/I18N.West/2.0.0.0__0738eb9f132ed756/I18N.West.dll
Loaded assembly: /Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/gac/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
Loaded assembly: /Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/gac/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
Loaded assembly: __MetadataTypes
Loaded assembly: __MetadataTypes
Size: 2304
System:
Darwin
Babbage.local
12.2.0
Darwin Kernel Version 12.2.0: Sat Aug 25 00:48:52 PDT 2012; root:xnu-2050.18.24~1/RELEASE_X86_64
x86_64
Detected configuration: MacOS / Mono
Using HIDInput.
Mouse device 144526480 discovered
Mouse device 144524256 discovered
Keyboard device 144530416 discovered
CoreGraphics reported 1 display(s).
Display 0 is at 1280x800
Supports 16 display modes.
Display 0 bounds: {X=0,Y=0,Width=1280,Height=800}
Creating default GraphicsMode (32, 16, 0, 0, 0, 2, False).
Bits per pixel: 32
Depth: 16
Running on Mac OS X 10.8.2.
Setting process to be foreground application.
Creating window...
Created Window: 140986544
Setting window title: 140986544, CFstring : 143792128, Text : OpenTK Window
Created window.
Titlebar size: Rect: [240, 78, 800, 22]
Attached window events.
Creating GraphicsContext.
Bits per pixel: 16
Depth: 16
GraphicsMode: Index: 143740888, Color: 32 (8888), Depth: 16, Stencil: 0, Samples: 0, Accum: 0 (0000), Buffers: 2, Stereo: False
IWindowInfo: MacOS.CarbonWindowInfo: Handle 140986544
GraphicsContextFlags: Default
Requested version: 1.0
Context Type:
Window info: MacOS.CarbonWindowInfo: Handle 140986544
No context sharing will take place.
AGL pixel format attributes:
AGL_RGBA
AGL_DOUBLEBUFFER
AGL_RED_SIZE : 8
AGL_GREEN_SIZE : 8
AGL_BLUE_SIZE : 8
AGL_ALPHA_SIZE : 8
AGL_DEPTH_SIZE : 16
AGL_FULLSCREEN
AGL_NONE
Attribute array: 4 5 8 8 9 8 10 8 11 8 12 16 54 0
Creating AGL context. Sharing with 0
IsControl: False
context: 20642304
Loading extensions for OpenTK.Graphics.OpenGL.GL... 2279 extensions loaded in 487.8231 ms.
Setting window title: 140986544, CFstring : 140632208, Text : OpenTK | OpenGL 1: Immediate mode
Entering main loop.
Disposing context 20642304.
Disposing of AGL context.
Destroying context
Context destruction completed successfully.
Disposing of CarbonGLNative window.
Disposing window 140986544.
Thread started:
Unloaded assembly: __MetadataTypes
Thread finished:
Stacktrace:
at (wrapper managed-to-native) System.Windows.Forms.XplatUICarbon.ReceiveNextEvent (uint,intptr,double,bool,intptr&) <IL 0x00034, 0xffffffff>
at System.Windows.Forms.XplatUICarbon.GetMessage (object,System.Windows.Forms.MSG&,intptr,int,int) [0x000ab] in /private/tmp/monobuild/build/BUILD/mono-2.10.9/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUICarbon.cs:1372
at System.Windows.Forms.XplatUI.GetMessage (object,System.Windows.Forms.MSG&,intptr,int,int) [0x00000] in /private/tmp/monobuild/build/BUILD/mono-2.10.9/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUI.cs:710
at System.Windows.Forms.Application.RunLoop (bool,System.Windows.Forms.ApplicationContext) [0x003de] in /private/tmp/monobuild/build/BUILD/mono-2.10.9/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Application.cs:852
at System.Windows.Forms.Application.Run (System.Windows.Forms.ApplicationContext) [0x00014] in /private/tmp/monobuild/build/BUILD/mono-2.10.9/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Application.cs:724
at System.Windows.Forms.Application.Run (System.Windows.Forms.Form) [0x00000] in /private/tmp/monobuild/build/BUILD/mono-2.10.9/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Application.cs:707
at Examples.Program.Main () [0x00063] in /Users/kortham/projects/opentk/Source/Examples/Main.cs:63
at (wrapper runtime-invoke) object.runtime_invoke_void (object,intptr,intptr,intptr) <IL 0x0004c, 0xffffffff>
Native stacktrace:
0 mono 0x0009fdbf mono_handle_native_sigsegv + 287
1 mono 0x00004f6e mono_sigsegv_signal_handler + 334
2 libsystem_c.dylib 0x9791d86b _sigtramp + 43
3 ??? 0xffffffff 0x0 + 4294967295
4 IOKit 0x9491a256 _IOHIDCallbackApplier + 42
5 CoreFoundation 0x92b05860 __CFDictionaryApplyFunction_block_invoke_0 + 32
6 CoreFoundation 0x92a21411 CFBasicHashApply + 129
7 CoreFoundation 0x92a4169a CFDictionaryApplyFunction + 170
8 IOKit 0x9491bfd4 __IOHIDQueueValueAvailableCallback + 72
9 IOHIDLib 0x0803bcf1 _ZN15IOHIDQueueClass24queueEventSourceCallbackEP12__CFMachPortP17mach_msg_header_tlPv + 43
10 CoreFoundation 0x92a11a8f __CFMachPortPerform + 303
11 CoreFoundation 0x92a11945 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 53
12 CoreFoundation 0x92a11572 __CFRunLoopDoSource1 + 146
13 CoreFoundation 0x92a47296 __CFRunLoopRun + 2038
14 CoreFoundation 0x92a4663a CFRunLoopRunSpecific + 378
15 CoreFoundation 0x92a464ab CFRunLoopRunInMode + 123
16 HIToolbox 0x93b2615a RunCurrentEventLoopInMode + 242
17 HIToolbox 0x93b25ec9 ReceiveNextEventCommon + 374
18 HIToolbox 0x93c8b30c ReceiveNextEvent + 79
19 ??? 0x067c6b6c 0x0 + 108817260
20 ??? 0x067c6138 0x0 + 108814648
21 ??? 0x07955dd9 0x0 + 127229401
22 ??? 0x05add6dc 0x0 + 95278812
23 ??? 0x05adc460 0x0 + 95274080
24 ??? 0x05adbee8 0x0 + 95272680
25 ??? 0x005a3320 0x0 + 5911328
26 ??? 0x005a35b1 0x0 + 5911985
27 mono 0x0000ecf4 mono_jit_runtime_invoke + 164
28 mono 0x00184354 mono_runtime_invoke + 68
29 mono 0x0018a41e mono_runtime_exec_main + 238
30 mono 0x0007464d mono_main + 6797
31 mono 0x00001fd6 start + 54
Debug info from gdb:
Attaching to process 3350.
Reading symbols for shared libraries . done
Reading symbols for shared libraries warning: Trying to remove a section from the ordered section list that did not exist at 0x2ea000.
........................................................................................................................................................................................... done
0x98328095 in __wait4 ()
7 0x983280ee in __workq_kernreturn ()
6 "OGL Profiler" 0x983257d2 in mach_msg_trap ()
5 "com.apple.libdispatch-manager" 0x983289ae in kevent ()
4 0x98327b3e in recvfrom$UNIX2003 ()
3 0x9832580e in semaphore_wait_trap ()
2 0x983257d2 in mach_msg_trap ()
* 1 "com.apple.main-thread" 0x98328095 in __wait4 ()
Thread 7 (process 3350):
#0 0x983280ee in __workq_kernreturn ()
#1 0x9793404c in _pthread_workq_return ()
#2 0x97933e19 in _pthread_wqthread ()
#3 0x9791bcca in start_wqthread ()
Thread 6 (process 3350):
#0 0x983257d2 in mach_msg_trap ()
#1 0x98324cb0 in mach_msg ()
#2 0x983063b5 in glcDebugListener ()
#3 0x97931557 in _pthread_start ()
#4 0x9791bcee in thread_start ()
Thread 5 (process 3350):
#0 0x983289ae in kevent ()
#1 0x9a04bc71 in _dispatch_mgr_invoke ()
#2 0x9a04b7a9 in _dispatch_mgr_thread ()
Thread 4 (process 3350):
#0 0x98327b3e in recvfrom$UNIX2003 ()
#1 0x979bbbcb in recv$UNIX2003 ()
#2 0x000c60d4 in recv_length (fd=3, buf=0xb0284ee1, len=11, flags=0) at debugger-agent.c:997
#3 0x000c7b4d in debugger_thread (arg=0x0) at debugger-agent.c:7156
#4 0x001efa8a in thread_start_routine (args=0x8af2b0) at wthreads.c:287
#5 0x002171d4 in GC_start_routine (arg=0x504f60) at pthread_support.c:1468
#6 0x97931557 in _pthread_start ()
#7 0x9791bcee in thread_start ()
Thread 3 (process 3350):
#0 0x9832580e in semaphore_wait_trap ()
#1 0x001f7eba in mono_sem_wait (sem=0x2c7df0, alertable=1) at mono-semaphore.c:115
#2 0x0012a142 in finalizer_thread (unused=0x0) at gc.c:1066
#3 0x001bd8ec in start_wrapper (data=0x4428e0) at threads.c:784
#4 0x001efa8a in thread_start_routine (args=0x8af234) at wthreads.c:287
#5 0x002171d4 in GC_start_routine (arg=0x504f60) at pthread_support.c:1468
#6 0x97931557 in _pthread_start ()
#7 0x9791bcee in thread_start ()
Thread 2 (process 3350):
#0 0x983257d2 in mach_msg_trap ()
#1 0x98324cb0 in mach_msg ()
#2 0x000ee0da in mach_exception_thread (arg=0x0) at mini-darwin.c:129
#3 0x002171d4 in GC_start_routine (arg=0x504f60) at pthread_support.c:1468
#4 0x97931557 in _pthread_start ()
#5 0x9791bcee in thread_start ()
Thread 1 (process 3350):
#0 0x98328095 in __wait4 ()
#1 0x979bb9a2 in waitpid$UNIX2003 ()
#2 0x0009fe9b in mono_handle_native_sigsegv (signal=11, ctx=0xbfffe35c) at mini-exceptions.c:2192
#3 0x00004f6e in mono_sigsegv_signal_handler (_dummy=11, info=0xbfffe31c, context=0xbfffe35c) at mini.c:5917
#4 <signal handler called>
#5 0x05ac81c8 in ?? ()
#6 0x9491a256 in _IOHIDCallbackApplier ()
#7 0x92b05860 in __CFDictionaryApplyFunction_block_invoke_0 ()
#8 0x92a21411 in CFBasicHashApply ()
#9 0x92a4169a in CFDictionaryApplyFunction ()
#10 0x9491bfd4 in __IOHIDQueueValueAvailableCallback ()
#11 0x0803bcf1 in IOHIDQueueClass::queueEventSourceCallback ()
#12 0x92a11a8f in __CFMachPortPerform ()
#13 0x92a11945 in __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ ()
#14 0x92a11572 in __CFRunLoopDoSource1 ()
#15 0x92a47296 in __CFRunLoopRun ()
#16 0x92a4663a in CFRunLoopRunSpecific ()
#17 0x92a464ab in CFRunLoopRunInMode ()
#18 0x93b2615a in RunCurrentEventLoopInMode ()
#19 0x93b25ec9 in ReceiveNextEventCommon ()
#20 0x93c8b30c in ReceiveNextEvent ()
#21 0x067c6b6c in ?? ()
#22 0x067c6138 in ?? ()
#23 0x07955dd9 in ?? ()
#24 0x05add6dc in ?? ()
#25 0x05adc460 in ?? ()
#26 0x05adbee8 in ?? ()
#27 0x005a3320 in ?? ()
#28 0x005a35b1 in ?? ()
#29 0x0000ecf4 in mono_jit_runtime_invoke (method=0x879e1c, obj=0x0, params=0xbffff7bc, exc=0x0) at mini.c:5791
#30 0x00184354 in mono_runtime_invoke (method=0x879e1c, obj=0x0, params=0xbffff7bc, exc=0x0) at object.c:2755
#31 0x0018a41e in mono_runtime_exec_main (method=0x879e1c, args=0x50dd70, exc=0x0) at object.c:3938
#32 0x0007464d in mono_main (argc=4, argv=0xbffffb08) at driver.c:1003
#33 0x00001fd6 in start ()
=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment