[英]iOS app crashes crashes occasionally - Upon screen display or scroll down
我的iOS應用程序崩潰在某個屏幕上。 偶爾會發生這種情況。
應用程序有時會在屏幕出現時崩潰,或者有時在我們向下滾動屏幕時崩潰。 這是崩潰報告:
Exception Type: SIGSEGV
Exception Codes: SEGV_ACCERR at 0xe0000010
Crashed Thread: 0
Thread 0 Crashed:
0 libobjc.A.dylib 0x3958af2a _objc_release + 10
1 CoreFoundation 0x31637441 __CFAutoreleasePoolPop + 17
2 Foundation 0x31f5c01d -[NSAutoreleasePool release] + 121
3 UIKit 0x335437e1 -[UITableView layoutSubviews] + 225
4 UIKit 0x334ff803 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 259
5 QuartzCore 0x332a9d8b -[CALayer layoutSublayers] + 215
6 QuartzCore 0x332a9929 CA::Layer::layout_if_needed(CA::Transaction*) + 461
7 QuartzCore 0x332aa85d CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 17
8 QuartzCore 0x332aa243 CA::Context::commit_transaction(CA::Transaction*) + 239
9 QuartzCore 0x332aa051 CA::Transaction::commit() + 317
10 QuartzCore 0x332e10f7 CA::Display::DisplayLink::dispatch(unsigned long long, unsigned long long) + 255
11 QuartzCore 0x332e0ff1 CA::Display::IOMFBDisplayLink::callback(__IOMobileFramebuffer*, unsigned long long, unsigned long long, unsigned long long, void*) + 65
12 IOMobileFramebuffer 0x35538fd7 IOMobileFramebufferVsyncNotifyFunc + 155
13 IOKit 0x322db449 _IODispatchCalloutFromCFMessage + 193
14 CoreFoundation 0x316be5db __CFMachPortPerform + 119
15 CoreFoundation 0x316c9173 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 35
16 CoreFoundation 0x316c9117 __CFRunLoopDoSource1 + 139
17 CoreFoundation 0x316c7f99 __CFRunLoopRun + 1385
18 CoreFoundation 0x3163aebd _CFRunLoopRunSpecific + 357
19 CoreFoundation 0x3163ad49 _CFRunLoopRunInMode + 105
20 GraphicsServices 0x351ed2eb _GSEventRunModal + 75
21 UIKit 0x33550301 _UIApplicationMain + 1121
22 Numerology 0x00021313 main (main.m:13)
我試圖通過代碼來查找可能的異常源,但我無法跟蹤異常。
請指教。
謝謝
SIGSEGV是一個分段錯誤,這意味着您正在嘗試訪問無效的內存地址。
SIGSEGV字面意思是指您正在訪問您不擁有的地址。 所以你不一定要訪問已發布的對象; 你可以訪問一個從未存在的對象,如:
UIView *myView; // uninitialised, may point to anything
[myView setFrame:someFrame];
甚至只是在C級非對象內容中出錯,例如:
int array[100];
array[1000] = 23; // out-of-bounds access
所以請仔細檢查您的代碼。 可能是你發現了這個錯誤。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.