• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
DeferredRender strangeness
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

DeferredRender strangeness


  • Subject: DeferredRender strangeness
  • From: Ethan Funk <email@hidden>
  • Date: Thu, 2 Nov 2006 11:12:25 -0700

I have what appears to be some sort of thread/lock problem with a DeferredRender AudioUnit. My application will, on occasion (aprox 1 in 1000 chance), deadlock when closing one of my custom players. The deadlock appears to occur when my code get to unitializing the DeferredRender AudioUnit associated with my player object. I put a "watchdog timer" in my code on another thread to force a crash (by modifying a null pointer) when this happens so I could trouble shoot further, and here is the relevant section of the crash report:

Exception:  EXC_BAD_ACCESS (0x0001)
Codes:      KERN_PROTECTION_FAILURE (0x0002) at 0x00000000

Thread 0:
0 libSystem.B.dylib 0x90040258 mach_wait_until + 8
1 libSystem.B.dylib 0x90040020 nanosleep + 384
2 libSystem.B.dylib 0x900437fc usleep + 60
3 ...pple.audio.units.Components 0x9a791d18 AUDeferredRendererEntry + 1060
4 ...pple.audio.units.Components 0x9a728ae4 DefaultOutputAUEntry + 32652
5 ...pple.audio.units.Components 0x9a723cec DefaultOutputAUEntry + 12692
6 ...pple.audio.units.Components 0x9a802de8 dyld_stub__keymgr_get_and_lock_processwide_ptr + 99816
7 ...ple.CoreServices.CarbonCore 0x90b5b684 CallComponent + 260
8 ...apple.audio.units.AudioUnit 0x941f97a0 AudioUnitUninitialize + 32
9 arserver 0x000258b0 FilePlayer::~FilePlayer [in-charge deleting]() + 316 (crt.c:355)
10 arserver 0x0002e6d4 DeleteFromLists (ARPlayer*) + 956 (crt.c:355)
11 arserver 0x0002e9f4 CheckListsForDeletion() + 332 (crt.c:355)
12 arserver 0x00030860 ListManagerTask() + 68 (crt.c:355)
13 arserver 0x0002279c main + 6360 (crt.c: 355)
14 arserver 0x00002568 _start + 340 (crt.c:272)
15 arserver 0x00002410 start + 60



Note that my code ENSURES that the DeferredRender AU in question is no longer being asked to render by this or any other threads before it gets this far in the code, and it's source is still in place.


Any idea what is going on here?
Ethan...

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: multiple AUGraphs / Audio Hijack
  • Next by Date: MusicPlayer/Tempo Question
  • Previous by thread: Re: multiple AUGraphs / Audio Hijack
  • Next by thread: MusicPlayer/Tempo Question
  • Index(es):
    • Date
    • Thread