|
From: Hartmut L. <har...@on...> - 2012-06-10 14:41:17
|
Hi , I have written an small App loading AU. I can Load LinuxSampler AU it works, but with cratches. Other AU works fine... Where is my mistake ? Wenn I will Remove LS from AudioGraph the Plugin crash, other Plugins work without any Error. Who can help me, I'm searching contact to the AU developer! Crashreport: Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 libsystem_kernel.dylib 0x00007fff88a8fb8e __psynch_cvbroad + 10 1 libsystem_c.dylib 0x00007fff9025b9c8 pthread_cond_broadcast + 653 2 liblinuxsampler.3.dylib 0x00000001099d2499 LinuxSampler::Condition::Set(bool) + 105 3 liblinuxsampler.3.dylib 0x00000001099a270b LinuxSampler::InstrumentManagerThread::StopThread() + 27 4 liblinuxsampler.3.dylib 0x000000010994bd5d LinuxSampler::LSCPServer::~LSCPServer() + 29 5 liblinuxsampler.3.dylib 0x00000001099accb8 LinuxSampler::PluginGlobal::~PluginGlobal() + 88 6 liblinuxsampler.3.dylib 0x00000001099acf5a LinuxSampler::Plugin::~Plugin() + 90 7 org.linuxsampler.LinuxSamplerAU 0x0000000108c01dd0 0x108c00000 + 7632 8 org.linuxsampler.LinuxSamplerAU 0x0000000108c1241f PluginAUEntry + 60463 9 org.linuxsampler.LinuxSamplerAU 0x0000000108c0f2b2 PluginAUEntry + 47810 10 org.linuxsampler.LinuxSamplerAU 0x0000000108c03812 PluginAUEntry + 34 11 com.apple.CoreServices.CarbonCore 0x00007fff88c5ea09 CallComponentClose + 46 12 com.apple.CoreServices.CarbonCore 0x00007fff88c0916a CloseComponentInternal(ComponentInstanceRecord*) + 96 13 com.apple.CoreServices.CarbonCore 0x00007fff88c09242 CloseComponent + 33 14 com.apple.audio.toolbox.AudioToolbox 0x00007fff93e73493 AudioComponentMgr::DisposeInstance(ComponentInstanceRecord*) + 9 15 com.apple.audio.toolbox.AudioToolbox 0x00007fff93daf492 AudioUnitNodeInfo::~AudioUnitNodeInfo() + 58 16 com.apple.audio.toolbox.AudioToolbox 0x00007fff93daf858 AudioUnitGraph::DoRemoveNode(int, AUNodeInfo**) + 90 17 com.apple.audio.toolbox.AudioToolbox 0x00007fff93daffd8 AudioUnitGraph::RemoveNode(int) + 196 18 com.apple.audio.toolbox.AudioToolbox 0x00007fff93db2b38 AUGraphRemoveNode + 152 |
|
From: Hartmut L. <har...@on...> - 2012-06-12 05:56:37
|
I Have look on the Source
#ifdef __APPLE__
int InstrumentManagerThread::StopThread() {
// This is a fix for Mac OS X, where SignalStopThread doesn't
// wake up a thread waiting for a condition variable.
SignalStopThread(); // send stop signal, but don't wait
conditionJobsLeft.Set(true); // wake thread
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
return Thread::StopThread(); // then wait for it to cancel
}
#endif
Am 10.06.2012 16:41, schrieb Hartmut Lang:
> Hi , I have written an small App loading AU. I can Load LinuxSampler AU
> it works, but with cratches. Other AU works fine... Where is my mistake ?
> Wenn I will Remove LS from AudioGraph the Plugin crash, other Plugins
> work without any Error. Who can help me, I'm searching contact to the AU
> developer!
>
> Crashreport:
> Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
> 0 libsystem_kernel.dylib 0x00007fff88a8fb8e
> __psynch_cvbroad + 10
> 1 libsystem_c.dylib 0x00007fff9025b9c8
> pthread_cond_broadcast + 653
> 2 liblinuxsampler.3.dylib 0x00000001099d2499
> LinuxSampler::Condition::Set(bool) + 105
> 3 liblinuxsampler.3.dylib 0x00000001099a270b
> LinuxSampler::InstrumentManagerThread::StopThread() + 27
> 4 liblinuxsampler.3.dylib 0x000000010994bd5d
> LinuxSampler::LSCPServer::~LSCPServer() + 29
> 5 liblinuxsampler.3.dylib 0x00000001099accb8
> LinuxSampler::PluginGlobal::~PluginGlobal() + 88
> 6 liblinuxsampler.3.dylib 0x00000001099acf5a
> LinuxSampler::Plugin::~Plugin() + 90
> 7 org.linuxsampler.LinuxSamplerAU 0x0000000108c01dd0 0x108c00000 + 7632
> 8 org.linuxsampler.LinuxSamplerAU 0x0000000108c1241f PluginAUEntry
> + 60463
> 9 org.linuxsampler.LinuxSamplerAU 0x0000000108c0f2b2 PluginAUEntry
> + 47810
> 10 org.linuxsampler.LinuxSamplerAU 0x0000000108c03812 PluginAUEntry + 34
> 11 com.apple.CoreServices.CarbonCore 0x00007fff88c5ea09
> CallComponentClose + 46
> 12 com.apple.CoreServices.CarbonCore 0x00007fff88c0916a
> CloseComponentInternal(ComponentInstanceRecord*) + 96
> 13 com.apple.CoreServices.CarbonCore 0x00007fff88c09242
> CloseComponent + 33
> 14 com.apple.audio.toolbox.AudioToolbox 0x00007fff93e73493
> AudioComponentMgr::DisposeInstance(ComponentInstanceRecord*) + 9
> 15 com.apple.audio.toolbox.AudioToolbox 0x00007fff93daf492
> AudioUnitNodeInfo::~AudioUnitNodeInfo() + 58
> 16 com.apple.audio.toolbox.AudioToolbox 0x00007fff93daf858
> AudioUnitGraph::DoRemoveNode(int, AUNodeInfo**) + 90
> 17 com.apple.audio.toolbox.AudioToolbox 0x00007fff93daffd8
> AudioUnitGraph::RemoveNode(int) + 196
> 18 com.apple.audio.toolbox.AudioToolbox 0x00007fff93db2b38
> AUGraphRemoveNode + 152
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Linuxsampler-devel mailing list
> Lin...@li...
> https://lists.sourceforge.net/lists/listinfo/linuxsampler-devel
|
|
From: Andreas P. <and...@br...> - 2012-06-16 06:51:56
|
On 2012-06-10 16:41, Hartmut Lang wrote: > Hi , I have written an small App loading AU. I can Load LinuxSampler AU > it works, but with cratches. Other AU works fine... Where is my mistake ? > Wenn I will Remove LS from AudioGraph the Plugin crash, other Plugins > work without any Error. Who can help me, I'm searching contact to the AU > developer! What version of LinuxSampler do you use? Did you build it yourself, or did you use any of the snapshot builds? Can you show us the code in your small app that loads and unloads the AU? I have not seen the crash, neither in AULab, GarageBand nor Reaper. /Andreas |
|
From: Andreas P. <and...@br...> - 2012-06-17 15:56:31
|
On 2012-06-16 08:32, Andreas Persson wrote: > On 2012-06-10 16:41, Hartmut Lang wrote: >> Hi , I have written an small App loading AU. I can Load LinuxSampler AU >> it works, but with cratches. Other AU works fine... Where is my mistake ? >> Wenn I will Remove LS from AudioGraph the Plugin crash, other Plugins >> work without any Error. Who can help me, I'm searching contact to the AU >> developer! > > What version of LinuxSampler do you use? Did you build it yourself, or > did you use any of the snapshot builds? > > Can you show us the code in your small app that loads and unloads the AU? > > I have not seen the crash, neither in AULab, GarageBand nor Reaper. I got the code off-list. It turned out that the problem was specific to OS X Lion (and probably newer versions), and that Reaper on Lion also crashed when the plugin was unloaded. I've committed a fix for this now. The Mac specific fix in InstrumentManagerThread was: a) not needed anymore in Lion, b) causing crashes in Lion, so I added an OS version check. /Andreas |