Xamarin.ios 使用Xamarin在MetalContext中崩溃

Xamarin.ios 使用Xamarin在MetalContext中崩溃,xamarin.ios,Xamarin.ios,我们在MetalContext中发生了一次崩溃,仅在iOS 10设备上一天就有3000多起崩溃。我们无法找到错误的根源,谷歌透露没有其他人有同样的问题。有没有人知道我们可以从哪里开始寻找的线索 CRASH_INFO_ENTRY_0 Assertion failed: (_mcimpl->device == [_mcimpl->queue device]), function MetalContext, file /BuildRoot/Library/Caches/com.apple.

我们在MetalContext中发生了一次崩溃,仅在iOS 10设备上一天就有3000多起崩溃。我们无法找到错误的根源,谷歌透露没有其他人有同样的问题。有没有人知道我们可以从哪里开始寻找的线索

CRASH_INFO_ENTRY_0
Assertion failed: (_mcimpl->device == [_mcimpl->queue device]), function MetalContext, file /BuildRoot/Library/Caches/com.apple.xbs/Sources/QuartzCore/QuartzCore-449.40.9/LayerKit/ogl/ogl-metal.mm, line 1005.

tid_403
0  libsystem_kernel.dylib         0x18d19e8e8 __ulock_wait + 8
1  libdispatch.dylib              0x18d06c0d8 _dispatch_ulock_wait + 48
2  libdispatch.dylib              0x18d06c200 _dispatch_thread_event_wait_slow + 36
3  libdispatch.dylib              0x18d069df8 _dispatch_barrier_sync_f_slow + 236
4  QuartzCore                     0x1913e7090 CABackingStoreGetFrontTexture(CABackingStore*) + 92
5  QuartzCore                     0x1913e7118 CABackingStorePrepareFrontTexture + 64
6  QuartzCore                     0x1914db0a4 CA::Layer::prepare_commit(CA::Transaction*) + 320
7  QuartzCore                     0x1914577f8 CA::Context::commit_transaction(CA::Transaction*) + 264
8  QuartzCore                     0x19147ec58 CA::Transaction::commit() + 512
9  QuartzCore                     0x19147f678 CA::Transaction::observer_callback(__CFRunLoopObserver*, unsigned long, void*) + 120
10 CoreFoundation                 0x18e17b7dc __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 32
11 CoreFoundation                 0x18e17940c __CFRunLoopDoObservers + 372
12 CoreFoundation                 0x18e17989c __CFRunLoopRun + 1024
13 CoreFoundation                 0x18e0a8048 CFRunLoopRunSpecific + 444
14 GraphicsServices               0x18fb2e198 GSEventRunModal + 180
15 UIKit                          0x1940942fc -[UIApplication _run] + 684
16 UIKit                          0x19408f034 UIApplicationMain + 208
17 NDC2010                        0x100a321d4 wrapper_managed_to_native_UIKit_UIApplication_UIApplicationMain_int_string___intptr_intptr (<unknown>:1)
18 NDC2010                        0x1009ae138 Xamarin_iOS_UIKit_UIApplication_Main_string___string_string (UIApplication.cs:63)
19 NDC2010                        0x100526288 NDC2010_NDC2010_NDC2010Application_Main_string__ + 28620
20 NDC2010                        0x100921ba4 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 4204776
21 Mono                           0x1019aa4e8 mono_jit_runtime_invoke + 1772
22 Mono                           0x101a1ad64 do_runtime_invoke + 112
23 Mono                           0x101a1d348 mono_runtime_exec_main + 832
24 Mono                           0x101a1cf64 mono_runtime_run_main + 764
25 Mono                           0x10198eb04 mono_jit_exec + 236
26 NDC2010                        0x10051ed3c xamarin_main (monotouch-main.m:487)
27 NDC2010                        0x101291970 main (main.arm64.m:133)
28 libdispatch.dylib              0x18d08c5b8 (Missing)
CRASH\u INFO\u ENTRY\u 0
断言失败:(\u mcimpl->device==[\u mcimpl->queue device]),函数MetalContext,文件/BuildRoot/Library/Caches/com.apple.xbs/Sources/QuartzCore/QuartzCore-449.40.9/LayerKit/ogl/ogl-metal.mm,第1005行。
工贸署403
0 libsystem_kernel.dylib 0x18d19e8e8_uuuulock_wait+8
1 libdispatch.dylib 0x18d06c0d8\u dispatch\u ulock\u wait+48
2 libdispatch.dylib 0x18d06c200 _dispatch_thread_event_wait_slow+36
3 libdispatch.dylib 0x18d069df8 _dispatch_barrier_sync_f_slow+236
4夸脱核心0x1913e7090 CABackingStoreGetFrontTexture(CABackingStore*)+92
5夸脱芯0x1913e7118 CABackingStorePrepareFrontTexture+64
6夸脱核心0x1914db0a4 CA::层::准备提交(CA::事务*)+320
7 QuartzCore 0x1914577f8 CA::上下文::提交_事务(CA::事务*)+264
8 QuartzCore 0x19147ec58 CA::Transaction::commit()+512
9 QuartzCore 0x19147f678 CA::Transaction::observer_回调(uu CFRunLoopObserver*,无符号长,void*)+120
10 CoreFoundation 0x18e17b7dc运行循环正在调用一个观察者回调函数+32
11 CoreFoundation 0x18e17940c\uuu cfrunloopdoobserver+372
12 CoreFoundation 0x18e17989c\uuu CFRunLoopRun+1024
13 CoreFoundation 0x18e0a8048 CFRunLoopRunSpecific+444
14图形服务0x18fb2e198 GSEventRunModal+180
15 UIKit 0x1940942fc-[UIU应用程序运行]+684
16 UIKit 0x19408f034 UIApplicationMain+208
17 NDC2010 0x100a321d4包装器\u托管\u到\u本机\u UIKit\u UIApplication\u UIApplicationMain\u int\u字符串\u intptr\u intptr(:1)
18 NDC2010 0x1009ae138 Xamarin_iOS_UIKit_UIApplication_Main_字符串_字符串_字符串(UIApplication.cs:63)
19 NDC2010 0x100526288 NDC2010\u NDC2010\u NDC2010应用程序\u主字符串\u+28620
20 NDC2010 0x100921ba4包装器运行时调用对象运行时调用动态intptr intptr intptr intptr+4204776
21单声道0x1019aa4e8单声道jit运行时调用+1772
22单声道0x101a1ad64执行运行时调用+112
23单声道0x101a1d348单声道运行时执行主+832
24单声道0x101a1cf64单声道运行时运行主+764
25单声道0x10198eb04单声道实时执行+236
26 NDC2010 0x10051ed3c xamarin_干管(单触式干管,m:487)
27 NDC2010 0x101291970干管(干管arm64.m:133)
28 libdispatch.dylib 0x18d08c5b8(缺失)

我的应用程序在同一个日志中不断崩溃,我修复的是设备的快速重置,我追踪到webView的使用情况。我不能每次都重置设备,所以进一步的测试显示,我使用的是xcode 7.3为ios10构建,这就是问题所在,在更新到xcode 8并重建应用程序后,我不再出现此崩溃。希望这有帮助