> please provide the backtrace -- it might provide some clues as to what's
> going on.
>
> When you disable the capture session, do you know if the GL textures are
> still valid (CIImages can wrap GL textures, and can be stored in NSImages,
> so if that's what's happening, it's plausible that you're invalidating the
> image inadvertently)?  (i.e. does QTKit reclaim them?  I honestly have no
> idea)  If QTKit invalidates them when you disable recording, the QCRenderer
> may be using a non-texture, which may cause the 0x502 GL error (0x502's
> pretty generic, unfortunately).  You could also fire up OpenGL Profiler to
> see if it can help refine where the error's getting thrown.

Ah, that does sound promising. I'll try throwing a pre-loaded image at
the input port when the capture session is stopped, see what happens.

Is adding the CVImageRep to an NSImage then passing that to the
QCRenderer the most efficient way to handle it btw?

Backtrace below (it does appear to crash when setting a port value
within QC - see thread 1).

Thanks

Chris

Thread 10 (process 354 thread 0xde03):
#0  0x9122046e in __semwait_signal ()
#1  0x9124b3e6 in _pthread_cond_wait ()
#2  0x9124adcd in pthread_cond_wait$UNIX2003 ()
#3  0x914640ed in QTBackgroundQueueRun ()
#4  0x9124a155 in _pthread_start ()
#5  0x9124a012 in thread_start ()

Thread 9 (process 354 thread 0xd807):
#0  0x9122046e in __semwait_signal ()
#1  0x912202ef in nanosleep$UNIX2003 ()
#2  0x91220236 in usleep$UNIX2003 ()
#3  0x9150d99c in MIOGraph::OneOrMoreInputUnitsAreReadyToBePulled ()
#4  0x9150fafe in MIOGraph::PullAndProcessThreadEntry ()
#5  0x91510042 in MIOGraph::_PullAndProcessThread ()
#6  0x9151e22a in start_thread ()
#7  0x9124a155 in _pthread_start ()
#8  0x9124a012 in thread_start ()

Thread 8 (process 354 thread 0xbe13):
#0  0x9122046e in __semwait_signal ()
#1  0x9124b3e6 in _pthread_cond_wait ()
#2  0x9124adcd in pthread_cond_wait$UNIX2003 ()
#3  0x914640ed in QTBackgroundQueueRun ()
#4  0x9124a155 in _pthread_start ()
#5  0x9124a012 in thread_start ()

Thread 7 (process 354 thread 0xc907):
#0  0x91219286 in mach_msg_trap ()
#1  0x91220a7c in mach_msg ()
#2  0x95cb1e7e in CFRunLoopRunSpecific ()
#3  0x95cb2b04 in CFRunLoopRun ()
#4  0x0e29b253 in MIO::PTA::CFMachPortThread::Start ()
#5  0x9124a155 in _pthread_start ()
#6  0x9124a012 in thread_start ()

Thread 6 (process 354 thread 0xc003):
#0  0x912192c2 in semaphore_wait_trap ()
#1  0x0e2e1d26 in MIOThreadWaitSignal ()
#2  0x0e349804 in
MIO::Unit::MIOUQTFileOutputBase::FileWriterPostProcessThreadHandler ()
#3  0x0e349bcc in
MIO::Unit::MIOUQTFileOutputBase::FileWriterPostProcessThreadCallback
()
#4  0x0e2e142b in start_thread ()
#5  0x9124a155 in _pthread_start ()
#6  0x9124a012 in thread_start ()

Thread 5 (process 354 thread 0xa403):
#0  0x91219286 in mach_msg_trap ()
#1  0x91220a7c in mach_msg ()
#2  0x95cb1e7e in CFRunLoopRunSpecific ()
#3  0x95cb2aa8 in CFRunLoopRunInMode ()
#4  0x91509ecc in MIO::DAL::RunLoop::OwnThread ()
#5  0x9150c04c in CAPThread::Entry ()
#6  0x9124a155 in _pthread_start ()
#7  0x9124a012 in thread_start ()

Thread 4 (process 354 thread 0x7b03):
#0  0x91219286 in mach_msg_trap ()
#1  0x91220a7c in mach_msg ()
#2  0x95cb1e7e in CFRunLoopRunSpecific ()
#3  0x95cb2aa8 in CFRunLoopRunInMode ()
#4  0x90f6a5f8 in HALRunLoop::OwnThread ()
#5  0x90f6a480 in CAPThread::Entry ()
#6  0x9124a155 in _pthread_start ()
#7  0x9124a012 in thread_start ()

