Audio Plugin causes crash (OSX+Live8)


#1

Well i thought this was my code crashing, but it’s not. I’ve built a clean JuceDemo plugin (not a single character modified), with the latest tip.

The crash occurs when:

  1. add JuceDemoPlugin on track
  2. move the slider
  3. save a project
  4. File->New Live Set
  5. save or don’t save doesn’t matter, once you choose, crash

stack looks like this (no juce code on stack so not very useful)

0x9175c5c1  <+0000>  push   %ebp
0x9175c5c2  <+0001>  mov    %esp,%ebp
0x9175c5c4  <+0003>  sub    $0x28,%esp
0x9175c5c7  <+0006>  lea    -0x14(%ebp),%eax
0x9175c5ca  <+0009>  movl   $0x0,-0x14(%ebp)
0x9175c5d1  <+0016>  movl   $0x0,-0xc(%ebp)
0x9175c5d8  <+0023>  movl   $0xffffffff,-0x10(%ebp)
0x9175c5df  <+0030>  movl   $0x0,0x8(%esp)
0x9175c5e7  <+0038>  mov    %eax,0x4(%esp)
0x9175c5eb  <+0042>  movl   $0x6,(%esp)
0x9175c5f2  <+0049>  call   0xa0a16a2e <dyld_stub_sigaction>
0x9175c5f7  <+0054>  lea    -0x10(%ebp),%eax
0x9175c5fa  <+0057>  andl   $0xffffffdf,-0x10(%ebp)
0x9175c5fe  <+0061>  movl   $0x0,0x8(%esp)
0x9175c606  <+0069>  mov    %eax,0x4(%esp)
0x9175c60a  <+0073>  movl   $0x3,(%esp)
0x9175c611  <+0080>  call   0xa0a16a4c <dyld_stub_sigprocmask>
0x9175c616  <+0085>  movl   $0x6,(%esp)
0x9175c61d  <+0092>  call   0xa0a16862 <dyld_stub_raise>
0x9175c622  <+0097>  movl   $0x2710,(%esp)
0x9175c629  <+0104>  call   0xa0a16d6c <dyld_stub_usleep$NOCANCEL$UNIX2003>
0x9175c62e  <+0109>  ud2a   

Console output

Program loaded.
run
[Switching to process 64028 local thread 0x2e03]
Running…
=shlibs-removed,shlib-info=[num="99",name="AudioIPCPlugIn",kind="B",dyld-addr="0x1bf56000",reason="dyld",requested-state="E",state="E",path="/System/Library/Extensions/AudioIPCDriver.kext/Contents/Resources/AudioIPCPlugIn.bundle/Contents/MacOS/AudioIPCPlugIn",description="/System/Library/Extensions/AudioIPCDriver.kext/Contents/Resources/AudioIPCPlugIn.bundle/Contents/MacOS/AudioIPCPlugIn",loaded_addr="0x1bf56000",slide="0x1bf56000",prefix=""]
=shlibs-removed,shlib-info=[num="102",name="Ableton Live Engine",kind="B",dyld-addr="0x1c1b8000",reason="dyld",requested-state="E",state="E",path="/Applications/Live 8.0.10 OS X/Live.app/Contents/Resources/Ableton Live Engine.bundle/Contents/MacOS/Ableton Live Engine",description="/Applications/Live 8.0.10 OS X/Live.app/Contents/Resources/Ableton Live Engine.bundle/Contents/MacOS/Ableton Live Engine",loaded_addr="0x1c1b8000",slide="0x1c1b8000",prefix=""]
=shlibs-removed,shlib-info=[num="102",name="Ableton Live Engine",kind="B",dyld-addr="0x1c1b8000",reason="dyld",requested-state="E",state="E",path="/Applications/Live 8.0.10 OS X/Live.app/Contents/Resources/Ableton Live Engine.bundle/Contents/MacOS/Ableton Live Engine",description="/Applications/Live 8.0.10 OS X/Live.app/Contents/Resources/Ableton Live Engine.bundle/Contents/MacOS/Ableton Live Engine",loaded_addr="0x1c1b8000",slide="0x1c1b8000",prefix=""]
=shlibs-removed,shlib-info=[num="103",name="Ableton Live Engine",kind="B",dyld-addr="0x1c236000",reason="dyld",requested-state="E",state="E",path="/Applications/Live 8.0.10 OS X/Live.app/Contents/Resources/Ableton Live Engine.bundle/Contents/MacOS/Ableton Live Engine",description="/Applications/Live 8.0.10 OS X/Live.app/Contents/Resources/Ableton Live Engine.bundle/Contents/MacOS/Ableton Live Engine",loaded_addr="0x1c236000",slide="0x1c236000",prefix=""]
=shlibs-removed,shlib-info=[num="103",name="Ableton Live Engine",kind="B",dyld-addr="0x1c236000",reason="dyld",requested-state="E",state="E",path="/Applications/Live 8.0.10 OS X/Live.app/Contents/Resources/Ableton Live Engine.bundle/Contents/MacOS/Ableton Live Engine",description="/Applications/Live 8.0.10 OS X/Live.app/Contents/Resources/Ableton Live Engine.bundle/Contents/MacOS/Ableton Live Engine",loaded_addr="0x1c236000",slide="0x1c236000",prefix=""]
JUCE v1.51.11
=shlibs-removed,shlib-info=[num="103",name="JuceDemoPlugin",kind="-",dyld-addr="0x1e000000",reason="dyld",requested-state="E",state="E",path="/Users/atom/Library/Audio/Plug-Ins/VST/JuceDemoPlugin.vst/Contents/MacOS/JuceDemoPlugin",description="/Users/atom/Library/Audio/Plug-Ins/VST/JuceDemoPlugin.vst/Contents/MacOS/JuceDemoPlugin",loaded_addr="0x1e000000",slide="0x1e000000",prefix=""]
JUCE v1.51.11
[Switching to process 64028 thread 0xb723]
[Switching to process 64028 local thread 0x2e03]
=shlibs-removed,shlib-info=[num="111",name="JuceDemoPlugin",kind="-",dyld-addr="0x21000000",reason="dyld",requested-state="E",state="E",path="/Users/atom/Library/Audio/Plug-Ins/VST/JuceDemoPlugin.vst/Contents/MacOS/JuceDemoPlugin",description="/Users/atom/Library/Audio/Plug-Ins/VST/JuceDemoPlugin.vst/Contents/MacOS/JuceDemoPlugin",loaded_addr="0x21000000",slide="0x21000000",prefix=""]
[Switching to process 64028 thread 0x2f03]
Program received signal:  “EXC_BAD_INSTRUCTION”.
[Switching to process 64028 thread 0x2f03]
(gdb) 

I can’t figure out what’s wrong, this looks like a Live! bug but i’m not sure, i wanted some confirmation (this happens only with JUCE based plugins).

This OSX 10.5.7, intel, Xcode 3.1.4


#2

Is this the same issue i saw on the forum some time ago ? Was this ever fixed ?