Crashing connecting to and disconnecting from devices
Crashing connecting to and disconnecting from devices
- Subject: Crashing connecting to and disconnecting from devices
- From: "Crichlow, Eric" <email@hidden>
- Date: Wed, 20 Aug 2003 14:00:53 -0400
Lately I've been having my app crash, mostly when disconnecting from
devices but once when connecting to a device. The crash log for each crash
shows me that the crashes seem to take place down in system software code,
so I don't know what's actually causing the crashes.
The most common crash takes place when I try to disconnect from a
device. The circumstance is that it seems to me like the device isn't really
connected in the first place. I It goes through the connection steps, and
they all report success, but I'm not receiving any input from the device. So
I try to close the connection and... crash. This is the typical crash log
for this situation:
Thread 0 Crashed:
#0 0x9068ba54 in objc_msgSend
#1 0x905f849c in +[IOBluetoothObject(IOBluetoothObjectPrivate)
removeUniqueObject:]
#2 0x905f86f4 in -[IOBluetoothObject(IOBluetoothObjectPrivate) release]
#3 0x905f8980 in IOBluetoothObjectServiceTerminated
#4 0x90494908 in IODispatchCalloutFromCFMessage
#5 0x9015bd8c in __CFMachPortPerform
#6 0x9015bbf8 in __CFRunLoopDoSource1
#7 0x90148c9c in __CFRunLoopRun
#8 0x90180f58 in CFRunLoopRunSpecific
#9 0x969a3b70 in RunCurrentEventLoopInMode
#10 0x969b3b00 in ReceiveNextEventCommon
#11 0x969dabbc in BlockUntilNextEventMatchingListInMode
#12 0x9308dedc in _DPSNextEvent
#13 0x930a0158 in -[NSApplication
nextEventMatchingMask:untilDate:inMode:dequeue:]
#14 0x930b1d88 in -[NSApplication run]
#15 0x9315fc58 in NSApplicationMain
#16 0x0001d9fc in main (main.m:17)
#17 0x00004314 in _start (crt.c:267)
#18 0x00004194 in start
...though once I got one that went a little further:
Thread 0 Crashed:
#0 0x906871d0 in _destroyInitializingClassList
#1 0x906873bc in _class_lookupMethodAndLoadCache
#2 0x9068bb28 in objc_msgSend
#3 0x905f849c in +[IOBluetoothObject(IOBluetoothObjectPrivate)
removeUniqueObject:]
#4 0x905f849c in +[IOBluetoothObject(IOBluetoothObjectPrivate)
removeUniqueObject:]
#5 0x905f86f4 in -[IOBluetoothObject(IOBluetoothObjectPrivate) release]
#6 0x905f8980 in IOBluetoothObjectServiceTerminated
#7 0x90494908 in IODispatchCalloutFromCFMessage
#8 0x9015bd8c in __CFMachPortPerform
#9 0x9015bbf8 in __CFRunLoopDoSource1
#10 0x90148c9c in __CFRunLoopRun
#11 0x90180f58 in CFRunLoopRunSpecific
#12 0x969a3b70 in RunCurrentEventLoopInMode
#13 0x969b3b00 in ReceiveNextEventCommon
#14 0x969dabbc in BlockUntilNextEventMatchingListInMode
#15 0x9308dedc in _DPSNextEvent
#16 0x930a0158 in -[NSApplication
nextEventMatchingMask:untilDate:inMode:dequeue:]
#17 0x930b1d88 in -[NSApplication run]
#18 0x9315fc58 in NSApplicationMain
#19 0x0000468c in _start (crt.c:267)
#20 0x0000450c in start
None of those calls beyond NSApplicationMain is in my code.
Then once I got a crash on a connection attempt, with this log:
Thread 69 Crashed:
#0 0x9068ba54 in objc_msgSend
#1 0x905e54e4 in compareRFCOMMConnectionParent
#2 0x905d7310 in servicePublished
#3 0x90494920 in IODispatchCalloutFromCFMessage
#4 0x905d745c in waitForMatchingService
#5 0x905e5438 in +[IOBluetoothRFCOMMConnection openOnDevice:]
#6 0x905d4684 in -[IOBluetoothDevice(IOBluetoothDevicePrivate)
createRFCOMMChannel:channel:]
#7 0x905d2758 in -[IOBluetoothDevice
openRFCOMMChannelAsync:withChannelID:delegate:]
#8 0x905d26d4 in -[IOBluetoothDevice
openRFCOMMChannelSync:withChannelID:delegate:]
#9 0x00013f9c in -[BluetoothDevice EstablishConnection:]
#10 0x97e2cc50 in forkThreadForFunction
#11 0x90020d48 in _pthread_body
The last method in the list that's from my code is #9 -[BluetoothDevice
EstablishConnection:]
I'm running OS X 10.2.6 with the Bluetooth software update 1.2.1 from
June 3 on all of my systems.
Are the problems with the system software, or is it something I'm doing?
Any idea?
...Thanx...
...Eric...
_______________________________________________
bluetooth-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/bluetooth-dev
Do not post admin requests to the list. They will be ignored.