Thread 3 (process 354 thread 0x3707):
#0  0x9122046e in __semwait_signal ()
#1  0x9124b3e6 in _pthread_cond_wait ()
#2  0x9124adcd in pthread_cond_wait$UNIX2003 ()
#3  0x95794b32 in glvmDoWork ()
#4  0x9124a155 in _pthread_start ()
#5  0x9124a012 in thread_start ()

Thread 2 (process 354 thread 0x3003):
#0  0x91219286 in mach_msg_trap ()
#1  0x91220a7c in mach_msg ()
#2  0x94d4d5ed in glcDebugListener ()
#3  0x9124a155 in _pthread_start ()
#4  0x9124a012 in thread_start ()

Thread 1 (process 354 thread 0x10b):
#0  0x94718688 in objc_msgSend ()
#1  0x9199a16e in -[QCVirtualPort setRawValue:] ()
#2  0x919b04fe in -[QCObjectPort(Override) takeValue:fromPort:] ()
#3  0x919affa0 in -[QCPatch(Private) _execute:arguments:] ()
#4  0x919b0362 in -[QCPort _execute:arguments:] ()
#5  0x919afead in -[QCPatch(Private) _execute:arguments:] ()
#6  0x919b0362 in -[QCPort _execute:arguments:] ()
#7  0x919b08b8 in -[QCMultiplexerImagePort _execute:arguments:] ()
#8  0x919afead in -[QCPatch(Private) _execute:arguments:] ()
#9  0x919b0362 in -[QCPort _execute:arguments:] ()
#10 0x919afead in -[QCPatch(Private) _execute:arguments:] ()
#11 0x919b0362 in -[QCPort _execute:arguments:] ()
#12 0x919afead in -[QCPatch(Private) _execute:arguments:] ()
#13 0x919b0362 in -[QCPort _execute:arguments:] ()
#14 0x919afead in -[QCPatch(Private) _execute:arguments:] ()
#15 0x919b0362 in -[QCPort _execute:arguments:] ()
#16 0x919afead in -[QCPatch(Private) _execute:arguments:] ()
#17 0x919b0362 in -[QCPort _execute:arguments:] ()
#18 0x919afead in -[QCPatch(Private) _execute:arguments:] ()
#19 0x919b0362 in -[QCPort _execute:arguments:] ()
#20 0x919b08b8 in -[QCMultiplexerImagePort _execute:arguments:] ()
#21 0x919afead in -[QCPatch(Private) _execute:arguments:] ()
#22 0x919b02f0 in -[QCPatch(Extensions) executeSubpatches:arguments:] ()
#23 0x919affa0 in -[QCPatch(Private) _execute:arguments:] ()
#24 0x919ae614 in -[QCContext renderPatch:time:arguments:] ()
#25 0x919ae366 in -[QCGraphicsContext renderPatch:time:arguments:] ()
#26 0x919ad26b in -[QCOpenGLContext renderPatch:time:arguments:] ()
#27 0x919ad10a in -[QCPatch(Runtime) render:arguments:] ()
#28 0x0000459d in -[AppController render] (self=0xd896a40,
_cmd=0x914f07e4) at /Volumes/16GB USB/XCode/OS
X/Resolve/AppController.m:316
#29 0x96b4e483 in __NSFireTimer ()
#30 0x95cb28f5 in CFRunLoopRunSpecific ()
#31 0x95cb2aa8 in CFRunLoopRunInMode ()
#32 0x9379b2ac in RunCurrentEventLoopInMode ()
#33 0x9379b0c5 in ReceiveNextEventCommon ()
#34 0x9379af39 in BlockUntilNextEventMatchingListInMode ()
#35 0x93ab46d5 in _DPSNextEvent ()
#36 0x93ab3f88 in -[NSApplication
nextEventMatchingMask:untilDate:inMode:dequeue:] ()
#37 0x93aacf9f in -[NSApplication run] ()
#38 0x93a7a1d8 in NSApplicationMain ()
#39 0x00001d90 in main (argc=1, argv=0xbffff6e8) at /Volumes/16GB
USB/XCode/OS X/Resolve/main.m:13
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to