2010-12-11 3 views
2

ok 배경으로 가면 모든 것을 숨 깁니다. 다시 전환 할 때 여전히 시간 오류로 다시 시작하지 못했습니다. 모든 것이 숨겨져 있다면 drawRect에서 충돌이 발생하는 이유는 무엇입니까? 이와 같은 "재개 실패"오류를 처리하는 방법에 대한 아이디어가 있습니까?배경 충돌로 다시 시작하면 "제 시간에 다시 시작하지 못했습니다"

Incident Identifier: 0E5ADFDF-1EB1-4ECC-9F02-57B37F1BBBA1 
CrashReporter Key: 17186e938075dd5907223199eccdc85176f18698 
Hardware Model:  iPad1,1 
Process:   hexProto [2162] 
Path:   /var/mobile/Applications/31D43A9F-0EF3-4D03-89AC-243B68F75D91/hexProto.app/hexProto 
Identifier:  hexProto 
Version:   ??? (???) 
Code Type:  ARM (Native) 
Parent Process: launchd [1] 

Date/Time:  2010-12-10 15:56:11.615 -0800 
OS Version:  iPhone OS 4.2 (8C134) 
Report Version: 104 

Exception Type: 00000020 
Exception Codes: 0x8badf00d 
Highlighted Thread: 0 

Application Specific Information: 
Annexation failed to resume in time 

Elapsed total CPU time (seconds): 9.880 (user 7.320, system 2.560), 97% CPU 
Elapsed application CPU time (seconds): 7.650, 75% CPU 

Thread 0: 
0 ImageIO      0x00009740 ImageIO_ABGR_TO_ARGB_8Bit + 44 
1 ImageIO      0x00006ade ImageProviderCopyImageBlockSetCallback + 210 
2 CoreGraphics     0x00009052 CGImageProviderCopyImageBlockSetWithOptions + 226 
3 CoreGraphics     0x00008f5c CGImageProviderCopyImageBlockSet + 32 
4 CoreGraphics     0x00008c8a img_blocks_create + 182 
5 CoreGraphics     0x00025e1a img_blocks_extent + 42 
6 CoreGraphics     0x00025d06 img_interpolate_extent + 70 
7 CoreGraphics     0x00004e90 img_data_lock + 4376 
8 CoreGraphics     0x00003668 CGSImageDataLock + 104 
9 libRIP.A.dylib    0x0000c658 ripc_AcquireImage + 2676 
10 libRIP.A.dylib    0x00009c6e ripc_DrawImage + 462 
11 CoreGraphics     0x00003520 CGContextDelegateDrawImage + 44 
12 CoreGraphics     0x000033de CGContextDrawImage + 250 
13 UIKit       0x000148aa -[UIImage drawInRect:blendMode:alpha:] + 1182 
14 UIKit       0x0003affe -[UIImage drawInRect:] + 50 
15 hexProto      0x00047782 -[NormalButton drawRect:] (NormalButton.m:48) 
16 UIKit       0x000132d2 -[UIView(CALayerDelegate) drawLayer:inContext:] + 258 
17 QuartzCore     0x000152fe -[CALayer drawInContext:] + 86 
18 QuartzCore     0x0001507c backing_callback(CGContext*, void*) + 32 
19 QuartzCore     0x00014af2 CABackingStoreUpdate + 1226 
20 QuartzCore     0x0001435c -[CALayer _display] + 724 
21 QuartzCore     0x0001406a -[CALayer display] + 134 
22 QuartzCore     0x00013fb0 CALayerDisplayIfNeeded + 176 
23 QuartzCore     0x0000956e CA::Context::commit_transaction(CA::Transaction*) + 214 
24 QuartzCore     0x0000937c CA::Transaction::commit() + 184 
25 QuartzCore     0x000092bc CA::Transaction::pop() + 120 
26 QuartzCore     0x0000923a +[CATransaction commit] + 18 
+0

applicationWillEnterForeground 메소드 등을 구현 했습니까? – Jumhyn

+0

글쎄, 난 그냥 사임 후 숨겨진 모든 것들을 남겨 두었다. 나는 다시 볼 수있게 설정하지 않았다. 여전히 그립을 시도합니다. – Blaze

+0

drawRect 뷰가 숨겨져있는 경우에도 때로는 호출됩니다 믿습니다. 어떤 아이디어로 인해 그 방법에서 충돌이 발생합니까? – Jumhyn

답변

2

인스 트루먼 트 (특히 상어)를 사용하여 무슨 일이 일어나고 있는지 확인하십시오.

스프링 보드가 앱을 죽이는 이유는 허용 된 10 초를 초과하기 때문입니다 (Apple은 정확한 숫자는 게시하지 않는 것으로 보이지만 일반적인 지혜는 10으로 고정되어있는 것처럼 보입니다). 어떻게 당신이 1.5 그리기하고 다음 8 초 동안 다른 작업을하고 아니라고 알고있다 -

Elapsed total CPU time (seconds): 9.880 (user 7.320, system 2.560), 97% CPU 

프로그램 충돌, 일부 드로잉을 수행 할 수있다하면? 그것이 내가 상어를 사용하여 CPU 시간의 가장 많은 부분을 차지하는 부분을 찾아내는 곳입니다.

그런 다음이를 분석하여 수행 할 수있는 작업을 확인하십시오.

+0

아주 좋은 생각입니다. 나는 그것을 시도 할 것이다. – Blaze

+0

어떻게되는지 알려주세요. 문제가 해결되지 않으면 알려주세요. – makdad

관련 문제