Hi,

I'm trying to implement iChat Theater capability into my garbage collected app, and it looks to be almost working, except for a rather all important crash. When my app is notified that it should start sending video it executes the following code:

        IMAVManager *manager = [IMAVManager sharedAVManager];
        MyDocument *d;
        
        switch ([manager state])
        {
                case IMAVRequested:
d = [[NSDocumentController sharedDocumentController] documentForURL: [manager URLToShare]];
                        if (d == nil) {
d = [[NSDocumentController sharedDocumentController] openDocumentWithContentsOfURL:[manager URLToShare] display:YES];
                        }
                        [manager setVideoDataSource:d.someView];
                        [manager start];
                        break;
        }

someView has subviews, including a PDFView subclass. I have tried setting the data source to the PDFView and to the PDFView's documentView, but the result is always the same.

When I start a session the theater mode activates and I can see my document in the iChat window. All is well until anything causes a redraw of the view being displayed, at which point there is either a crash, or an error that leads to a crash if I try to continue execution. Here are the backtraces of the two types of crash:

#0  0x956bb6e8 in objc_msgSend ()
#1  0x90a2f337 in _pixelBufferReleaseCallback ()
#2  0x93079d78 in CVPixelBufferBacking::finalize ()
#3  0x9307242e in CVPixelBuffer::finalize ()
#4  0x90a21de9 in -[IMAuxVideoProvider _fillBufferFromPool:atRate:] ()
#5  0x90a21bfe in -[IMAuxVideoProvider _callbackThreadMain] ()
#6  0x95d735ad in -[NSThread main] ()
#7  0x95d73154 in __NSThread__main__ ()
#8  0x95440c55 in _pthread_start ()
#9  0x95440b12 in thread_start ()


#0  0x956b00d7 in objc_exception_throw ()
#1  0x927e844a in -[NSObject doesNotRecognizeSelector:] ()
#2  0x927e6a4c in ___forwarding___ ()
#3  0x927e6b12 in __forwarding_prep_0___ ()
#4  0x90a2f337 in _pixelBufferReleaseCallback ()
#5  0x93079d78 in CVPixelBufferBacking::finalize ()
#6  0x9307242e in CVPixelBuffer::finalize ()
#7  0x90a21de9 in -[IMAuxVideoProvider _fillBufferFromPool:atRate:] ()
#8  0x90a21bfe in -[IMAuxVideoProvider _callbackThreadMain] ()
#9  0x95d735ad in -[NSThread main] ()
#10 0x95d73154 in __NSThread__main__ ()
#11 0x95440c55 in _pthread_start ()
#12 0x95440b12 in thread_start ()

The second problem (doesNotRecognizeSelector:) I've so far only seen once, usually there is a straight crash (bad access). This looks like a framework bug to me, but I thought I'd ask here if anybody has any other ideas, or similar experience to share, before filing a bug report.

-António

-----------------------------------------------------------
Some things have to be believed to be seen.

--Ralph Hodgson
-----------------------------------------------------------_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to