• 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
midiserver crash using virtual midi sources
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

midiserver crash using virtual midi sources


  • Subject: midiserver crash using virtual midi sources
  • From: Tobias Baumbach <email@hidden>
  • Date: Wed, 23 Jan 2008 19:14:51 +0100

Hi,

i've a problem sending timestamped midi events to virtual midi sources. The midi server crashes often when i try to dispose the virtual midi source after sending timestamped midi events. Is something wrong with the following lines ??

   MIDIClientRef client = NULL;
   MIDIClientCreate(CFSTR("MIDI Client"), NULL, NULL, &client);
   MIDIEndpointRef pMidiEndpoint;
   MIDISourceCreate(client, CFSTR("Virtual Output"), &pMidiEndpoint);

   MIDIPacketList aMIDIPacketList;
   aMIDIPacketList.numPackets = 1;
   UInt64 time = AudioGetCurrentHostTime();

time = AudioConvertHostTimeToNanos(time) + 1000 * 1000 * 10; // adding 10ms
aMIDIPacketList.packet[0].timeStamp = AudioConvertNanosToHostTime(time);
MIDIReceived(pMidiEndpoint, &aMIDIPacketList);


   MIDIEndpointDispose(pMidiEndpoint);
   MIDIClientDispose(client);


I'm getting the following crashlog:


OS Version: 10.4.11 (Build 8S2167) Report Version: 4

Command: MIDIServer
Path:    /System/Library/Frameworks/CoreMIDIServer.framework/MIDIServer
Parent:  launchd [1]

Version: ??? (???)

PID:    4904
Thread: 1

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

Thread 0:
0 libSystem.B.dylib 0x90037b57 mach_wait_until + 7
1 libSystem.B.dylib 0x900377d9 sleep + 121
2 ...e.audio.midi.CoreMIDIServer 0x969f942e MIDIServerShutdown + 78
3 ...e.audio.midi.CoreMIDIServer 0x969f9d69 MIDIServerClientProcessQuit + 93
4 com.apple.CoreFoundation 0x9083d315 __CFMachPortPerform + 136
5 com.apple.CoreFoundation 0x9082d5b5 CFRunLoopRunSpecific + 2904
6 com.apple.CoreFoundation 0x9083e118 CFRunLoopRun + 60
7 ...e.audio.midi.CoreMIDIServer 0x969f9909 MIDIServerRun + 993
8 MIDIServer 0x00001eaf 0x1000 + 3759
9 MIDIServer 0x00001816 0x1000 + 2070
10 MIDIServer 0x0000173d 0x1000 + 1853


Thread 1 Crashed:
0 ...e.audio.midi.CoreMIDIServer 0x969e71ca MMScheduler::PopFirst(ScheduledEvent&) + 156
1 ...e.audio.midi.CoreMIDIServer 0x969e77d6 Scheduler::Perform(unsigned long long) + 426
2 ...e.audio.midi.CoreMIDIServer 0x96a053a1 TimerTaskMgr::Run() + 241
3 ...e.audio.midi.CoreMIDIServer 0x969f5c2f XThread::RunHelper(void*) + 17
4 ...e.audio.midi.CoreMIDIServer 0x96a04d0a CAPThread::Entry(CAPThread*) + 68
5 libSystem.B.dylib 0x90024227 _pthread_body + 84


Thread 2:
0 libSystem.B.dylib 0x90037b57 mach_wait_until + 7
1 libSystem.B.dylib 0x900377d9 sleep + 121
2 ...e.audio.midi.CoreMIDIServer 0x96a0cf31 DriverIOThread::Run() + 83
3 ...e.audio.midi.CoreMIDIServer 0x969f5c2f XThread::RunHelper(void*) + 17
4 ...e.audio.midi.CoreMIDIServer 0x96a04d0a CAPThread::Entry(CAPThread*) + 68
5 libSystem.B.dylib 0x90024227 _pthread_body + 84


Thread 3:
0 libSystem.B.dylib 0x90009cd7 mach_msg_trap + 7
1 ...e.audio.midi.CoreMIDIServer 0x96a03413 XServerMachPort::ReceiveMessage(int&, void*, int&) + 101
2 ...e.audio.midi.CoreMIDIServer 0x96a0ddc8 MIDIIOThread::Run() + 100
3 ...e.audio.midi.CoreMIDIServer 0x969f5c2f XThread::RunHelper(void*) + 17
4 ...e.audio.midi.CoreMIDIServer 0x96a04d0a CAPThread::Entry(CAPThread*) + 68
5 libSystem.B.dylib 0x90024227 _pthread_body + 84


Thread 1 crashed with X86 Thread State (32-bit):
 eax: 0x00000000  ebx: 0x969e713c  ecx: 0x01800a14  edx: 0x00000000
 edi: 0x003037b0  esi: 0x0031dee0  ebp: 0xb00809c8  esp: 0xb00809a0
  ss: 0x0000001f  efl: 0x00010246  eip: 0x969e71ca   cs: 0x00000017
  ds: 0x0000001f   es: 0x0000001f   fs: 0x00000000   gs: 0x00000037


Regards, Tobias _______________________________________________ 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: Re: I/O device with multiple *independent* SPDIF ports?
  • Next by Date: Re: Initial preset in monotimbral instrument AU ?
  • Previous by thread: Re: Playing "silence" to an AudioQueue (with VBR format)
  • Next by thread: Re: Automation woes
  • Index(es):
    • Date
    • Thread