Ultraschall/ultraschall-soundboard

Crash double release Listener

danlin opened this issue · 0 comments

Process 7495 stopped
* thread #1: tid = 7495, 0x0000000000744bf2 Soundboard`juce::Array<juce::ChangeListener*, juce::DummyCriticalSection, 0>::deleteAllElements(this=0x0000000000000028) + 34 at juce_Array.h:1125, name = 'Soundboard', stop reason = invalid address (fault address: 0x38)
    frame #0: 0x0000000000744bf2 Soundboard`juce::Array<juce::ChangeListener*, juce::DummyCriticalSection, 0>::deleteAllElements(this=0x0000000000000028) + 34 at juce_Array.h:1125
   1122 
   1123     inline void deleteAllElements() noexcept
   1124     {
-> 1125         for (int i = 0; i < numUsed; ++i)
   1126             data.elements[i].~ElementType();
   1127     }
   1128 
(lldb) backtrac       e
* thread #1: tid = 7495, 0x0000000000744bf2 Soundboard`juce::Array<juce::ChangeListener*, juce::DummyCriticalSection, 0>::deleteAllElements(this=0x0000000000000028) + 34 at juce_Array.h:1125, name = 'Soundboard', stop reason = invalid address (fault address: 0x38)
  * frame #0: 0x0000000000744bf2 Soundboard`juce::Array<juce::ChangeListener*, juce::DummyCriticalSection, 0>::deleteAllElements(this=0x0000000000000028) + 34 at juce_Array.h:1125
    frame #1: 0x0000000000744bae Soundboard`juce::Array<juce::ChangeListener*, juce::DummyCriticalSection, 0>::clear(this=0x0000000000000028) + 46 at juce_Array.h:203
    frame #2: 0x0000000000741955 Soundboard`juce::ListenerList<juce::ChangeListener, juce::Array<juce::ChangeListener*, juce::DummyCriticalSection, 0> >::clear(this=0x0000000000000028) + 21 at juce_ListenerList.h:135
    frame #3: 0x000000000073c875 Soundboard`juce::ChangeBroadcaster::removeAllChangeListeners(this=0x0000000000000000) + 133 at juce_ChangeBroadcaster.cpp:58
    frame #4: 0x000000000052d3b0 Soundboard`~Player(this=0x0000000001276e70) + 80 at Player.cpp:38
    frame #5: 0x000000000052d319 Soundboard`~Player(this=0x0000000001276e70) + 25 at Player.cpp:36
    frame #6: 0x000000000050d173 Soundboard`SoundboardAudioProcessor::openDirectory(this=0x00000000011c7900, directory=<unavailable>) + 787 at PluginProcessor.cpp:355
    frame #7: 0x00000000004c654d Soundboard`SoundboardAudioProcessorEditor::buttonClicked(this=0x0000000001242a20, buttonThatWasClicked=0x0000000001229c40) + 285 at PluginEditor.cpp:153
    frame #8: 0x00000000004c6c2f Soundboard`non-virtual thunk to SoundboardAudioProcessorEditor::buttonClicked(this=0x0000000001242af8, buttonThatWasClicked=0x0000000001229c40) + 47 at PluginEditor.cpp:207
    frame #9: 0x000000000090efb6 Soundboard`void juce::ListenerList<juce::Button::Listener, juce::Array<juce::Button::Listener*, juce::DummyCriticalSection, 0> >::callChecked<juce::Component::BailOutChecker, juce::Button*>(this=0x0000000001229d48, bailOutChecker=0x00007fffffffd458, callbackFunction=11 00 00 00 00 00 00 00, param1=0x0000000001229c40)(juce::Button*), juce::TypeHelpers::ParameterType<juce::Button*>::type) + 214 at juce_ListenerList.h:178
    frame #10: 0x000000000085aff4 Soundboard`juce::Button::sendClickMessage(this=0x0000000001229c40, modifiers=0x00007fffffffd638) + 308 at juce_Button.cpp:410
    frame #11: 0x000000000085b677 Soundboard`juce::Button::internalClickCallback(this=0x0000000001229c40, modifiers=0x00007fffffffd638) + 167 at juce_Button.cpp:354
    frame #12: 0x000000000085bc4b Soundboard`juce::Button::mouseUp(this=0x0000000001229c40, e=0x00007fffffffd628) + 155 at juce_Button.cpp:460
    frame #13: 0x000000000084fbed Soundboard`juce::Component::internalMouseUp(this=0x0000000001229c40, source=<unavailable>, relativePos=<unavailable>, time=<unavailable>, oldModifiers=<unavailable>) + 589 at juce_Component.cpp:2492
    frame #14: 0x000000000096fdb6 Soundboard`juce::MouseInputSourceInternal::sendMouseUp(this=0x00000000011c0730, comp=0x0000000001229c40, screenPos=<unavailable>, time=<unavailable>, oldMods=<unavailable>) + 198 at juce_MouseInputSource.cpp:147
    frame #15: 0x000000000096f80b Soundboard`juce::MouseInputSourceInternal::setButtons(this=0x00000000011c0730, screenPos=<unavailable>, time=<unavailable>, newButtonState=<unavailable>) + 779 at juce_MouseInputSource.cpp:189
    frame #16: 0x000000000090b007 Soundboard`juce::MouseInputSourceInternal::handleEvent(this=0x00000000011c0730, newPeer=0x00000000011c1fc0, positionWithinPeer=<unavailable>, time=<unavailable>, newMods=<unavailable>) + 583 at juce_MouseInputSource.cpp:306
    frame #17: 0x00000000008529ef Soundboard`juce::MouseInputSource::handleEvent(this=0x00007fffffffdb20, peer=0x00000000011c1fc0, pos=<unavailable>, time=1431797330591, mods=(flags = 0)) + 127 at juce_MouseInputSource.cpp:564
    frame #18: 0x00000000008f50f9 Soundboard`juce::ComponentPeer::handleMouseEvent(this=0x00000000011c1fc0, touchIndex=0, pos=<unavailable>, newMods=<unavailable>, time=1431797330591) + 185 at juce_ComponentPeer.cpp:91
    frame #19: 0x000000000097af7e Soundboard`juce::LinuxComponentPeer::handleButtonReleaseEvent(this=0x00000000011c1fc0, buttonRelEvent=0x00007fffffffdca8) + 398 at juce_linux_Windowing.cpp:2246
    frame #20: 0x0000000000979f8c Soundboard`juce::LinuxComponentPeer::handleWindowMessage(this=0x00000000011c1fc0, event=0x00007fffffffdca8) + 140 at juce_linux_Windowing.cpp:1986
    frame #21: 0x0000000000973eea Soundboard`juce::LinuxComponentPeer::windowMessageReceive(event=0x00007fffffffdca8) + 74 at juce_linux_Windowing.cpp:1530
    frame #22: 0x00000000007477ab Soundboard`juce::InternalMessageQueue::dispatchNextXEvent() + 379 at juce_linux_Messaging.cpp:174
    frame #23: 0x0000000000743204 Soundboard`juce::InternalMessageQueue::dispatchNextEvent(this=0x00000000011b33c0) + 52 at juce_linux_Messaging.cpp:93
    frame #24: 0x000000000073b2f2 Soundboard`juce::MessageManager::dispatchNextMessageOnSystemQueue(returnIfNoPendingMessages=false) + 194 at juce_linux_Messaging.cpp:390
    frame #25: 0x000000000073a386 Soundboard`juce::MessageManager::runDispatchLoop(this=0x00000000011b32c0) + 150 at juce_MessageManager.cpp:130
    frame #26: 0x000000000073a28d Soundboard`juce::JUCEApplicationBase::main() + 461 at juce_ApplicationBase.cpp:240
    frame #27: 0x000000000073a0ba Soundboard`juce::JUCEApplicationBase::main(argc=1, argv=0x00007fffffffdf98) + 42 at juce_ApplicationBase.cpp:218
    frame #28: 0x00000000004bf5b2 Soundboard`main(argc=1, argv=0x00007fffffffdf98) + 50 at Main.cpp:62
    frame #29: 0x00007ffff5c91ec5 libc.so.6`__libc_start_main + 245
    frame #30: 0x00000000004bf4b4 Soundboard`_start + 41