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

crash


  • Subject: crash
  • From: Olivier Destrebecq <email@hidden>
  • Date: Mon, 31 Oct 2005 11:07:54 -0500

When doing unit test, i regularly get this crash. I never got it yet when using the app, but i guess it is just a matter of time.

I included the crash log at the end of the file along with the relevant code. I submitted the crash report to apple, but I have the impression it is probably more a problem with my code:-)...

any pointers appreciated.
Olivier
http://otusweb.spymac.com/home/


0 libSystem.B.dylib 0x9002ca78 semaphore_wait_signal_trap + 8
1 libSystem.B.dylib 0x90001bcc pthread_mutex_lock + 508
2 com.apple.audio.CoreAudio 0x9139309c CAMutex::Lock() + 64
3 com.apple.audio.CoreAudio 0x913ad1c4 IOA_Device::StartCommandExecution(void**) + 44
4 com.apple.audio.CoreAudio 0x913ad01c HP_Device::ExecuteCommand(HP_Command*) + 84
5 com.apple.audio.CoreAudio 0x913b0b94 HP_PlugIn_DeviceAddIOProc(AudioHardwarePlugInInterface**, unsigned long, long (*)(unsigned long, AudioTimeStamp const*, AudioBufferList const*, AudioTimeStamp const*, AudioBufferList*, AudioTimeStamp const*, void*), void*) + 152
6 com.apple.audio.CoreAudio 0x913b0ac0 HALPlugIn::DeviceAddIOProc(HALObject const&, long (*)(unsigned long, AudioTimeStamp const*, AudioBufferList const*, AudioTimeStamp const*, AudioBufferList*, AudioTimeStamp const*, void*), void*) + 48
7 com.apple.audio.CoreAudio 0x913b0a1c AudioDeviceAddIOProc + 192
8 ...pple.audio.units.Components 0x9af818c4 DefaultOutputAUEntry + 7532
9 ...pple.audio.units.Components 0x9afb0d30 AUHALEntry + 1144
10 ...pple.audio.units.Components 0x9af84714 DefaultOutputAUEntry + 19388
11 ...pple.audio.units.Components 0x9af82e88 DefaultOutputAUEntry + 13104
12 ...pple.audio.units.Components 0x9af82b3c DefaultOutputAUEntry + 12260
13 ...pple.audio.units.Components 0x9b0535a4 dyld_stub__keymgr_get_and_lock_processwide_ptr + 40356
14 ...ple.CoreServices.CarbonCore 0x90b51ff0 CallComponent + 260
15 ...apple.audio.units.AudioUnit 0x941a7644 AudioUnitSetProperty + 56
16 com.HumbleDaisy.ProfCast 0x0001f25c CAAudioFileRecorder::CAAudioFileRecorder[unified](int, unsigned long) + 772 (CAAudioFileRecorder.cpp:92)
17 com.HumbleDaisy.ProfCast 0x0001eef0 CAAudioFileRecorder::CAAudioFileRecorder[not-in-charge](int, unsigned long) + 64 (CAAudioFileRecorder.cpp:111)
18 com.HumbleDaisy.ProfCast 0x0003d190 CAAudioFileRecorderInputSelection::CAAudioFileRecorderInputSelection [unified](int, unsigned long) + 72 (CAAudioFileRecorderInputSelection.h:17)
19 com.HumbleDaisy.ProfCast 0x0003d08c CAAudioFileRecorderInputSelection::CAAudioFileRecorderInputSelection [in-charge](int, unsigned long) + 64 (CAAudioFileRecorderInputSelection.h:17)
20 com.HumbleDaisy.ProfCast 0x0000bdb4 - [presentationCastDocument startRecording] + 156 (presentationCastDocument.mm:256)





class CAAudioFileRecorderInputSelection : public CAAudioFileRecorder{
public:
CAAudioFileRecorderInputSelection::CAAudioFileRecorderInputSelection (int nBuffers, UInt32 bufferSizeFrames) :
CAAudioFileRecorder(nBuffers, bufferSizeFrames){ };
void setDefaultInput(AudioDeviceID inputDevice);
};



void CAAudioFileRecorderInputSelection::setDefaultInput (AudioDeviceID inputDevice)
{
XThrowIfError(
AudioUnitSetProperty(mInputUnit, kAudioOutputUnitProperty_CurrentDevice, kAudioUnitScope_Global, 0, &inputDevice, sizeof(inputDevice)),
"failed to select input device");
}




and the code where this get called:
- (BOOL) startRecording
{
  //mark the document as modified
  //
  [self updateChangeCount: NSChangeDone];

if (![self audioFileRecorder])
{
//create a fileWriter
//
const unsigned kBufferSize = 0x8000;
[self setAudioFileRecorder: new CAAudioFileRecorderInputSelection (3, kBufferSize)]; //8Kb buffer


    //set the input device for the file recorder
....
  }
}


_______________________________________________ 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
  • Follow-Ups:
    • Re: crash
      • From: Jeff Moore <email@hidden>
  • Prev by Date: AU validation
  • Next by Date: Re: Silent m4a AAC recordings
  • Previous by thread: Re: AU validation
  • Next by thread: Re: crash
  • Index(es):
    • Date
    • Thread