View Issue Details

IDProjectCategoryView StatusLast Update
0004575ardourbugspublic2020-04-19 20:15
Reporterfarbro Assigned Tocth103  
PrioritynormalSeveritycrashReproducibilityrandom
Status closedResolutionfixed 
Product Version3.0-beta1 
Target Version3.0 
Summary0004575: Crash when playing with MIDI keyboard on playback
DescriptionI'm making a song with a lots of MIDI tracks and so far it has gone quite well until now.

Now I open up my session and I have a bunch of tracks, both MIDI and WAV tracks, using both LV2 and external synths. I've connected the one track with a LV2 synth to my MIDI keyboard, I start playback or record and I start playing on my keyboard. It works fore a while (random for how long) but suddenly result in a crash. It does not crash if I'm playing while playback is stopped.

I attached a backtrace.txt.



If I try to run Ardour from inside GDB, I get past the 'Open session' window but then gets a crash on boot with the following error:

Looking for MIDI Controllable with ID 2
    result = 0x2669690

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff70b6472 in boost::checked_delete<ARDOUR::Panner> (x=0x7fffdd648b40)
    at /usr/include/boost/checked_delete.hpp:34
34 delete x;

Attached full log as log.txt
TagsNo tags attached.

Activities

cth103

2011-12-20 12:34

administrator   ~0012430

Where are those log/backtrace files from? The original crash, or trying to load Ardour under gdb?

To get a trace for the MIDI crash it may be worth enabling core files using

ulimit -c unlimited

then running Ardour, triggering the crash and then loading the core file into gdb (do this by running Ardour in debug mode and typing 'core core' at the gdb prompt).

2011-12-21 16:02

 

backtrace.txt (15,408 bytes)   
Thread 23 (Thread 0x7fffb2b4e820 (LWP 10039)):

#0  0x00007fffec4454bd in nanosleep ()

   from /lib/x86_64-linux-gnu/libpthread.so.0

#1  0x00007ffff2dca9e2 in g_usleep ()

   from /lib/x86_64-linux-gnu/libglib-2.0.so.0

#2  0x00007ffff6e69d7c in ARDOUR::AudioEngine::meter_thread (this=0x2b32000)

    at ../libs/ardour/audioengine.cc:691

#3  0x00007ffff6e8996f in boost::_mfi::mf0<void, ARDOUR::AudioEngine>::operator() (this=0x7fffdea6e250, p=0x2b32000)

    at /usr/include/boost/bind/mem_fn_template.hpp:49

#4  0x00007ffff6e84f36 in boost::_bi::list1<boost::_bi::value<ARDOUR::AudioEngine*> >::operator()<boost::_mfi::mf0<void, ARDOUR::AudioEngine>, boost::_bi::list0> (this=0x7fffdea6e260, f=..., a=...) at /usr/include/boost/bind/bind.hpp:253

#5  0x00007ffff6e80a3e in boost::_bi::bind_t<void, boost::_mfi::mf0<void, ARDOUR::AudioEngine>, boost::_bi::list1<boost::_bi::value<ARDOUR::AudioEngine*> > >::operator() (this=0x7fffdea6e250) at /usr/include/boost/bind/bind_template.hpp:20

#6  0x00007ffff6e7bc34 in sigc::adaptor_functor<boost::_bi::bind_t<void, boost::_mfi::mf0<void, ARDOUR::AudioEngine>, boost::_bi::list1<boost::_bi::value<ARDOUR::AudioEngine*> > > >::operator() (this=0x7fffdea6e250)

    at /usr/include/sigc++-2.0/sigc++/adaptors/adaptor_trait.h:251

---Type <return> to continue, or q <return> to quit---

#7  0x00007ffff6e775c2 in sigc::internal::slot_call0<boost::_bi::bind_t<void, boost::_mfi::mf0<void, ARDOUR::AudioEngine>, boost::_bi::list1<boost::_bi::value<ARDOUR::AudioEngine*> > >, void>::call_it (rep=0x7fffdea6e220)

    at /usr/include/sigc++-2.0/sigc++/functors/slot.h:103

