Crash Analysis plz?!

mattgolsen's picture

I've got a project I'm working on that runs extremely well within Quartz, but once I build it (Quartz Builder) and run it, it crashes with some strange behavior. The entire application display will disappear, but is still active. I'm getting the following information from Console and Crash Reporter:

6/30/10 10:35:02 PM   Quartz Composer[8952]   *** Message from <QCPatch = 0x50FE1D40 "(null)">:
Rendering terminated on <QCOpenGLContext = 0x33636FB0 | 0 rendering patches>
Date/Time:       2010-06-30 23:35:26.392 -0400
OS Version:      Mac OS X 10.6.3 (10D573)
Report Version:  6
 
Interval Since Last Report:          494835 sec
Crashes Since Last Report:           3
Per-App Interval Since Last Report:  4244 sec
Per-App Crashes Since Last Report:   2
Anonymous UUID:                      24E12AB5-2DDA-4CDE-8E44-1845E70D7285
 
Exception Type:  EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000002, 0x0000000000000000
Crashed Thread:  4
 
Thread 0:  Dispatch queue: com.apple.main-thread
0   libSystem.B.dylib                0x90be02fa mach_msg_trap + 10
1   libSystem.B.dylib                0x90be0a67 mach_msg + 68
2   com.apple.CoreFoundation         0x9648100f __CFRunLoopRun + 2079
3   com.apple.CoreFoundation         0x964800f4 CFRunLoopRunSpecific + 452
4   com.apple.CoreFoundation         0x9647ff21 CFRunLoopRunInMode + 97
5   com.apple.HIToolbox              0x919c40fc RunCurrentEventLoopInMode + 392
6   com.apple.HIToolbox              0x919c3eb1 ReceiveNextEventCommon + 354
7   com.apple.HIToolbox              0x919c3d36 BlockUntilNextEventMatchingListInMode + 81
8   com.apple.AppKit                 0x958f9135 _DPSNextEvent + 847
9   com.apple.AppKit                 0x958f8976 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 156
10  com.apple.AppKit                 0x958babef -[NSApplication run] + 821
11  com.apple.AppKit                 0x958b2c85 NSApplicationMain + 574
12  com.bbygs.Major Tom              0x000026c5 0x1000 + 5829
 
Thread 1:  Dispatch queue: com.apple.libdispatch-manager
0   libSystem.B.dylib                0x90c06b42 kevent + 10
1   libSystem.B.dylib                0x90c0725c _dispatch_mgr_invoke + 215
2   libSystem.B.dylib                0x90c06719 _dispatch_queue_invoke + 163
3   libSystem.B.dylib                0x90c064be _dispatch_worker_thread2 + 240
4   libSystem.B.dylib                0x90c05f41 _pthread_wqthread + 390
5   libSystem.B.dylib                0x90c05d86 start_wqthread + 30
 
Thread 2:
0   libSystem.B.dylib                0x90c05bd2 __workq_kernreturn + 10
1   libSystem.B.dylib                0x90c06168 _pthread_wqthread + 941
2   libSystem.B.dylib                0x90c05d86 start_wqthread + 30
 
Thread 3:  JavaScriptCore: FastMalloc scavenger
0   libSystem.B.dylib                0x90c0e262 __semwait_signal + 10
1   libSystem.B.dylib                0x90c0df1e _pthread_cond_wait + 1191
2   libSystem.B.dylib                0x90c0fbb8 pthread_cond_wait$UNIX2003 + 73
3   com.apple.JavaScriptCore         0x918e93e6 WTF::TCMalloc_PageHeap::scavengerThread() + 614
4   libSystem.B.dylib                0x90c0d89e thread_start + 34
 
