Re: NSSound instability on 10.2.8
Re: NSSound instability on 10.2.8
- Subject: Re: NSSound instability on 10.2.8
- From: John Stiles <email@hidden>
- Date: Thu, 1 Apr 2004 10:52:38 -0800
This problem is almost certainly that the GrafPort that QuickTime was
using for this sound is released. Typically, when interfacing with
QuickTime directly, even if you are using a movie that is just audio,
it is still your responsibility to set the movie to a valid port, and
if that port eventually becomes invalid, you start seeing crashes
exactly like this one. The typical solution is to make a tiny singleton
GWorld and set your movie's port to that.
Unfortunately, when you're using the NSSound layer, you don't typically
have much control over the QuickTime movie involved or, really,
QuickDraw ports at all :| Does your app manipulate QuickTime movies,
GWorlds, or QuickDraw-style ports in any way?
You could also try using NSMovie to play your AIFFs. I don't know if
that will work any better or not, but it's worth a shot.
On Apr 1, 2004, at 8:53 AM, Chris Silverberg wrote:
Hello everyone,
I am debugging a problem for some of my 10.2.8 users. The problem
appears to be that playing sounds via NSSound sometimes results in a
crash. The crash occurs in QuickTime, as on 10.2.8 QuickTime is used
to play sounds. (10.3 prefers to use CoreAudio for playing sounds...
and appears to be rock solid compatatively.) My sounds are all short
AIFF sounds.
The crash is always pretty consistent. It looks like this:
Thread 0 Crashed:
#0 0x91a52e00 in GetEffectiveFrameBufferPixmap
#1 0x91a524a4 in Color2IndexWithPort
#2 0x91a54e48 in SetPortRGBForeColor
#3 0x947432e0 in TaskMovie_priv
#4 0x94758d8c in frequentlyTaskMovies
#5 0x90163230 in __CFRunLoopDoTimer
#6 0x90148d28 in __CFRunLoopRun
#7 0x90180f58 in CFRunLoopRunSpecific
#8 0x969a3b70 in RunCurrentEventLoopInMode
#9 0x969b3b00 in ReceiveNextEventCommon
#10 0x969dabbc in BlockUntilNextEventMatchingListInMode
#11 0x9308dedc in _DPSNextEvent
#12 0x930a0158 in -[NSApplication
nextEventMatchingMask:untilDate:inMode:dequeue:]
#13 0x930b1d88 in -[NSApplication run]
#14 0x9315fc58 in NSApplicationMain
#15 0x0000a05c in _start (crt.c:267)
#16 0x00009edc in start
There are some interesting things you can see by looking at this stack
crawl. For example, TaskMovie_priv is attempting to do some things
with QuickDraw. Of course, I have no idea what port it could would be
using as it's up to NSSound to deal with that.
Has anyone run into this problem before? Any suggestions?
thanks,
Chris
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.