#8  0x00007ffff38eac3d in ?? () from /usr/lib/libglibmm-2.4.so.1

#9  0x00007ffff2dc73e4 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0

#10 0x00007fffec43cd8c in start_thread ()

   from /lib/x86_64-linux-gnu/libpthread.so.0

#11 0x00007fffec18804d in clone () from /lib/x86_64-linux-gnu/libc.so.6

#12 0x0000000000000000 in ?? ()



Thread 22 (Thread 0x7fffdb7c8700 (LWP 9986)):

#0  0x00007fffec17af03 in poll () from /lib/x86_64-linux-gnu/libc.so.6

#1  0x00007ffff2da0104 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0

#2  0x00007ffff2da09f2 in g_main_loop_run ()

   from /lib/x86_64-linux-gnu/libglib-2.0.so.0

#3  0x00007ffff4e67cd3 in BaseUI::main_thread (this=0x7fffdc127900)

    at ../libs/pbd/base_ui.cc:77

#4  0x00007ffff4e6909b in sigc::bound_mem_functor0<void, BaseUI>::operator() (

    this=0x7fffdc0a7678)

    at /usr/include/sigc++-2.0/sigc++/functors/mem_fun.h:1787

---Type <return> to continue, or q <return> to quit---

#5  0x00007ffff4e68efc in sigc::adaptor_functor<sigc::bound_mem_functor0<void, BaseUI> >::operator() (this=0x7fffdc0a7670)

    at /usr/include/sigc++-2.0/sigc++/adaptors/adaptor_trait.h:251

#6  0x00007ffff4e68c6d in sigc::internal::slot_call0<sigc::bound_mem_functor0<void, BaseUI>, void>::call_it (rep=0x7fffdc0a7640)

    at /usr/include/sigc++-2.0/sigc++/functors/slot.h:103

#7  0x00007ffff38eac3d in ?? () from /usr/lib/libglibmm-2.4.so.1

#8  0x00007ffff2dc73e4 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0

#9  0x00007fffec43cd8c in start_thread ()

   from /lib/x86_64-linux-gnu/libpthread.so.0

#10 0x00007fffec18804d in clone () from /lib/x86_64-linux-gnu/libc.so.6

#11 0x0000000000000000 in ?? ()



Thread 21 (Thread 0x7fffb7ff2820 (LWP 9985)):

#0  0x00007fffec17af03 in poll () from /lib/x86_64-linux-gnu/libc.so.6

#1  0x00007ffff6ee6b99 in ARDOUR::Butler::thread_work (this=0x7fffdc08f210)

    at ../libs/ardour/butler.cc:153

#2  0x00007ffff6ee6b01 in ARDOUR::Butler::_thread_work (arg=0x7fffdc08f210)

    at ../libs/ardour/butler.cc:137

#3  0x00007ffff4e9a438 in fake_thread_start (arg=0x7fffdc027040)

    at ../libs/pbd/pthread_utils.cc:81

---Type <return> to continue, or q <return> to quit---

#4  0x00007fffec43cd8c in start_thread ()

   from /lib/x86_64-linux-gnu/libpthread.so.0

#5  0x00007fffec18804d in clone () from /lib/x86_64-linux-gnu/libc.so.6

#6  0x0000000000000000 in ?? ()



Thread 20 (Thread 0x7fffb8074700 (LWP 9862)):

#0  0x00007fffec0d5d05 in raise () from /lib/x86_64-linux-gnu/libc.so.6

#1  0x00007fffec0d9ab6 in abort () from /lib/x86_64-linux-gnu/libc.so.6

#2  0x00007fffec0ce7c5 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6

#3  0x00007ffff7016728 in ARDOUR::MidiBuffer::merge_in_place (

    this=0x7fffdde73970, other=...) at ../libs/ardour/midi_buffer.cc:506

#4  0x00007ffff7079671 in ARDOUR::MidiTrack::write_out_of_band_data (

    this=0x7fffdec8ab50, bufs=..., nframes=512)

    at ../libs/ardour/midi_track.cc:469

