2010-12-09 2 views
2

10.5에서만 발생하는 앱에 이상한 충돌 문제가 있습니다. 항상 발생하는 것은 아니지만 시작시 펜촉이로드 될 때 발생합니다. (BWTransparentScrollView가 충돌 보고서에 나타나지만 initWithCoder :에서 충돌이 발생하고 프로젝트에서 BWToolkit을 제거하면 여전히 충돌을 유발할 수 있습니다.)NDR에 IKImageBrowserViews를로드 할 때 10.5의 산발적 충돌이 발생합니다.

실제로 두 개의 IKImageBrowserView 객체에 문제가있는 것 같습니다. 내 펜촉에. 펜촉에서 삭제하면 크래시가 발생하지 않는 것처럼 보입니다 (이 두 가지보기가 인터페이스에 필수적이기 때문에 UI가 엉망입니다).

Interface Builder는 IKImageBrowserViews의 문제를 알려주지 않습니다. 무슨 일 수

Exception Type: EXC_CRASH (SIGABRT) 
Exception Codes: 0x0000000000000000, 0x0000000000000000 
Crashed Thread: 0 

Application Specific Information: 
objc[22521]: garbage collection is ON 
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSCFString objectForKey:]: unrecognized selector sent to instance 0x7fff704d15d0' 

Thread 0 Crashed: 
0 libSystem.B.dylib    0x00007fff81da5f16 __kill + 10 
1 libstdc++.6.dylib    0x00007fff80b82085 dyld_stub__Unwind_DeleteException + 0 
2 libobjc.A.dylib     0x00007fff80a4cadf _objc_terminate + 102 
3 libstdc++.6.dylib    0x00007fff80b80425 __gxx_personality_v0 + 1259 
4 libstdc++.6.dylib    0x00007fff80b8045b std::terminate() + 19 
5 libstdc++.6.dylib    0x00007fff80b8054c __cxa_rethrow + 0 
6 libobjc.A.dylib     0x00007fff80a4c966 objc_exception_rethrow + 0 
7 com.apple.CoreFoundation  0x00007fff8218645b -[NSObject doesNotRecognizeSelector:] + 171 
8 com.apple.CoreFoundation  0x00007fff82184ae4 ___forwarding___ + 756 
9 com.apple.CoreFoundation  0x00007fff82184c38 _CF_forwarding_prep_0 + 232 
10 com.apple.CoreText    0x00007fff839f0f43 TDescriptor::CreateMatchingDescriptorInternal(__CFSet const*) const + 237 
11 com.apple.CoreText    0x00007fff839f0dd0 TDescriptor::InitBaseFont() + 30 
12 com.apple.CoreText    0x00007fff839f0d59 TDescriptor::CreateMatchingDescriptor(__CFSet const*) const + 47 
13 com.apple.AppKit    0x00007fff842df2d3 __NSFontFactoryWithName + 412 
14 com.apple.AppKit    0x00007fff842df075 +[NSFont fontWithName:size:] + 51 
15 com.apple.imageKit    0x00000001000d246b -[IKImageBrowserView _setDefaultTextAttributes] + 288 
16 com.apple.imageKit    0x00000001000d2936 -[IKImageBrowserView setAppearanceStyle:] + 42 
17 com.apple.imageKit    0x00000001000d0a88 -[IKImageBrowserView _ikCommonInit] + 2122 
18 com.apple.imageKit    0x00000001000d1470 -[IKImageBrowserView initWithCoder:] + 76 
19 com.apple.AppKit    0x00007fff8423f750 -[NSClassSwapper initWithCoder:] + 483 
20 com.apple.Foundation   0x00007fff80bc631e _decodeObjectBinary + 1214 
21 com.apple.Foundation   0x00007fff80bc7b33 -[NSKeyedUnarchiver _decodeArrayOfObjectsForKey:] + 1363 
22 com.apple.Foundation   0x00007fff80bc7f91 -[NSArray(NSArray) initWithCoder:] + 385 
23 com.apple.Foundation   0x00007fff80bc631e _decodeObjectBinary + 1214 
24 com.apple.Foundation   0x00007fff80bc5de4 _decodeObject + 244 
25 com.apple.AppKit    0x00007fff841fe77a -[NSView initWithCoder:] + 367 
26 com.apple.AppKit    0x00007fff842406a0 -[NSClipView initWithCoder:] + 55 
27 com.apple.Foundation   0x00007fff80bc631e _decodeObjectBinary + 1214 
28 com.apple.Foundation   0x00007fff80bc7b33 -[NSKeyedUnarchiver _decodeArrayOfObjectsForKey:] + 1363 
29 com.apple.Foundation   0x00007fff80bc7f91 -[NSArray(NSArray) initWithCoder:] + 385 
30 com.apple.Foundation   0x00007fff80bc631e _decodeObjectBinary + 1214 
31 com.apple.Foundation   0x00007fff80bc5de4 _decodeObject + 244 
32 com.apple.AppKit    0x00007fff841fe77a -[NSView initWithCoder:] + 367 
33 com.apple.AppKit    0x00007fff84240edd -[NSScrollView initWithCoder:] + 127 
34 ...onwalkin.BWToolkitFramework 0x00000001003bcb7d -[BWTransparentScrollView initWithCoder:] + 41 
35 com.apple.AppKit    0x00007fff8423f750 -[NSClassSwapper initWithCoder:] + 483 
36 com.apple.Foundation   0x00007fff80bc631e _decodeObjectBinary + 1214 
37 com.apple.Foundation   0x00007fff80bc7b33 -[NSKeyedUnarchiver _decodeArrayOfObjectsForKey:] + 1363 
38 com.apple.Foundation   0x00007fff80bc7f91 -[NSArray(NSArray) initWithCoder:] + 385 
39 com.apple.Foundation   0x00007fff80bc631e _decodeObjectBinary + 1214 
40 com.apple.Foundation   0x00007fff80bc5de4 _decodeObject + 244 
41 com.apple.AppKit    0x00007fff841fe77a -[NSView initWithCoder:] + 367 
42 com.apple.AppKit    0x00007fff841ffc92 -[NSCustomView initWithCoder:] + 651 
43 com.apple.Foundation   0x00007fff80bc631e _decodeObjectBinary + 1214 
44 com.apple.Foundation   0x00007fff80bc5de4 _decodeObject + 244 
45 com.apple.AppKit    0x00007fff841f8928 -[NSNibConnector initWithCoder:] + 409 
46 com.apple.AppKit    0x00007fff841fd404 -[NSNibOutletConnector initWithCoder:] + 350 
47 com.apple.Foundation   0x00007fff80bc631e _decodeObjectBinary + 1214 
48 com.apple.Foundation   0x00007fff80bc7b33 -[NSKeyedUnarchiver _decodeArrayOfObjectsForKey:] + 1363 
49 com.apple.Foundation   0x00007fff80bc7f91 -[NSArray(NSArray) initWithCoder:] + 385 
50 com.apple.Foundation   0x00007fff80bc631e _decodeObjectBinary + 1214 
51 com.apple.Foundation   0x00007fff80bc5de4 _decodeObject + 244 
52 com.apple.AppKit    0x00007fff841f784c -[NSIBObjectData initWithCoder:] + 2014 
53 com.apple.Foundation   0x00007fff80bc631e _decodeObjectBinary + 1214 
54 com.apple.Foundation   0x00007fff80bc5de4 _decodeObject + 244 
55 com.apple.AppKit    0x00007fff841f6f55 loadNib + 156 
56 com.apple.AppKit    0x00007fff841f698d +[NSBundle(NSNibLoading) _loadNibFile:nameTable:withZone:ownerBundle:] + 836 
57 com.apple.AppKit    0x00007fff841f6568 +[NSBundle(NSNibLoading) loadNibNamed:owner:] + 355 
58 com.apple.AppKit    0x00007fff841f6299 NSApplicationMain + 286 
59 ...ittleappfactory.Tagalicious 0x00000001000015cc start + 52 

