gpt4 book ai didi

crashlytics - Crashlytics线程仅在使用Xcode11构建的iOS13上崩溃

转载 作者:行者123 更新时间:2023-12-04 03:03:06 24 4
gpt4 key购买 nike

我的应用仅在具有以下调用堆栈的iOS13上崩溃:

#57. Crashed: com.twitter.crashlytics.ios.exception
0 myapp 0x105d6d494 CLSProcessRecordAllThreads + 376 (CLSProcess.c:376)
1 myapp 0x105d6d87c CLSProcessRecordAllThreads + 407 (CLSProcess.c:407)
2 myapp 0x105d5d58c CLSHandler + 26 (CLSHandler.m:26)
3 myapp 0x105d6bab4 __CLSExceptionRecord_block_invoke + 198 (CLSException.mm:198)
4 libdispatch.dylib 0x1be5c100c _dispatch_client_callout + 20
5 libdispatch.dylib 0x1be5cd804 _dispatch_lane_barrier_sync_invoke_and_complete + 60
6 myapp 0x105d6b55c CLSExceptionRecord + 205 (CLSException.mm:205)
7 myapp 0x105d6b390 CLSExceptionRecordNSException + 102 (CLSException.mm:102)
8 myapp 0x105d6afb4 CLSTerminateHandler() + 258 (CLSException.mm:258)
9 libc++abi.dylib 0x1be6d9634 std::__terminate(void (*)()) + 20
10 libc++abi.dylib 0x1be6d8f58 __cxa_get_exception_ptr + 34
11 libc++abi.dylib 0x1be6d8f10 __cxxabiv1::exception_cleanup_func(_Unwind_Reason_Code, _Unwind_Exception*) + 126
12 libobjc.A.dylib 0x1be6341f8 _objc_exception_destructor(void*) + 362
13 Foundation 0x1bee05434 -[NSISEngine tryToOptimizeReturningMutuallyExclusiveConstraints] + 322
14 Foundation 0x1bebfeb94 -[NSISEngine _optimizeWithoutRebuilding] + 72
15 Foundation 0x1bebfeaa8 -[NSISEngine optimize] + 116
16 Foundation 0x1bebfe718 -[NSISEngine performPendingChangeNotifications] + 116
17 UIKitCore 0x1c2e447c4 -[UIView(Hierarchy) layoutSubviews] + 316
18 UIKitCore 0x1c23c6948 -[UIButton layoutSubviews] + 596
19 UIKitCore 0x1c2e57abc -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 2156
20 libobjc.A.dylib 0x1be62faf0 -[NSObject performSelector:withObject:] + 68
21 QuartzCore 0x1c53f60f4 -[CALayer layoutSublayers] + 292
22 QuartzCore 0x1c53f63fc CA::Layer::layout_if_needed(CA::Transaction*) + 484
23 QuartzCore 0x1c5409964 CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 140
24 QuartzCore 0x1c534ec1c CA::Context::commit_transaction(CA::Transaction*, double) + 308
25 QuartzCore 0x1c5379bd8 CA::Transaction::commit() + 684
26 QuartzCore 0x1c537abc0 CA::Transaction::release_thread(void*) + 232
27 libsystem_pthread.dylib 0x1be62c3c0 _pthread_tsd_cleanup + 584
28 libsystem_pthread.dylib 0x1be624dbc _pthread_exit + 84
29 libsystem_pthread.dylib 0x1be626de8 _pthread_wqthread_legacy_worker_wrap + 98
30 libsystem_pthread.dylib 0x1be626b30 _pthread_wqthread + 424
31 libsystem_pthread.dylib 0x1be62cc78 start_wqthread + 8

--

Fatal Exception: NSInternalInconsistencyException
Modifications to the layout engine must not be performed from a background thread after it has been accessed from the main thread.
0 CoreFoundation 0x1be919c30 __exceptionPreprocess
1 libobjc.A.dylib 0x1be6340c8 objc_exception_throw
2 Foundation 0x1bee05434 -[NSISEngine tryToOptimizeReturningMutuallyExclusiveConstraints]
3 Foundation 0x1bebfeb94 -[NSISEngine _optimizeWithoutRebuilding]
4 Foundation 0x1bebfeaa8 -[NSISEngine optimize]
5 Foundation 0x1bebfe718 -[NSISEngine performPendingChangeNotifications]
6 UIKitCore 0x1c2e447c4 -[UIView(Hierarchy) layoutSubviews]
7 UIKitCore 0x1c23c6948 -[UIButton layoutSubviews]
8 UIKitCore 0x1c2e57abc -[UIView(CALayerDelegate) layoutSublayersOfLayer:]
9 libobjc.A.dylib 0x1be62faf0 -[NSObject performSelector:withObject:]
10 QuartzCore 0x1c53f60f4 -[CALayer layoutSublayers]
11 QuartzCore 0x1c53f63fc CA::Layer::layout_if_needed(CA::Transaction*)
12 QuartzCore 0x1c5409964 CA::Layer::layout_and_display_if_needed(CA::Transaction*)
13 QuartzCore 0x1c534ec1c CA::Context::commit_transaction(CA::Transaction*, double)
14 QuartzCore 0x1c5379bd8 CA::Transaction::commit()
15 QuartzCore 0x1c537abc0 CA::Transaction::release_thread(void*)
16 libsystem_pthread.dylib 0x1be62c3c0 _pthread_tsd_cleanup
17 libsystem_pthread.dylib 0x1be624dbc _pthread_exit
18 libsystem_pthread.dylib 0x1be626de8 _pthread_wqthread_legacy_worker_wrap
19 libsystem_pthread.dylib 0x1be626b30 _pthread_wqthread
20 libsystem_pthread.dylib 0x1be62cc78 start_wqthread

我绝对不知道,这个问题会发生什么,我该如何繁殖。它随机崩溃。我在项目中使用Crashlytics v3.14。有人面对同样的问题吗?

最佳答案

首先,我建议打开Xcode中的“主线程检查器”,转到“产品”->“方案”->“编辑方案”->“诊断”,您应该看到此窗口Diagnostics tab您可以尝试做的另一件事是转到断点部分在Xcode中,单击+号并添加一个符号断点,该断点将侦听特定的调用,您可以向其添加条件以检查是否在主线程上调用了它。

A symbolic breakpoint

如果您碰巧在代码中找到错误,请在此处发布它,因为我在应用程序中遇到的崩溃与您相同,所以这是我尽力找出的错误。希望它可以帮助您!

关于crashlytics - Crashlytics线程仅在使用Xcode11构建的iOS13上崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58393257/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com