#5  0x00007ffff7078cde in ARDOUR::MidiTrack::roll (this=0x7fffdec8ab50, 

    nframes=512, start_frame=9941036, end_frame=9941548, declick=0, 

    need_butler=@0x7fffb807392f) at ../libs/ardour/midi_track.cc:356

#6  0x00007ffff6fc6478 in ARDOUR::Graph::process_one_route (

    this=0x7fffdc0907c0, route=0x7fffdec8ab50) at ../libs/ardour/graph.cc:582

#7  0x00007ffff6fcaf66 in ARDOUR::GraphNode::process (this=0x7fffdec8acd0)

    at ../libs/ardour/graphnode.cc:79

---Type <return> to continue, or q <return> to quit---

#8  0x00007ffff6fc4dde in ARDOUR::Graph::run_one (this=0x7fffdc0907c0)

    at ../libs/ardour/graph.cc:402

#9  0x00007ffff6fc522c in ARDOUR::Graph::main_thread (this=0x7fffdc0907c0)

    at ../libs/ardour/graph.cc:458

#10 0x00007ffff6fca857 in boost::_mfi::mf0<void, ARDOUR::Graph>::operator() (

    this=0x7fffb8073be8, p=0x7fffdc0907c0)

    at /usr/include/boost/bind/mem_fn_template.hpp:49

#11 0x00007ffff6fca24c in boost::_bi::list1<boost::_bi::value<ARDOUR::Graph*> >::operator()<boost::_mfi::mf0<void, ARDOUR::Graph>, boost::_bi::list0> (

    this=0x7fffb8073bf8, f=..., a=...) at /usr/include/boost/bind/bind.hpp:253

#12 0x00007ffff6fc9df6 in boost::_bi::bind_t<void, boost::_mfi::mf0<void, ARDOUR::Graph>, boost::_bi::list1<boost::_bi::value<ARDOUR::Graph*> > >::operator() (

    this=0x7fffb8073be8) at /usr/include/boost/bind/bind_template.hpp:20

#13 0x00007ffff6fc98de in boost::detail::function::void_function_obj_invoker0<boost::_bi::bind_t<void, boost::_mfi::mf0<void, ARDOUR::Graph>, boost::_bi::list1<boost::_bi::value<ARDOUR::Graph*> > >, void>::invoke (function_obj_ptr=...)

    at /usr/include/boost/function/function_template.hpp:153

#14 0x000000000131d70a in boost::function0<void>::operator() (

    this=0x7fffb8073be0)

    at /usr/include/boost/function/function_template.hpp:1013

#15 0x00007ffff6e6cb19 in ARDOUR::AudioEngine::_start_process_thread (

---Type <return> to continue, or q <return> to quit---

    arg=0x7fffdc0a0c50) at ../libs/ardour/audioengine.cc:1475

#16 0x00007fffec43cd8c in start_thread ()

   from /lib/x86_64-linux-gnu/libpthread.so.0

#17 0x00007fffec18804d in clone () from /lib/x86_64-linux-gnu/libc.so.6

#18 0x0000000000000000 in ?? ()



Thread 19 (Thread 0x7fffb80f5700 (LWP 9861)):

#0  0x00007fffec443ea0 in sem_wait ()

   from /lib/x86_64-linux-gnu/libpthread.so.0

#1  0x00007ffff6fc6714 in PBD::ProcessSemaphore::wait (this=0x7fffdc0908c8)

    at /home/mats/Apps/3.0/libs/pbd/pbd/semutils.h:41

#2  0x00007ffff6fc5eee in ARDOUR::Graph::process_routes (this=0x7fffdc0907c0, 

    nframes=512, start_frame=9941036, end_frame=9941548, declick=0, 

    need_butler=@0x7fffb80f49de) at ../libs/ardour/graph.cc:533

#3  0x00007ffff7226972 in ARDOUR::Session::process_routes (this=

    0x7fffdc060400, nframes=512, need_butler=@0x7fffb80f49de)

    at ../libs/ardour/session_process.cc:153

