• 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
Re: DeviceIsDead
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: DeviceIsDead


  • Subject: Re: DeviceIsDead
  • From: Lubor Prikryl <email@hidden>
  • Date: Sun, 1 May 2005 21:20:51 +0200

Hello Jeff,

Thanks for your reply.
There is nothing special in other threads, CFRunLoopRun.

But I have advanced three calls deeper in the stack:

Thread 3 Crashed:
0 <<00000000>> 0x00000000 0 + 0
1 com.apple.audio.CoreAudio 0x90745970 HPDeviceSettings_SaveDeviceSettings(HPDevice const&, CACFDictionary&, bool, HPDeviceSettings::ControlInfo const*, unsigned long) + 0x2c
2 com.apple.audio.CoreAudio 0x90745898 HPDeviceSettings::SaveToDictionary(HPDevice const&, HPDeviceSettings::ControlInfo const*, unsigned long) + 0x70
3 com.apple.audio.CoreAudio 0x907456dc HPDeviceSettings::SaveToPrefs(HPDevice const&, HPDeviceSettings::ControlInfo const*, unsigned long) + 0x20
4 com.apple.audio.CoreAudio 0x90745530 IOAPlugIn::DeviceIsDead(IOADevice*) + 0x134
5 com.apple.audio.CoreAudio 0x9075aa04 IOADevice::IOServiceInterestCallback(void*, unsigned int, unsigned int, void*) + 0x90
6 com.apple.framework.IOKit 0x905a2570 IODispatchCalloutFromCFMessage + 0x1a0
7 com.apple.CoreFoundation 0x901dd280 __CFMachPortPerform + 0xe0
8 com.apple.CoreFoundation 0x901d9a04 __CFRunLoopDoSource1 + 0xc8
9 com.apple.CoreFoundation 0x901c18d0 __CFRunLoopRun + 0x540
10 com.apple.CoreFoundation 0x901c5e6c CFRunLoopRunSpecific + 0x148
11 com.apple.audio.CoreAudio 0x90732f80 HALRunLoop::OwnThread(void*) + 0x104
12 com.apple.audio.CoreAudio 0x907391e0 CAPThread::Entry(CAPThread*) + 0x30
13 libSystem.B.dylib 0x90024910 _pthread_body + 0x28


Please, what is this saving of device settings?


Lubor


On 29.4.2005, at 22:57, Jeff Moore wrote:

That back trace indicates that the HAL is crashing when it is receiving the notification from IOKit that the device has gone away. Generally speaking, this sort of crash is an indication of some memory corruption somewhere, but it's hard to say for sure.

Do you have any more context you can provide? What's going on in the other threads? Have you tried running your app with GuardMalloc or MallocDebug?

On Apr 29, 2005, at 1:23 PM, Lubor Prikryl wrote:

Hello,

I am solving an issue when my app is crashing after unplugging FW and USB devices.

What I do obtaining a notification:

Remove all listening to device and stream notifications for this device
Stop the device
Remove callback


After that, the application crashes as it seems that the CA thread attempts to continue with the device

#0 0x907455dc in IOAPlugIn::DeviceIsDead(IOADevice*)
#1 0x9075aa04 in IOADevice::IOServiceInterestCallback(void*, unsigned, unsigned, void*)
#2 0x905a2570 in IODispatchCalloutFromCFMessage
#3 0x901dd280 in __CFMachPortPerform
#4 0x901d9a04 in __CFRunLoopDoSource1
#5 0x901c18d0 in __CFRunLoopRun
#6 0x901c5e6c in CFRunLoopRunSpecific
#7 0x90732f80 in HALRunLoop::OwnThread(void*)
#8 0x907391e0 in CAPThread::Entry(CAPThread*)
#9 0x90024910 in _pthread_body



What else should I do after the device is disconnected to avoid it?


--


Jeff Moore
Core Audio
Apple


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


This email sent to email@hidden


_______________________________________________ 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: High bandwidth disk management techniques
  • Next by Date: DVD-Audio?
  • Previous by thread: Re: High bandwidth disk management techniques
  • Next by thread: DVD-Audio?
  • Index(es):
    • Date
    • Thread