View Issue Details

IDProjectCategoryView StatusLast Update
0006511ardourbugspublic2015-08-15 20:29
Reportermendred Assigned Tomendred  
PrioritynormalSeveritycrashReproducibilityalways
Status closedResolutionfixed 
Product Version4.X git (version in description) 
Summary0006511: 4.2 (4.2, 4.2.8, 4.2.9 nightly) crash when loading hydrogen drumkit composite sampler plugin
DescriptionWhen ardour starts up and loads a project with a composite sampler lv2 plugin it crashes

This did not happen in 4.1 (release). This crash occurs on 4.2, 4.2.8, 4.2.9 (nightly) - i have pasted the debug output below. Please let me know if any other info is required. This happens everytime i try to load any project with the composite sampler plugin which happens to be most of my projects!

*** WEAK-JACK: function 'jack_get_property' ignored
Loading drumkit 'GSCW-1-v2'
[New Thread 0x7fff7d746700 (LWP 29391)]
[New Thread 0x7fff7df47700 (LWP 29390)]
[New Thread 0x7fff7eb4f700 (LWP 29389)]
[New Thread 0x7fff7f76e700 (LWP 29388)]
[New Thread 0x7fff981f5700 (LWP 29387)]
[New Thread 0x7fff98276700 (LWP 29379)]
[New Thread 0x7fff982f7700 (LWP 29371)]
[New Thread 0x7fffa809f700 (LWP 29370)]
[New Thread 0x7fffb80b9700 (LWP 29362)]
[New Thread 0x7fffd00d5700 (LWP 29361)]
[New Thread 0x7fff99606700 (LWP 29360)]
[New Thread 0x7fff9a079700 (LWP 29358)]
[New Thread 0x7fff9a87a700 (LWP 29357)]
[New Thread 0x7fff9b07b700 (LWP 29356)]
[New Thread 0x7fff9bfff700 (LWP 29355)]
[New Thread 0x7fffa8f27700 (LWP 29354)]
[New Thread 0x7fffa99a2700 (LWP 29353)]
[New Thread 0x7fffb8e02700 (LWP 29352)]
[New Thread 0x7fffb987e700 (LWP 29351)]
[New Thread 0x7fffbbfff700 (LWP 29350)]
[New Thread 0x7fffd0fbf700 (LWP 29349)]
[New Thread 0x7fffd1fc1700 (LWP 29348)]
[New Thread 0x7fffd27c2700 (LWP 29347)]
[New Thread 0x7fffd17c0700 (LWP 29346)]
[New Thread 0x7fffd03ce800 (LWP 29345)]
[New Thread 0x7fffd0450700 (LWP 29344)]
[New Thread 0x7fffd04d1700 (LWP 29343)]
[New Thread 0x7fffd0552700 (LWP 29342)]
[New Thread 0x7fffd05d3700 (LWP 29341)]
[New Thread 0x7fffd0654700 (LWP 29338)]
[New Thread 0x7fffd3044700 (LWP 29337)]
[New Thread 0x7fffd30c5700 (LWP 29336)]
[New Thread 0x7fffd2fc3700 (LWP 29326)]
[New Thread 0x7fffe8ec9700 (LWP 29320)]
[New Thread 0x7fffe96ca700 (LWP 29319)]

Program received signal SIGABRT, Aborted.
0x0000003f92435267 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:55
55 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
TagsNo tags attached.

  Users sponsoring this issue
Sponsors List Total Sponsorship = US$ 5

2015-08-15 10:29: mendred (US$ 5)
  Users sponsoring this issue (Total Sponsorship = US$ 5)

Activities

mendred

2015-08-15 15:10

reporter   ~0017037

Downloaded the latest code from git (4.2.18), compiled and ran after installing the various dependencies and am able to reproduce this error.

mendred

2015-08-15 15:19

reporter   ~0017038

attached backtrace