#4  0x00007ffff7227468 in ARDOUR::Session::process_with_events (

    this=0x7fffdc060400, nframes=512) at ../libs/ardour/session_process.cc:382

#5  0x00007ffff72262f1 in ARDOUR::Session::process (this=0x7fffdc060400, 

    nframes=512) at ../libs/ardour/session_process.cc:75

---Type <return> to continue, or q <return> to quit---

#6  0x00007ffff6e69314 in ARDOUR::AudioEngine::process_callback (

    this=0x2b32000, nframes=512) at ../libs/ardour/audioengine.cc:518

#7  0x00007ffff6e68fba in ARDOUR::AudioEngine::process_thread (this=0x2b32000)

    at ../libs/ardour/audioengine.cc:443

#8  0x00007ffff6e689f6 in ARDOUR::AudioEngine::_process_thread (arg=0x2b32000)

    at ../libs/ardour/audioengine.cc:352

#9  0x00007fffedd13557 in ?? () from /usr/lib/libjack.so.0

#10 0x00007fffedd27840 in ?? () from /usr/lib/libjack.so.0

#11 0x00007fffec43cd8c in start_thread ()

   from /lib/x86_64-linux-gnu/libpthread.so.0

#12 0x00007fffec18804d in clone () from /lib/x86_64-linux-gnu/libc.so.6

#13 0x0000000000000000 in ?? ()



Thread 13 (Thread 0x7fffd63e0700 (LWP 9627)):

#0  0x00007fffec444cbd in read () from /lib/x86_64-linux-gnu/libpthread.so.0

#1  0x00007fffedd295da in ?? () from /usr/lib/libjack.so.0

#2  0x00007fffedd2bf67 in ?? () from /usr/lib/libjack.so.0

#3  0x00007fffedd27840 in ?? () from /usr/lib/libjack.so.0

#4  0x00007fffec43cd8c in start_thread ()

   from /lib/x86_64-linux-gnu/libpthread.so.0

#5  0x00007fffec18804d in clone () from /lib/x86_64-linux-gnu/libc.so.6

---Type <return> to continue, or q <return> to quit---

#6  0x0000000000000000 in ?? ()



Thread 12 (Thread 0x7fffe00e8700 (LWP 9625)):

#0  0x00007fffec441bac in pthread_cond_wait@@GLIBC_2.3.2 ()

   from /lib/x86_64-linux-gnu/libpthread.so.0

#1  0x00007fffedd29041 in ?? () from /usr/lib/libjack.so.0

#2  0x00007fffedd242e5 in ?? () from /usr/lib/libjack.so.0

#3  0x00007fffedd27840 in ?? () from /usr/lib/libjack.so.0

#4  0x00007fffec43cd8c in start_thread ()

   from /lib/x86_64-linux-gnu/libpthread.so.0

#5  0x00007fffec18804d in clone () from /lib/x86_64-linux-gnu/libc.so.6

#6  0x0000000000000000 in ?? ()



Thread 7 (Thread 0x7fffdafc7700 (LWP 9434)):

#0  0x00007fffec17af03 in poll () from /lib/x86_64-linux-gnu/libc.so.6

#1  0x00007ffff2da0104 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0

#2  0x00007ffff2da09f2 in g_main_loop_run ()

   from /lib/x86_64-linux-gnu/libglib-2.0.so.0

#3  0x00007ffff1fcfc44 in ?? () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0

#4  0x00007ffff2dc73e4 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0

#5  0x00007fffec43cd8c in start_thread ()

---Type <return> to continue, or q <return> to quit---

   from /lib/x86_64-linux-gnu/libpthread.so.0

#6  0x00007fffec18804d in clone () from /lib/x86_64-linux-gnu/libc.so.6

#7  0x0000000000000000 in ?? ()



Thread 5 (Thread 0x7fffe17b9700 (LWP 9408)):

#0  0x00007fffec441bac in pthread_cond_wait@@GLIBC_2.3.2 ()

   from /lib/x86_64-linux-gnu/libpthread.so.0

#1  0x00007ffff6dfc7cf in ARDOUR::Analyser::work ()

    at ../libs/ardour/analyser.cc:85