Thread 1: 
0 libauto.dylib     0x00007fff83fcfaae Auto::MemoryScanner::scan_range(Auto::Range const&, Auto::WriteBarrier*) + 366 
1 libauto.dylib     0x00007fff83fbe3df Auto::WriteBarrier::scan_ranges(void*, unsigned long, Auto::MemoryScanner&) + 607 
2 libauto.dylib     0x00007fff83fd10c7 bool Auto::visitAllocatedBlocks<Auto::scan_retained_and_old_blocks_visitor>(Auto::Zone*, Auto::scan_retained_and_old_blocks_visitor&) + 343 
3 libauto.dylib     0x00007fff83fd080d Auto::MemoryScanner::scan_retained_and_old_blocks() + 29 
4 libauto.dylib     0x00007fff83fc95d7 Auto::Collector::check_roots() + 23 
5 libauto.dylib     0x00007fff83fd0b0d Auto::MemoryScanner::scan() + 45 
6 libauto.dylib     0x00007fff83fc0a40 Auto::Zone::collect(bool, void*, unsigned long long*) + 496 
7 libauto.dylib     0x00007fff83fae8fd auto_collect_internal(Auto::Zone*, unsigned int) + 381 
8 libauto.dylib     0x00007fff83faf3b0 auto_collection_thread(void*) + 112 
9 libSystem.B.dylib    0x00007fff81d6ce8f _pthread_start + 316 
10 libSystem.B.dylib    0x00007fff81d6cd51 thread_start + 13 

Thread 2: 
0 libSystem.B.dylib    0x00007fff81d45da2 __semwait_signal + 10 
1 libGLProgrammability.dylib  0x00007fff826d057b glvmDoWork + 155 
2 libSystem.B.dylib    0x00007fff81d6ce8f _pthread_start + 316 
3 libSystem.B.dylib    0x00007fff81d6cd51 thread_start + 13 

Thread 0 crashed with X86 Thread State (64-bit): 
    rax: 0x0000000000000000 rbx: 0x00007fff702717d8 rcx: 0x00007fff5fbfb628 rdx: 0x0000000000000000 
    rdi: 0x00000000000057f9 rsi: 0x0000000000000006 rbp: 0x00007fff5fbfb640 rsp: 0x00007fff5fbfb628 
    r8: 0x00007fff5fbfb1b0 r9: 0x0000000000000000 r10: 0x00007fff81d7de36 r11: 0x0000000000000206 
    r12: 0x00007fff821aea28 r13: 0x0000000000000000 r14: 0x00007fff80a56d00 r15: 0x00007fff7032d0a0 
    rip: 0x00007fff81da5f16 rfl: 0x0000000000000206 cr2: 0x00007fff70093028 

어떤 생각 :

다음은이 문제에 대한 일반적인 충돌 보고서는 무엇입니까?

답변

0

어. 이 문제를 해결하기 위해 여러 가지 시도를했습니다. 나는 새로운 IKImageBrowserViews를 처음부터 다시 만들려고했다. (xib 파일 자체가 어떻게 든 손상된 경우를 대비해서). 내 사용자 지정 IKImageBrowserView 클래스 (Interface Builder에서 해당 클래스를 설정 함)가 문제를 일으키지 않았는지 확인했습니다.

결국 xib에서 IKImageBrowserViews를 삭제하고 프로그래밍 방식으로 생성했습니다. 10.5의 충돌이 사라졌습니다. 도 아니고 하드가 아니었지만 출시 당시의 문제를 해결하는 유일한 해결책이었습니다.