Skip explicit buffer seconds, preset in use
Loading drumkit 'GSCW-1-v2'
[New Thread 0x7fff3ffff700 (LWP 24862)]
[New Thread 0x7fff64fca700 (LWP 24861)]
[New Thread 0x7fff659ce700 (LWP 24859)]
[New Thread 0x7fff668f9700 (LWP 24858)]
[New Thread 0x7fff74112700 (LWP 24857)]
[New Thread 0x7fff7c0f1700 (LWP 24849)]
[New Thread 0x7fff7c172700 (LWP 24841)]
[New Thread 0x7fffc8100700 (LWP 24840)]
[New Thread 0x7fffc8181700 (LWP 24832)]
[New Thread 0x7fffc9475700 (LWP 24831)]
[New Thread 0x7fff677fe700 (LWP 24830)]
[New Thread 0x7fff67fff700 (LWP 24826)]
[New Thread 0x7fff6cfc5700 (LWP 24825)]
[New Thread 0x7fff6e603700 (LWP 24824)]
[New Thread 0x7fff6f587700 (LWP 24823)]
[New Thread 0x7fff6ffff700 (LWP 24822)]
[New Thread 0x7fff74b8d700 (LWP 24821)]
[New Thread 0x7fff758d6700 (LWP 24820)]
[New Thread 0x7fff76352700 (LWP 24819)]
[New Thread 0x7fff77fff700 (LWP 24818)]
[New Thread 0x7fffe2918700 (LWP 24817)]
[New Thread 0x7fffcab8c700 (LWP 24816)]
[New Thread 0x7fffc8982700 (LWP 24815)]
[New Thread 0x7fffc9183700 (LWP 24814)]
[New Thread 0x7fffc94ef800 (LWP 24813)]
[New Thread 0x7fffc9571700 (LWP 24812)]
[New Thread 0x7fffcb46e700 (LWP 24811)]
[New Thread 0x7fffcb4ef700 (LWP 24810)]
[New Thread 0x7fffcb570700 (LWP 24809)]
[New Thread 0x7fffcb023700 (LWP 24798)]
[New Thread 0x7fffcb0a4700 (LWP 24797)]
[New Thread 0x7fffcb125700 (LWP 24796)]
[New Thread 0x7fffca38b700 (LWP 24795)]
[New Thread 0x7fffe0d3b700 (LWP 24782)]
[New Thread 0x7fffe153c700 (LWP 24781)]
[New Thread 0x7fffe3fff700 (LWP 24774)]
[New Thread 0x7ffff0bc9700 (LWP 24773)]

Program received signal SIGABRT, Aborted.
0x0000003f92435267 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:55
55 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) backtrace
#0 0x0000003f92435267 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:55
0000001 0x0000003f92436eca in __GI_abort () at abort.c:89
#2 0x0000000000f3cc47 in RouteTimeAxisView::add_processor_automation_curve (this=0x5cfa490, processor=..., what=...) at ../gtk2_ardour/route_time_axis.cc:2201
#3 0x0000000000f2aaa1 in RouteTimeAxisView::add_existing_processor_automation_curves (this=0x5cfa490, p=...) at ../gtk2_ardour/route_time_axis.cc:2260
0000004 0x0000000000f56616 in sigc::bound_mem_functor1<void, RouteTimeAxisView, boost::weak_ptr<ARDOUR::Processor> >::operator() (this=0x4cd55c0, _A_a1=...)
    at /usr/include/sigc++-2.0/sigc++/functors/mem_fun.h:1856