#2  0x00007ffff6dfc561 in analyser_work () at ../libs/ardour/analyser.cc:49

#3  0x00000000018c630b in sigc::pointer_functor0<void>::operator() (

    this=0x27b9838) at /usr/include/sigc++-2.0/sigc++/functors/ptr_fun.h:77

#4  0x00000000018c3ca6 in sigc::adaptor_functor<sigc::pointer_functor0<void> >::operator() (this=0x27b9830)

    at /usr/include/sigc++-2.0/sigc++/adaptors/adaptor_trait.h:251

#5  0x00000000018c0ecb in sigc::internal::slot_call0<sigc::pointer_functor0<void>, void>::call_it (rep=0x27b9800)

    at /usr/include/sigc++-2.0/sigc++/functors/slot.h:103

#6  0x00007ffff38eac3d in ?? () from /usr/lib/libglibmm-2.4.so.1

#7  0x00007ffff2dc73e4 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0

#8  0x00007fffec43cd8c in start_thread ()

---Type <return> to continue, or q <return> to quit---

   from /lib/x86_64-linux-gnu/libpthread.so.0

#9  0x00007fffec18804d in clone () from /lib/x86_64-linux-gnu/libc.so.6

#10 0x0000000000000000 in ?? ()



Thread 4 (Thread 0x7fffe1fba700 (LWP 9407)):

#0  0x00007fffec441bac in pthread_cond_wait@@GLIBC_2.3.2 ()

   from /lib/x86_64-linux-gnu/libpthread.so.0

#1  0x00007ffff72a3895 in peak_thread_work ()

    at ../libs/ardour/source_factory.cc:68

#2  0x00000000018c630b in sigc::pointer_functor0<void>::operator() (

    this=0x27b9d98) at /usr/include/sigc++-2.0/sigc++/functors/ptr_fun.h:77

#3  0x00000000018c3ca6 in sigc::adaptor_functor<sigc::pointer_functor0<void> >::operator() (this=0x27b9d90)

    at /usr/include/sigc++-2.0/sigc++/adaptors/adaptor_trait.h:251

#4  0x00000000018c0ecb in sigc::internal::slot_call0<sigc::pointer_functor0<void>, void>::call_it (rep=0x27b9d60)

    at /usr/include/sigc++-2.0/sigc++/functors/slot.h:103

#5  0x00007ffff38eac3d in ?? () from /usr/lib/libglibmm-2.4.so.1

#6  0x00007ffff2dc73e4 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0

#7  0x00007fffec43cd8c in start_thread ()

   from /lib/x86_64-linux-gnu/libpthread.so.0

---Type <return> to continue, or q <return> to quit---

#8  0x00007fffec18804d in clone () from /lib/x86_64-linux-gnu/libc.so.6

#9  0x0000000000000000 in ?? ()



Thread 3 (Thread 0x7fffe27bb700 (LWP 9406)):

#0  0x00007fffec441bac in pthread_cond_wait@@GLIBC_2.3.2 ()

   from /lib/x86_64-linux-gnu/libpthread.so.0

#1  0x00007ffff72a3895 in peak_thread_work ()

    at ../libs/ardour/source_factory.cc:68

#2  0x00000000018c630b in sigc::pointer_functor0<void>::operator() (

    this=0x27b9ff8) at /usr/include/sigc++-2.0/sigc++/functors/ptr_fun.h:77

#3  0x00000000018c3ca6 in sigc::adaptor_functor<sigc::pointer_functor0<void> >::operator() (this=0x27b9ff0)

    at /usr/include/sigc++-2.0/sigc++/adaptors/adaptor_trait.h:251

#4  0x00000000018c0ecb in sigc::internal::slot_call0<sigc::pointer_functor0<void>, void>::call_it (rep=0x27b9fc0)

    at /usr/include/sigc++-2.0/sigc++/functors/slot.h:103

#5  0x00007ffff38eac3d in ?? () from /usr/lib/libglibmm-2.4.so.1

#6  0x00007ffff2dc73e4 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0

