Re: CoreAudio.jar / AudioDeviceIOProc crash on MacBook Pro
Re: CoreAudio.jar / AudioDeviceIOProc crash on MacBook Pro
- Subject: Re: CoreAudio.jar / AudioDeviceIOProc crash on MacBook Pro
- From: William Stewart <email@hidden>
- Date: Mon, 13 Mar 2006 11:26:22 -0800
Please report bugs at http://developer.apple.com/bugreporter
Thanks
Bill
On 12/03/2006, at 6:43 PM, bryan wrote:
Below is the crash report from the JVM / CoreAudio crash. Starting
any java based IO Proc results in a crash. From the call stack it
on the crashed thread, shown below, seems that execution does not
even reach the AudioDeviceIOProc in java, which is empty and could
not be the source of the crash anyway. The crash reproduces on
either Java 1.4.2 or Java 1.5 on the Intel based Mac. Any insight
on how to use a CoreAudio IO proc without crashing would be much
appreciated.
Date/Time: 2006-03-13 02:36:24.529 -0800
OS Version: 10.4.5 (Build 8H1455)
Report Version: 4
Command: java
Path: /System/Library/Frameworks/JavaVM.framework/Versions/1.5/
Home/bin/java
Parent: launchd [1]
Version: ??? (???)
PID: 295
Thread: 19
Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x00000010
Thread 19 Crashed:
0 libclient.dylib 0x9e40718e JVM_Write + 19058
1 CoreAudio 0x121c1306
Java_com_apple_audio_jdirect_MethodClosure_DisposeMethodClosure + 132
2 com.apple.audio.CoreAudio 0x9082acda HP_IOProc::Call
(AudioTimeStamp const&, AudioTimeStamp const&, AudioBufferList
const*, AudioTimeStamp const&, AudioBufferList*) + 240
3 com.apple.audio.CoreAudio 0x9082a306
IOA_Device::CallIOProcs(AudioTimeStamp const&, AudioTimeStamp
const&, AudioTimeStamp const&) + 274
4 com.apple.audio.CoreAudio 0x9082a091
HP_IOThread::PerformIO(AudioTimeStamp const&) + 1221
5 com.apple.audio.CoreAudio 0x908285e3 HP_IOThread::WorkLoop
() + 931
6 com.apple.audio.CoreAudio 0x90828239
HP_IOThread::ThreadEntry(HP_IOThread*) + 17
7 com.apple.audio.CoreAudio 0x9081c875 CAPThread::Entry
(CAPThread*) + 93
8 libSystem.B.dylib 0x90024b47 _pthread_body + 84
Model: MacBookPro1,1, BootROM MBP11.0044.B02, 2 processors, Intel
Core Duo, 1.83 GHz, 1 GB
Graphics: ATI Radeon X1600, ATY,RadeonX1600, PCIe, 128 MB
Memory Module: DIMM0/BANK 0, 512 MB, DDR2 SDRAM, 667 MHz
Memory Module: DIMM1/BANK 1, 512 MB, DDR2 SDRAM, 667 MHz
AirPort: spairport_wireless_card_type_airport_extreme (0x168C,
0x86), 0.1.12
Bluetooth: Version 1.7.2f10, 2 service, 0 devices, 1 incoming
serial ports
Network Service: AirPort, AirPort, en1
PCI Card: ethernet, sppci_ethernet, Airport
Serial ATA Device: TOSHIBA MK8032GSX, 74.53 GB
Parallel ATA Device: MATSHITADVD-R UJ-857
USB Device: Built-in iSight, Micron, Up to 480 Mb/sec, 500 mA
USB Device: Apple Internal Keyboard / Trackpad, Apple Computer, Up
to 12 Mb/sec, 500 mA
USB Device: Bluetooth HCI, Up to 12 Mb/sec, 500 mA
USB Device: IR Receiver, Apple Computer, Inc., Up to 12 Mb/sec, 500 mA
----- Original Message -----
To: <email@hidden>; <email@hidden>
Sent: Saturday, March 11, 2006 11:44 PM
Subject: CoreAudio.jar, AudioDeviceIOProc and ADevicePropertyListener
My java app uses the CoreAudio API via CoreAudio.jar and works
perfectly on
PPC. However, on Intel, the application crashes whenever my code
gets a
callback from CoreAudio for an IOProc (audio capture) or a property
listener
(volume change)
Forward method calls from java continue to work perfectly on both
platforms.
It is only the callbacks that blow up.
Am I right in expecting the CoreAudio API to work the same (via Java)
whether on PPC or Intel?
Any advice on how I can modify my code such that callbacks on the
following
interfaces work on both platforms?
com.apple.audio.hardware.ADevicePropertyListener;
com.apple.audio.hardware.AudioDeviceIOProc;
Thanks,
Bryan
_______________________________________________
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
--
mailto:email@hidden
tel: +1 408 974 4056
________________________________________________________________________
__
"Much human ingenuity has gone into finding the ultimate Before.
The current state of knowledge can be summarized thus:
In the beginning, there was nothing, which exploded" - Terry Pratchett
________________________________________________________________________
__
_______________________________________________
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