0000005 0x0000000000f56330 in boost::detail::function::void_function_obj_invoker1<sigc::bound_mem_functor1<void, RouteTimeAxisView, boost::weak_ptr<ARDOUR::Processor> >, void, boost::weak_ptr<ARDOUR::Processor> >::invoke (function_obj_ptr=..., a0=<error reading variable: Cannot access memory at address 0x60bd>) at /usr/include/boost/function/function_template.hpp:153
#6 0x0000000000c70e24 in boost::function1<void, boost::weak_ptr<ARDOUR::Processor> >::operator() (this=0x7fffffff8fb8, a0=...) at /usr/include/boost/function/function_template.hpp:766
#7 0x0000000000c5820d in ARDOUR::Route::foreach_processor(boost::function<void (boost::weak_ptr<ARDOUR::Processor>)>) (this=0x10b03b70, method=...) at /opt/other/ardour/4.0/libs/ardour/ardour/route.h:213
0000008 0x0000000000f2a58a in RouteTimeAxisView::setup_processor_menu_and_curves (this=0x5cfa490) at ../gtk2_ardour/route_time_axis.cc:362
0000009 0x0000000000f3f74e in RouteTimeAxisView::processors_changed (this=0x5cfa490, c=...) at ../gtk2_ardour/route_time_axis.cc:2436
0000010 0x0000000000740c6c in AudioTimeAxisView::set_route (this=0x5cfa490, rt=...) at ../gtk2_ardour/audio_time_axis.cc:125
0000011 0x00000000007e3fcc in Editor::add_routes (this=0xc27d030, routes=std::list = {...}) at ../gtk2_ardour/editor.cc:5277
0000012 0x00000000009a09af in EditorRoutes::initial_display (this=0xc23d480) at ../gtk2_ardour/editor_routes.cc:1413
0000013 0x00000000009a0510 in EditorRoutes::set_session (this=0xc23d480, s=0x2377270) at ../gtk2_ardour/editor_routes.cc:359
0000014 0x00000000007e2450 in Editor::set_session (this=0xc27d030, t=0x2377270) at ../gtk2_ardour/editor.cc:1314
#15 0x00000000006b800b in ARDOUR_UI::connect_dependents_to_session (this=0x1d91080, s=0x2377270) at ../gtk2_ardour/ardour_ui_dependents.cc:77
0000016 0x00000000006b9cd4 in ARDOUR_UI::set_session (this=0x1d91080, s=0x2377270) at ../gtk2_ardour/ardour_ui_dialogs.cc:167
Python Exception <class 'gdb.error'> There is no member named _M_dataplus.:
Python Exception <class 'gdb.error'> There is no member named _M_dataplus.:
#17 0x0000000000650d0c in ARDOUR_UI::load_session (this=0x1d91080, path=, snap_name=, mix_template=<incomplete type>) at ../gtk2_ardour/ardour_ui.cc:3264
0000018 0x000000000064c4bc in ARDOUR_UI::get_session_parameters (this=0x1d91080, quit_on_cancel=false, should_be_new=false, load_template=<incomplete type>) at ../gtk2_ardour/ardour_ui.cc:3110
0000019 0x000000000064a895 in ARDOUR_UI::starting (this=0x1d91080) at ../gtk2_ardour/ardour_ui.cc:989
0000020 0x00007ffff7778839 in Gtkmm2ext::UI::run (this=0x1d91080, old_receiver=...) at ../libs/gtkmm2ext/gtk_ui.cc:275
0000021 0x0000000000b76725 in main (argc=1, argv=0x7fffffffcff8) at ../gtk2_ardour/main.cc:390
(gdb)

mendred

2015-08-15 15:35

reporter   ~0017039

Just going through RouteTimeAxisView::add_processor_automation_curve at ../gtk2_ardour/route_time_axis.cc:2201, it looks like it is having some issue with automation curves with a specific track - appears to be dumping the details somewhere- where can i find this? Is this something i can resolve by editing the project file?

if ((pan = find_processor_automation_node (processor, what)) == 0) {
                /* session state may never have been saved with new plugin */
                error << _("programming error: ")
              << string_compose (X_("processor automation curve for %1:%2/%3/%4 not registered with track!"),
                                         processor->name(), what.type(), (int) what.channel(), what.id() )
              << endmsg;
        abort(); /*NOTREACHED*/
        return;
    }

x42

2015-08-15 17:17

administrator   ~0017040

It's logged in the terminal where you started ardour, until the GUI comes up. after that it's in Window > Error Log.
This one might be tricky, it looks it happens too late (GUI already exists) but then Ardour terminates (not allowing one to access the Log Window).