#7  0x00007fffec43cd8c in start_thread ()

   from /lib/x86_64-linux-gnu/libpthread.so.0

#8  0x00007fffec18804d in clone () from /lib/x86_64-linux-gnu/libc.so.6

---Type <return> to continue, or q <return> to quit---

#9  0x0000000000000000 in ?? ()



Thread 2 (Thread 0x7fffe2fbc700 (LWP 9405)):

#0  0x00007fffec14f5ad in nanosleep () from /lib/x86_64-linux-gnu/libc.so.6

#1  0x00007fffec180984 in usleep () from /lib/x86_64-linux-gnu/libc.so.6

#2  0x0000000001b24b08 in gui_event_loop (ptr=0x0)

    at ../gtk2_ardour/linux_vst_gui_support.cc:363

#3  0x00007fffec43cd8c in start_thread ()

   from /lib/x86_64-linux-gnu/libpthread.so.0

#4  0x00007fffec18804d in clone () from /lib/x86_64-linux-gnu/libc.so.6

#5  0x0000000000000000 in ?? ()



Thread 1 (Thread 0x7ffff7fa09c0 (LWP 9230)):

#0  0x00007fffec17af03 in poll () from /lib/x86_64-linux-gnu/libc.so.6

#1  0x00007ffff2da0104 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0

#2  0x00007ffff2da09f2 in g_main_loop_run ()

   from /lib/x86_64-linux-gnu/libglib-2.0.so.0

#3  0x00007ffff284faf7 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0

#4  0x00007ffff52d6ddb in Gtkmm2ext::UI::run (this=0x2534a10, old_receiver=...)

    at ../libs/gtkmm2ext/gtk_ui.cc:266

#5  0x00000000017200e3 in main (argc=1, argv=0x7fffffffdbe8)

---Type <return> to continue, or q <return> to quit---

    at ../gtk2_ardour/main.cc:555
backtrace.txt (15,408 bytes)   

cth103

2011-12-21 16:02

administrator   ~0012436

Uploaded correct backtrace.

paul

2011-12-30 01:40

administrator   ~0012491

please try this again with current svn (around 11108 or so) and confirm whether the problem still exists.

farbro

2012-03-10 12:27

reporter   ~0012897

Sorry for the delay, I haven't had access to a MIDI keyboard for a while. The problem seems to be fixed!

cth103

2012-03-10 13:51

administrator   ~0012898

Thanks!

system

2020-04-19 20:15

developer   ~0022900

Issue has been closed automatically, by Trigger Close Plugin.
Feel free to re-open with additional information if you think the issue is not resolved.

Issue History

Date Modified Username Field Change
2011-12-20 02:05 farbro New Issue
2011-12-20 02:05 farbro File Added: backtrace.txt
2011-12-20 02:05 farbro File Added: log.txt
2011-12-20 11:42 cth103 cost => 0.00
2011-12-20 11:42 cth103 Target Version => 3.0-beta2
2011-12-20 12:34 cth103 Note Added: 0012430
2011-12-20 12:34 cth103 Status new => feedback
2011-12-21 16:01 cth103 File Deleted: backtrace.txt
2011-12-21 16:01 cth103 File Deleted: log.txt
2011-12-21 16:02 cth103 File Added: backtrace.txt
2011-12-21 16:02 cth103 Note Added: 0012436
2011-12-30 01:40 paul Note Added: 0012491
2012-01-10 20:45 cth103 Target Version 3.0-beta2 => 3.0-beta3
2012-02-14 17:20 paul Target Version 3.0-beta3 => 3.0 beta4
2012-03-10 12:27 farbro Note Added: 0012897
2012-03-10 13:51 cth103 Note Added: 0012898
2012-03-10 13:51 cth103 Status feedback => resolved
2012-03-10 13:51 cth103 Resolution open => fixed
2012-03-10 13:51 cth103 Assigned To => cth103
2012-05-23 15:08 cth103 Target Version 3.0 beta4 => 3.0
2020-04-19 20:15 system Note Added: 0022900
2020-04-19 20:15 system Status resolved => closed