Progress bar in Audio Unit, crashes Logic
Progress bar in Audio Unit, crashes Logic
- Subject: Progress bar in Audio Unit, crashes Logic
- From: Rob Martino <email@hidden>
- Date: Wed, 29 Oct 2003 21:33:12 -0500
I'm trying to display a progress bar that comes up when the user
imports a wav or aiff file to be analyzed by a synth plug-in. I create
a new window with a progress control and start the processing on other
thread, and use YieldToThread at points within the processing thread to
allow the progress bar window to update. This all seems to work fine
on most hosts, however in Logic I get a crash soon after processing
starts (crash log follows for anyone so inclined).
I was just wondering if there are any issues I should watch out for
when creating a new thread within a plug-in. The progress bar window
is modal, so the user shouldn't be able to do anything while import
processing is going on but watch the bar go across.
Thanks,
Rob
**********
Date/Time: 2003-10-29 21:24:53 -0500
OS Version: 10.2.8 (Build 6R73)
Host: iMac.local.
Command: Logic Platinum
PID: 1637
Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x0000009a
Thread 0 Crashed:
#0 0x0037508c in 0x37508c
#1 0x00374550 in 0x374550
#2 0x001519d4 in 0x1519d4
#3 0x000048d4 in 0x48d4
#4 0x00004754 in 0x4754
Thread 1:
#0 0x90073ba8 in mach_msg_trap
#1 0x90005ed0 in mach_msg
#2 0x901489f0 in __CFRunLoopRun
#3 0x90180f58 in CFRunLoopRunSpecific
#4 0x9465315c in HALRunLoop::OwnThread(void*)
#5 0x946593ac in CAPThread::Entry(CAPThread*)
#6 0x90020c28 in _pthread_body
Thread 2:
#0 0x90042588 in semaphore_timedwait_signal_trap
#1 0x9003e7b4 in _pthread_cond_wait
#2 0x90233198 in TSWaitOnSemaphoreCommon
#3 0x9023bf78 in TimerThread
#4 0x90020c28 in _pthread_body
Thread 3:
#0 0x9003e9a8 in semaphore_wait_signal_trap
#1 0x9003e7c4 in _pthread_cond_wait
#2 0x0045d0f4 in 0x45d0f4
#3 0x90020c28 in _pthread_body
Thread 4:
#0 0x90073ba8 in mach_msg_trap
#1 0x90005ed0 in mach_msg
#2 0x953ddd60 in XServerMachPort::ReceiveMessage(int&, void*, int&)
#3 0x953d1798 in MIDIInPortThread::Run()
#4 0x953d55dc in XThread::RunHelper(void*)
#5 0x90020c28 in _pthread_body
Thread 5:
#0 0x90042588 in semaphore_timedwait_signal_trap
#1 0x9003e7b4 in _pthread_cond_wait
#2 0x94644764 in CAGuard::WaitFor(unsigned long long)
#3 0x94644398 in CAGuard::WaitUntil(unsigned long long)
#4 0x94642d88 in HPIOThread::WorkLoop()
#5 0x94659368 in HPIOThread::ThreadEntry(HPIOThread*)
#6 0x946593ac in CAPThread::Entry(CAPThread*)
#7 0x90020c28 in _pthread_body
Thread 6:
#0 0x90042588 in semaphore_timedwait_signal_trap
#1 0x9003e7b4 in _pthread_cond_wait
#2 0x9022ffa4 in MPWaitOnQueue
#3 0x90736fc4 in TNodeSyncTask::SyncTaskProc(void*)
#4 0x9025e364 in PrivateMPEntryPoint
#5 0x90020c28 in _pthread_body
Thread 7:
#0 0x90073ba8 in mach_msg_trap
#1 0x90005ed0 in mach_msg
#2 0x9022a720 in SwitchContexts
#3 0x90224fc8 in YieldToThread
#4 0x9022ab80 in YieldToAnyThread
#5 0x07d57218 in HnmAnalyser::SleepThread()
#6 0x07d5b5c0 in HnmAnalyser::synthphtrax(MMatrix&, MMatrix&,
MMatrix&, double, double, MVector&, MVector&, MMatrix&)
#7 0x07d5ce10 in HnmAnalyser::hnm_analyse(MVector&, double, double,
MMatrix&, MMatrix&, MMatrix&, double*)
#8 0x07d572dc in HnmAnalyser::analyseSample(AudioFile&, float,
FileIO&, char*, ProgressBar*, int)
#9 0x07d43680 in ThreadEntry(void*)
#10 0x9023bba8 in CooperativeThread
#11 0x90020c28 in _pthread_body
PPC Thread State:
srr0: 0x0037508c srr1: 0x0200f930 vrsave: 0x00000000
xer: 0x00000000 lr: 0x00375044 ctr: 0x91a6ac24 mq: 0x00000000
r0: 0x00000000 r1: 0xbffff9a0 r2: 0x00b0e290 r3: 0x00000020
r4: 0x007d4bf6 r5: 0x007d4bf4 r6: 0x000000f0 r7: 0x43960000
r8: 0x000000c8 r9: 0x00be0960 r10: 0x00000064 r11: 0x00a4ec44
r12: 0x91a6ac24 r13: 0x00000000 r14: 0x00000000 r15: 0x00000000
r16: 0x00000000 r17: 0x00000000 r18: 0x00000000 r19: 0x00000000
r20: 0x0da577f0 r21: 0x00b1ba28 r22: 0x00b1ba28 r23: 0x00000000
r24: 0x00b1c288 r25: 0x00b1c480 r26: 0x007e0918 r27: 0x00b1c286
r28: 0x00b0ec9c r29: 0x00afbe40 r30: 0x00b1c520 r31: 0x00374a54
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.