Can you create a new session, just add the plugin, save, re-load? If that also crashes, could you please zip the session and upload it?

Automation curves in this case could also be midi-CC events, which may make things more tricky to track down, particularly if the following is true:


Hydrogen compositor sampler - is that https://gitlab.com/composite/composite/tree/master/src/sampler ?

It is using deprecated (since 0000001:0000006 years) LV2 midi-event-buffers and has also not been unmaintained since. I'm surprised that it held up for so long.
In Jan 2014 it was announced that the Midi-Event-buffer will be removed for good. Might be that the LV2-stack (liblilv, etc) that now comes with Ardour-4.2 finally did this.
Please file a bug report at composite to update to at least LV2-1.0 specs.

mendred

2015-08-15 17:52

reporter   ~0017041

Last edited: 2015-08-15 17:54

Hi there

Yes that's the one.

As you suggested, just created a new project added composite and saved it and now able to load it again.

Also added midi events -- plays back just fine. Saved and restarted - no crashes

 So definitely not the plugin - my bad -that was a red herring - i note that the last entry in the log before ardour loads the gui is the Loading drumkit 'GSCW-1-v2'

Do you have any further suggestions on how I can debug this further?

x42

2015-08-15 18:13

administrator   ~0017042

according to the backtrace, it definitely is a plugin that causes the crash.

if you can reproduce the crash (above backtrace). in gdb

  frame 3
  print processor

should tell which plugin it is. This would be a lot easier to do by interactive debugging on IRC.

mendred

2015-08-15 18:54

reporter   ~0017043

Last edited: 2015-08-15 18:56

hi there

Am on the #ardour channel - nick mendred - buzz when you are online and we can continue this there?

This is the output in gdb

Program received signal SIGABRT, Aborted.
0x0000003f92435267 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:55
55 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) frame 3
#3 0x0000000000f2aaa1 in RouteTimeAxisView::add_existing_processor_automation_curves (this=0x5cd0800, p=...) at ../gtk2_ardour/route_time_axis.cc:2260
2260 add_processor_automation_curve (processor, param);
(gdb) print processor
$1 = {px = 0x10aef9d0, pn = {pi_ = 0x10e9da20}}
(gdb)

2015-08-15 19:25

 

mendred

2015-08-15 20:29

reporter   ~0017044

OK - removing calf-plugins-git from KXStudio and moving to calf-plugins helped! Both are at 0.0.60- but the former is probably more recent code from git. I am now able to open my session.

Thanks to x42/rgareus for his patience in debugging this!

mendred

2015-08-15 20:29

reporter   ~0017045

OK - removing calf-plugins-git from KXStudio and moving to calf-plugins helped! Both are at 0.0.60- but the former is probably more recent code from git. I am now able to open my session.

Issue History

Date Modified Username Field Change
2015-08-14 22:11 mendred New Issue
2015-08-15 10:29 mendred Sponsorship Added mendred: US$ 5
2015-08-15 10:29 mendred Sponsorship Total 0 => 5
2015-08-15 15:10 mendred Note Added: 0017037
2015-08-15 15:19 mendred Note Added: 0017038
2015-08-15 15:35 mendred Note Added: 0017039
2015-08-15 17:17 x42 Note Added: 0017040
2015-08-15 17:52 mendred Note Added: 0017041
2015-08-15 17:54 mendred Note Edited: 0017041
2015-08-15 18:13 x42 Note Added: 0017042
2015-08-15 18:54 mendred Note Added: 0017043
2015-08-15 18:56 mendred Note Edited: 0017043
2015-08-15 19:25 mendred File Added: Ghosts of the spoken word.ardour
2015-08-15 20:29 mendred Note Added: 0017044
2015-08-15 20:29 mendred Note Added: 0017045
2015-08-15 20:29 mendred Status new => resolved
2015-08-15 20:29 mendred Resolution open => fixed
2015-08-15 20:29 mendred Assigned To => mendred
2015-08-15 20:29 mendred Status resolved => closed