Thread 4 Crashed:
0   com.apple.CoreFoundation         0x9645626e CFHash + 174
1   com.apple.CoreFoundation         0x9645606c ___CFBasicHashFindBucket1 + 444
2   com.apple.CoreFoundation         0x9645e25c CFBasicHashFindBucket + 252
3   com.apple.CoreFoundation         0x9645e123 CFDictionaryGetValue + 131
4   com.apple.CoreFoundation         0x96544a95 _CFStreamDetachSource + 405
5   com.apple.CoreFoundation         0x9647bdeb _CFStreamClose + 75
6   com.apple.CFNetwork              0x963d08e1 HTTPProtocol::destroyReadStream() + 173
7   com.apple.CFNetwork              0x963d07b1 HTTPProtocol::cleanupStreams() + 93
8   com.apple.CFNetwork              0x963d0acb HTTPProtocol::~HTTPProtocol() + 155
9   com.apple.CoreFoundation         0x96450ea1 _CFRelease + 353
10  com.apple.CFNetwork              0x963d054c URLConnectionLoader::reallyCleanUpProtocol(unsigned char) + 240
11  com.apple.CFNetwork              0x9642b249 URLConnectionLoader::cleanupProtocolFromClientThread() + 25
12  com.apple.CFNetwork              0x963a62c8 URLConnectionClient::getRequestForTransmission(_CFURLResponse*, _CFURLRequest const*, __CFError**) + 574
13  com.apple.CFNetwork              0x963a5caf URLConnectionClient::_clientWillSendRequest(_CFURLRequest const*, _CFURLResponse*, URLConnectionClient::ClientConnectionEventQueue*) + 223
14  com.apple.CFNetwork              0x9642a54a URLConnectionClient::ClientConnectionEventQueue::processAllEventsAndConsumePayload(XConnectionEventInfo<XClientEvent, XClientEventParams>*, long) + 148
15  com.apple.CFNetwork              0x963a5ace URLConnectionClient::processEvents() + 94
16  com.apple.CFNetwork              0x963a596f MultiplexerSource::perform() + 183
17  com.apple.CoreFoundation         0x9648315b __CFRunLoopDoSources0 + 1563
18  com.apple.CoreFoundation         0x96480c1f __CFRunLoopRun + 1071
19  com.apple.CoreFoundation         0x964800f4 CFRunLoopRunSpecific + 452
20  com.apple.CoreFoundation         0x96486034 CFRunLoopRun + 84
21  com.apple.QuartzComposer         0x92f14b9d -[QCRunLoopPatch _runLoopThread:] + 449
22  com.apple.Foundation             0x9428a8dc -[NSThread main] + 45
23  com.apple.Foundation             0x9428a88c __NSThread__main__ + 1499
24  libSystem.B.dylib                0x90c0da19 _pthread_start + 345
25  libSystem.B.dylib                0x90c0d89e thread_start + 34
 
Thread 5:
0   libSystem.B.dylib                0xffff0279 __spin_lock + 25
1   com.apple.CoreFoundation         0x9648315b __CFRunLoopDoSources0 + 1563
2   com.apple.CoreFoundation         0x96480c1f __CFRunLoopRun + 1071
3   com.apple.CoreFoundation         0x964800f4 CFRunLoopRunSpecific + 452
4   com.apple.CoreFoundation         0x9647ff21 CFRunLoopRunInMode + 97
5   com.apple.Foundation             0x942c3434 +[NSURLConnection(NSURLConnectionReallyInternal) _resourceLoadLoop:] + 329
6   com.apple.Foundation             0x9428a8dc -[NSThread main] + 45
7   com.apple.Foundation             0x9428a88c __NSThread__main__ + 1499
8   libSystem.B.dylib                0x90c0da19 _pthread_start + 345
9   libSystem.B.dylib                0x90c0d89e thread_start + 34
 
Thread 6:
0   libSystem.B.dylib                0x90bff286 select$DARWIN_EXTSN + 10
1   com.apple.CoreFoundation         0x964c082d __CFSocketManager + 1085
2   libSystem.B.dylib                0x90c0da19 _pthread_start + 345
3   libSystem.B.dylib                0x90c0d89e thread_start + 34
 
Thread 7:
0   libSystem.B.dylib                0x90be035a semaphore_timedwait_signal_trap + 10
1   libSystem.B.dylib                0x90c0dea1 _pthread_cond_wait + 1066
2   libSystem.B.dylib                0x90c3ca28 pthread_cond_timedwait_relative_np + 47
3   com.apple.CoreVideo              0x97eb6ce6 CVDisplayLink::waitUntil(unsigned long long) + 386
4   com.apple.CoreVideo              0x97eb5b2b CVDisplayLink::runIOThread() + 741
5   com.apple.CoreVideo              0x97eb582a startIOThread(void*) + 156
6   libSystem.B.dylib                0x90c0da19 _pthread_start + 345
7   libSystem.B.dylib                0x90c0d89e thread_start + 34
 
Thread 4 crashed with X86 Thread State (32-bit):
  eax: 0x964691d9  ebx: 0x964561d4  ecx: 0x00000000  edx: 0x280ecb10
  edi: 0x18bb2c00  esi: 0x00000000  ebp: 0xb0205c08  esp: 0xb0205be0
   ss: 0x0000001f  efl: 0x00000246  eip: 0x9645626e   cs: 0x00000017
   ds: 0x0000001f   es: 0x0000001f   fs: 0x0000001f   gs: 0x00000037
  cr2: 0x1977e000

Any ideas?

cybero's picture
Re: Crash Analysis plz?!

Have you checked you've added all essential support materials for your composition construct? The lack of say a movie or a picture or a sound file, etc can and will cause this. It can also be caused by a composition that is still got a few remnants of another protocol environment embedded into it.

I'd check for that, check in the Resource Inspector in QB.

Check the protocol information and also do a high zoom default to see all that is on your Editor stage. get rid of unwanted patches. Total clean up opportunity if needed :-).

Then try rebuilding the composition in QB and see if that doesn't work for you.

cwright's picture
Re: Crash Analysis plz?!

It's possible this happens because QB changes threads (it creates the QCRenderer on one thread, and renders it on another) -- this causes lots of subtle resource problems in QC