Monotouch 模板 Open GL 应用程序绘制调用生成故障?
我安装了最新的 ios sdk 4.3、最新的 Monotouch 和 MonoDevelop 更新。创建模板开放式 GL 应用程序(旋转的彩色方形),将其命名为 TestBug,并在调用时绘制,我得到下面的应用程序输出。应用程序继续运行,但这是我第一次在 EagleView.cs 中单步调用 GL.DrawArrays 时看到应用程序输出。有其他人看到这个或者可以告诉我我可能做错了什么吗?为喷出的东西道歉。
本机堆栈跟踪:
0 TestBug 0x000b7b4d mono_handle_native_sigsegv + 343
1 TestBug 0x0000e12f mono_sigsegv_signal_handler + 226
2 libSystem.B.dylib 0x9755d45b _sigtramp + 43
3 ??? 0xffffffff 0x0 + 4294967295
4 libLLVMContainer.dylib 0x0229ea48 _ZN4llvm21PrettyStackTraceEntryC2Ev + 84
5 libLLVMContainer.dylib 0x02215f9e _ZN4llvm13FPPassManager13runOnFunctionERNS_8FunctionE + 232
6 libLLVMContainer.dylib 0x02217167 _ZN4llvm23FunctionPassManagerImpl3runERNS_8FunctionE + 197
7 libLLVMContainer.dylib 0x0221726b _ZN4llvm19FunctionPassManager3runERNS_8FunctionE + 83
8 libCoreVMClient.dylib 0x01c3ca79 cvmsCompBuildMonolithicFunction + 1376
9 libCoreVMClient.dylib 0x01c40991 cvmsServerBuildMonolithicFunction + 235
10 libCoreVMClient.dylib 0x01c3e589 CVMSBuildMonolithicFunction + 92
11 libCVMSPluginSupport.dylib 0x01c360d1 _Z29cvm_deferred_build_monolithicPv + 120
12 libCVMSPluginSupport.dylib 0x01c35918 cvmDoWork + 111
13 libSystem.B.dylib 0x975247fd _pthread_start + 345
14 libSystem.B.dylib 0x97524682 thread_start + 34
Debug info from gdb:
warning: Could not find object file "/var/folders/Vv/VvqxJ24WGcqs6wHSaxcLWE+++TI/-Tmp-/tmp60099686.tmp/main.o" - no debug information available for "/var/folders/Vv/VvqxJ24WGcqs6wHSaxcLWE+++TI/-Tmp-/tmp60099686.tmp/main.m".
Attaching to process 5300.
Reading symbols for shared libraries . done
Reading symbols for shared libraries ......................................................................... done
0x974f709a in mach_msg_trap ()
8 0x975023fe in read$UNIX2003 ()
7 "WebThread" 0x974f709a in mach_msg_trap ()
6 0x97525046 in __semwait_signal ()
5 0x974f70d6 in semaphore_wait_trap ()
4 0x974f709a in mach_msg_trap ()
3 0x9751d922 in kevent ()
2 0x9751c9b2 in __workq_kernreturn ()
* 1 "com.apple.main-thread" 0x974f709a in mach_msg_trap ()
Thread 8 (process 5300):
#0 0x975023fe in read$UNIX2003 ()
#1 0x000b7cfd in mono_handle_native_sigsegv (signal=11, ctx=0xb0454bb0) at ../../../../mono/mini/mini-exceptions.c:1826
#2 0x0000e12f in mono_sigsegv_signal_handler (_dummy=10, info=0xb0454b70, context=0xb0454bb0) at ../../../../mono/mini/mini.c:4810
#3 <signal handler called>
#4 0x022bd630 in llvm::sys::AddSignalHandler ()
#5 0x0229ea48 in llvm::PrettyStackTraceEntry::PrettyStackTraceEntry ()
#6 0x02215f9e in llvm::FPPassManager::runOnFunction ()
#7 0x02217167 in llvm::FunctionPassManagerImpl::run ()
#8 0x0221726b in llvm::FunctionPassManager::run ()
#9 0x01c3ca79 in cvmsCompBuildMonolithicFunction ()
#10 0x01c40991 in cvmsServerBuildMonolithicFunction ()
#11 0x01c3e589 in CVMSBuildMonolithicFunction ()
#12 0x01c360d1 in cvm_deferred_build_monolithic ()
#13 0x01c35918 in cvmDoWork ()
#14 0x975247fd in _pthread_start ()
#15 0x97524682 in thread_start ()
Thread 7 (process 5300):
#0 0x974f709a in mach_msg_trap ()
#1 0x974f7807 in mach_msg ()
#2 0x0144cd86 in __CFRunLoopServiceMachPort ()
#3 0x013a9e74 in __CFRunLoopRun ()
#4 0x013a9840 in CFRunLoopRunSpecific ()
#5 0x013a9761 in CFRunLoopRunInMode ()
#6 0x03924913 in RunWebThread ()
#7 0x975247fd in _pthread_start ()
#8 0x97524682 in thread_start ()
Thread 6 (process 5300):
#0 0x97525046 in __semwait_signal ()
#1 0x97550ec5 in nanosleep$UNIX2003 ()
#2 0x97550e03 in usleep$UNIX2003 ()
#3 0x002592b8 in monotouch_pump_gc (context=0x0) at monotouch-glue.m:326
#4 0x975247fd in _pthread_start ()
#5 0x97524682 in thread_start ()
Thread 5 (process 5300):
#0 0x974f70d6 in semaphore_wait_trap ()
#1 0x001508e8 in finalizer_thread (unused=0x0) at ../../../../mono/metadata/gc.c:1026
#2 0x001f1eb8 in start_wrapper (data=0x4f228c0) at ../../../../mono/metadata/threads.c:661
#3 0x0022e94a in thread_start_routine (args=0x505ba34) at ../../../../mono/io-layer/wthreads.c:286
#4 0x00256d79 in GC_start_routine (arg=0x5fc9f60) at ../../../libgc/pthread_support.c:1390
#5 0x975247fd in _pthread_start ()
#6 0x97524682 in thread_start ()
Thread 4 (process 5300):
#0 0x974f709a in mach_msg_trap ()
#1 0x974f7807 in mach_msg ()
#2 0x00114577 in mach_exception_thread (arg=0x0) at ../../../../mono/mini/mini-darwin.c:138
#3 0x975247fd in _pthread_start ()
#4 0x97524682 in thread_start ()
Thread 3 (process 5300):
#0 0x9751d922 in kevent ()
#1 0x01b85f36 in _dispatch_mgr_invoke ()
#2 0x01b86333 in _dispatch_queue_invoke ()
#3 0x01b86593 in _dispatch_worker_thread2 ()
#4 0x9751cd21 in _pthread_wqthread ()
#5 0x9751cb66 in start_wqthread ()
Thread 2 (process 5300):
#0 0x9751c9b2 in __workq_kernreturn ()
#1 0x9751cf48 in _pthread_wqthread ()
#2 0x9751cb66 in start_wqthread ()
Thread 1 (process 5300):
#0 0x974f709a in mach_msg_trap ()
#1 0x974f7807 in mach_msg ()
#2 0x0144cd86 in __CFRunLoopServiceMachPort ()
#3 0x013a9e74 in __CFRunLoopRun ()
#4 0x013a9840 in CFRunLoopRunSpecific ()
#5 0x013a9761 in CFRunLoopRunInMode ()
#6 0x025fd1c4 in GSEventRunModal ()
#7 0x025fd289 in GSEventRun ()
#8 0x00886c93 in UIApplicationMain ()
#9 0x07854681 in ?? ()
#10 0x078545ba in ?? ()
#11 0x0785449d in ?? ()
#12 0x078543d9 in ?? ()
#13 0x07854434 in ?? ()
#14 0x0000df4a in mono_jit_runtime_invoke (method=0x50dde74, obj=0x0, params=0xbfffed8c, exc=0x0) at ../../../../mono/mini/mini.c:4733
#15 0x001baf2b in mono_runtime_invoke (method=0x50dde74, obj=0x0, params=0xbfffed8c, exc=0x0) at ../../../../mono/metadata/object.c:2615
#16 0x001bcb5f in mono_runtime_exec_main (method=0x50dde74, args=0x782d170, exc=0x0) at ../../../../mono/metadata/object.c:3581
#17 0x001bc4a9 in mono_runtime_run_main (method=0x50dde74, argc=0, argv=0xbfffeec4, exc=0x0) at ../../../../mono/metadata/object.c:3355
#18 0x00092d14 in mono_jit_exec (domain=0x5941e58, assembly=0x4f66670, argc=1, argv=0xbfffeec0) at ../../../../mono/mini/driver.c:1094
#19 0x0000349a in main ()
=================================================================
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.
=================================================================
I installed latest ios sdk 4.3, latest Monotouch and MonoDevelop updates. Create template open GL application (the rotating colourful sq) called it TestBug and on call draw I get the application output below. Application continues to run but this is the first time I see the application ouput when stepping over the call GL.DrawArrays in EagleView.cs. Is anyone else seeing this or can clue me to what I might have done wrong? Apologies for the spew.
Native stacktrace:
0 TestBug 0x000b7b4d mono_handle_native_sigsegv + 343
1 TestBug 0x0000e12f mono_sigsegv_signal_handler + 226
2 libSystem.B.dylib 0x9755d45b _sigtramp + 43
3 ??? 0xffffffff 0x0 + 4294967295
4 libLLVMContainer.dylib 0x0229ea48 _ZN4llvm21PrettyStackTraceEntryC2Ev + 84
5 libLLVMContainer.dylib 0x02215f9e _ZN4llvm13FPPassManager13runOnFunctionERNS_8FunctionE + 232
6 libLLVMContainer.dylib 0x02217167 _ZN4llvm23FunctionPassManagerImpl3runERNS_8FunctionE + 197
7 libLLVMContainer.dylib 0x0221726b _ZN4llvm19FunctionPassManager3runERNS_8FunctionE + 83
8 libCoreVMClient.dylib 0x01c3ca79 cvmsCompBuildMonolithicFunction + 1376
9 libCoreVMClient.dylib 0x01c40991 cvmsServerBuildMonolithicFunction + 235
10 libCoreVMClient.dylib 0x01c3e589 CVMSBuildMonolithicFunction + 92
11 libCVMSPluginSupport.dylib 0x01c360d1 _Z29cvm_deferred_build_monolithicPv + 120
12 libCVMSPluginSupport.dylib 0x01c35918 cvmDoWork + 111
13 libSystem.B.dylib 0x975247fd _pthread_start + 345
14 libSystem.B.dylib 0x97524682 thread_start + 34
Debug info from gdb:
warning: Could not find object file "/var/folders/Vv/VvqxJ24WGcqs6wHSaxcLWE+++TI/-Tmp-/tmp60099686.tmp/main.o" - no debug information available for "/var/folders/Vv/VvqxJ24WGcqs6wHSaxcLWE+++TI/-Tmp-/tmp60099686.tmp/main.m".
Attaching to process 5300.
Reading symbols for shared libraries . done
Reading symbols for shared libraries ......................................................................... done
0x974f709a in mach_msg_trap ()
8 0x975023fe in read$UNIX2003 ()
7 "WebThread" 0x974f709a in mach_msg_trap ()
6 0x97525046 in __semwait_signal ()
5 0x974f70d6 in semaphore_wait_trap ()
4 0x974f709a in mach_msg_trap ()
3 0x9751d922 in kevent ()
2 0x9751c9b2 in __workq_kernreturn ()
* 1 "com.apple.main-thread" 0x974f709a in mach_msg_trap ()
Thread 8 (process 5300):
#0 0x975023fe in read$UNIX2003 ()
#1 0x000b7cfd in mono_handle_native_sigsegv (signal=11, ctx=0xb0454bb0) at ../../../../mono/mini/mini-exceptions.c:1826
#2 0x0000e12f in mono_sigsegv_signal_handler (_dummy=10, info=0xb0454b70, context=0xb0454bb0) at ../../../../mono/mini/mini.c:4810
#3 <signal handler called>
#4 0x022bd630 in llvm::sys::AddSignalHandler ()
#5 0x0229ea48 in llvm::PrettyStackTraceEntry::PrettyStackTraceEntry ()
#6 0x02215f9e in llvm::FPPassManager::runOnFunction ()
#7 0x02217167 in llvm::FunctionPassManagerImpl::run ()
#8 0x0221726b in llvm::FunctionPassManager::run ()
#9 0x01c3ca79 in cvmsCompBuildMonolithicFunction ()
#10 0x01c40991 in cvmsServerBuildMonolithicFunction ()
#11 0x01c3e589 in CVMSBuildMonolithicFunction ()
#12 0x01c360d1 in cvm_deferred_build_monolithic ()
#13 0x01c35918 in cvmDoWork ()
#14 0x975247fd in _pthread_start ()
#15 0x97524682 in thread_start ()
Thread 7 (process 5300):
#0 0x974f709a in mach_msg_trap ()
#1 0x974f7807 in mach_msg ()
#2 0x0144cd86 in __CFRunLoopServiceMachPort ()
#3 0x013a9e74 in __CFRunLoopRun ()
#4 0x013a9840 in CFRunLoopRunSpecific ()
#5 0x013a9761 in CFRunLoopRunInMode ()
#6 0x03924913 in RunWebThread ()
#7 0x975247fd in _pthread_start ()
#8 0x97524682 in thread_start ()
Thread 6 (process 5300):
#0 0x97525046 in __semwait_signal ()
#1 0x97550ec5 in nanosleep$UNIX2003 ()
#2 0x97550e03 in usleep$UNIX2003 ()
#3 0x002592b8 in monotouch_pump_gc (context=0x0) at monotouch-glue.m:326
#4 0x975247fd in _pthread_start ()
#5 0x97524682 in thread_start ()
Thread 5 (process 5300):
#0 0x974f70d6 in semaphore_wait_trap ()
#1 0x001508e8 in finalizer_thread (unused=0x0) at ../../../../mono/metadata/gc.c:1026
#2 0x001f1eb8 in start_wrapper (data=0x4f228c0) at ../../../../mono/metadata/threads.c:661
#3 0x0022e94a in thread_start_routine (args=0x505ba34) at ../../../../mono/io-layer/wthreads.c:286
#4 0x00256d79 in GC_start_routine (arg=0x5fc9f60) at ../../../libgc/pthread_support.c:1390
#5 0x975247fd in _pthread_start ()
#6 0x97524682 in thread_start ()
Thread 4 (process 5300):
#0 0x974f709a in mach_msg_trap ()
#1 0x974f7807 in mach_msg ()
#2 0x00114577 in mach_exception_thread (arg=0x0) at ../../../../mono/mini/mini-darwin.c:138
#3 0x975247fd in _pthread_start ()
#4 0x97524682 in thread_start ()
Thread 3 (process 5300):
#0 0x9751d922 in kevent ()
#1 0x01b85f36 in _dispatch_mgr_invoke ()
#2 0x01b86333 in _dispatch_queue_invoke ()
#3 0x01b86593 in _dispatch_worker_thread2 ()
#4 0x9751cd21 in _pthread_wqthread ()
#5 0x9751cb66 in start_wqthread ()
Thread 2 (process 5300):
#0 0x9751c9b2 in __workq_kernreturn ()
#1 0x9751cf48 in _pthread_wqthread ()
#2 0x9751cb66 in start_wqthread ()
Thread 1 (process 5300):
#0 0x974f709a in mach_msg_trap ()
#1 0x974f7807 in mach_msg ()
#2 0x0144cd86 in __CFRunLoopServiceMachPort ()
#3 0x013a9e74 in __CFRunLoopRun ()
#4 0x013a9840 in CFRunLoopRunSpecific ()
#5 0x013a9761 in CFRunLoopRunInMode ()
#6 0x025fd1c4 in GSEventRunModal ()
#7 0x025fd289 in GSEventRun ()
#8 0x00886c93 in UIApplicationMain ()
#9 0x07854681 in ?? ()
#10 0x078545ba in ?? ()
#11 0x0785449d in ?? ()
#12 0x078543d9 in ?? ()
#13 0x07854434 in ?? ()
#14 0x0000df4a in mono_jit_runtime_invoke (method=0x50dde74, obj=0x0, params=0xbfffed8c, exc=0x0) at ../../../../mono/mini/mini.c:4733
#15 0x001baf2b in mono_runtime_invoke (method=0x50dde74, obj=0x0, params=0xbfffed8c, exc=0x0) at ../../../../mono/metadata/object.c:2615
#16 0x001bcb5f in mono_runtime_exec_main (method=0x50dde74, args=0x782d170, exc=0x0) at ../../../../mono/metadata/object.c:3581
#17 0x001bc4a9 in mono_runtime_run_main (method=0x50dde74, argc=0, argv=0xbfffeec4, exc=0x0) at ../../../../mono/metadata/object.c:3355
#18 0x00092d14 in mono_jit_exec (domain=0x5941e58, assembly=0x4f66670, argc=1, argv=0xbfffeec0) at ../../../../mono/mini/driver.c:1094
#19 0x0000349a in main ()
=================================================================
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.
=================================================================
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这是 MonoTouch 中模拟器独有的错误,已在即将发布的版本中修复。带来不便敬请谅解。
This was a simulator only bug in MonoTouch which is fixed in an upcoming release. Sorry for the inconvenience.
我在全新安装的机器上得到了同样的行为。在这批调试喷出之后,GL 示例应用程序继续正常运行,但是我的实际应用程序(使用线程)无法在 iPhone Simulator 调试版本中完成加载(无论我运行它时是否实际上在调试器中,或者不是)。
我的应用程序创建一个线程,在帧循环运行时在后台加载内容,并且该线程似乎在 UIFont 调用内停止。
该应用程序仍然以发布版本运行,而以前的 iOS SDK / MonoTouch 组合并没有发生这种情况。
以下是我使用全新硬盘来解决此问题的方法:
I get the same behavior with a totally fresh machine install. The GL sample app continues to run fine after this batch of debug spew, but my real app, which uses threads, fails to finish loading in an iPhone Simulator Debug build (regardless of whether I'm actually in the debugger when I run it or not).
My app creates a thread that loads stuff in the background while the frame loop runs, and the thread appears to be stopped inside a UIFont call.
The app still runs with a release build, and this did not happen with the previous iOS SDK / MonoTouch combo.
Here's what I did with a completely fresh hard drive to arrive at this problem: