View Issue Details

IDProjectCategoryView StatusLast Update
0008911ardourbugspublic2022-05-10 17:06
Reporterrobertaramar Assigned To 
PrioritynormalSeveritycrashReproducibilityalways
Status newResolutionopen 
PlatformLinuxOSFedoraOS Version35
Product Version6.9 
Summary0008911: Session doesn't load (ERROR: Unexpected exception during session setup: tr1::bad_weak_ptr)
DescriptionWhen loading the session Narcotic.ardour, Ardour presents a "Loading Error" see "Ardour-Loading-Error.png" for details.
On the console, it says:

Log Messages:
INFO: AlsaAudioBackend: adjusted output channel count to match device.
INFO: AlsaAudioBackend: adjusted input channel count to match device.
WARNING: AlsaMidiIO: Cannot acquire realtime permissions.
WARNING: AlsaMidiIO: Cannot acquire realtime permissions.
WARNING: AlsaMidiIO: Cannot acquire realtime permissions.
WARNING: AlsaMidiIO: Cannot acquire realtime permissions.
WARNING: AlsaMidiIO: Cannot acquire realtime permissions.
WARNING: AlsaMidiIO: Cannot acquire realtime permissions.
ERROR: AlsaSeqMidiIO: Device initialization failed.
WARNING: AlsaMidiOut: failed to open midi device '144:0'.
ERROR: AlsaSeqMidiIO: Device initialization failed.
WARNING: AlsaMidiIn: failed to open midi device '144:0'.
ERROR: AlsaSeqMidiIO: Device initialization failed.
WARNING: AlsaMidiOut: failed to open midi device '145:0'.
ERROR: AlsaSeqMidiIO: Device initialization failed.
WARNING: AlsaMidiIn: failed to open midi device '145:0'.
WARNING: AlsaMidiIO: Cannot acquire realtime permissions.
WARNING: AlsaMidiIO: Cannot acquire realtime permissions.
WARNING: AlsaAudioBackend: cannot acquire realtime permissions.
INFO: harvid version: 803
INFO: Loading menus from /opt/Ardour-6.9.0/etc/ardour.menus
ERROR: Unexpected exception during session setup: tr1::bad_weak_ptr
Steps To ReproduceLaunch Ardour, open this session.

After clicking away the Loading-Error, if you try to load any other session that would normally load,
you get an exception:

Thread 1 "ArdourGUI" received signal SIGSEGV, Segmentation fault.
0x00007ffff3da0781 in gtk_radio_action_set_group () from /opt/Ardour-6.9.0/lib/libgtk-x11-2.0.so.0
Additional Information(gdb) bt
#0 0x00007ffff3da0781 in gtk_radio_action_set_group () from /opt/Ardour-6.9.0/lib/libgtk-x11-2.0.so.0
0000001 0x00007ffff1ef37a7 in Gtk::RadioAction::set_group(Gtk::RadioButtonGroup&) () from /opt/Ardour-6.9.0/lib/libgtkmm-2.4.so.1
#2 0x00007ffff1ef3a67 in Gtk::RadioAction::RadioAction(Gtk::RadioButtonGroup&, Glib::ustring const&, Gtk::StockID const&, Glib::ustring const&, Glib::ustring const&)
    () from /opt/Ardour-6.9.0/lib/libgtkmm-2.4.so.1
#3 0x00007ffff1ef3b42 in Gtk::RadioAction::create(Gtk::RadioButtonGroup&, Glib::ustring const&, Glib::ustring const&, Glib::ustring const&) ()
   from /opt/Ardour-6.9.0/lib/libgtkmm-2.4.so.1
0000004 0x00007ffff5b89b0d in ActionManager::register_radio_action(Glib::RefPtr<Gtk::ActionGroup>, Gtk::RadioButtonGroup&, char const*, char const*, sigc::slot<void, sigc::nil, sigc::nil, sigc::nil, sigc::nil, sigc::nil, sigc::nil, sigc::nil>) () from /opt/Ardour-6.9.0/lib/libgtkmm2ext.so.0
0000005 0x00005555559a6b7e in ?? ()
#6 0x00005555559bc407 in ?? ()
#7 0x000055555597ed33 in ?? ()
0000008 0x000055555588ff40 in ?? ()
0000009 0x000055555587fed4 in ?? ()
0000010 0x0000555555848f51 in ?? ()
0000011 0x000055555584ad1c in ?? ()
0000012 0x000055555605de94 in ?? ()
0000013 0x000055555606116e in ?? ()
0000014 0x00007ffff1ebe5f5 in ?? () from /opt/Ardour-6.9.0/lib/libgtkmm-2.4.so.1
#15 0x00007ffff4a6c945 in g_closure_invoke () from /opt/Ardour-6.9.0/lib/libgobject-2.0.so.0
0000016 0x00007ffff4a7e01b in ?? () from /opt/Ardour-6.9.0/lib/libgobject-2.0.so.0
#17 0x00007ffff4a87c30 in g_signal_emit_valist () from /opt/Ardour-6.9.0/lib/libgobject-2.0.so.0
0000018 0x00007ffff4a88082 in g_signal_emit () from /opt/Ardour-6.9.0/lib/libgobject-2.0.so.0
0000019 0x00007ffff3cac80c in gtk_dialog_response () from /opt/Ardour-6.9.0/lib/libgtk-x11-2.0.so.0
0000020 0x00007ffff1f37b35 in ?? () from /opt/Ardour-6.9.0/lib/libgtkmm-2.4.so.1
0000021 0x00007ffff4a6c945 in g_closure_invoke () from /opt/Ardour-6.9.0/lib/libgobject-2.0.so.0
0000022 0x00007ffff4a7e01b in ?? () from /opt/Ardour-6.9.0/lib/libgobject-2.0.so.0
0000023 0x00007ffff4a87c30 in g_signal_emit_valist () from /opt/Ardour-6.9.0/lib/libgobject-2.0.so.0
#24 0x00007ffff4a88082 in g_signal_emit () from /opt/Ardour-6.9.0/lib/libgobject-2.0.so.0
0000025 0x00007ffff3eb43c0 in ?? () from /opt/Ardour-6.9.0/lib/libgtk-x11-2.0.so.0
0000026 0x00007ffff3d50cac in ?? () from /opt/Ardour-6.9.0/lib/libgtk-x11-2.0.so.0
0000027 0x00007ffff4a6c945 in g_closure_invoke () from /opt/Ardour-6.9.0/lib/libgobject-2.0.so.0
0000028 0x00007ffff4a7e5a0 in ?? () from /opt/Ardour-6.9.0/lib/libgobject-2.0.so.0
0000029 0x00007ffff4a8769b in g_signal_emit_valist () from /opt/Ardour-6.9.0/lib/libgobject-2.0.so.0
0000030 0x00007ffff4a88082 in g_signal_emit () from /opt/Ardour-6.9.0/lib/libgobject-2.0.so.0
0000031 0x00007ffff3ed564c in ?? () from /opt/Ardour-6.9.0/lib/libgtk-x11-2.0.so.0
0000032 0x00007ffff3d4f29d in gtk_propagate_event () from /opt/Ardour-6.9.0/lib/libgtk-x11-2.0.so.0
0000033 0x00007ffff3d4f723 in gtk_main_do_event () from /opt/Ardour-6.9.0/lib/libgtk-x11-2.0.so.0
0000034 0x00007ffff396bb4c in ?? () from /opt/Ardour-6.9.0/lib/libgdk-x11-2.0.so.0
0000035 0x00007ffff475db67 in g_main_context_dispatch () from /opt/Ardour-6.9.0/lib/libglib-2.0.so.0
0000036 0x00007ffff475ddd0 in ?? () from /opt/Ardour-6.9.0/lib/libglib-2.0.so.0
0000037 0x00007ffff475e0f2 in g_main_loop_run () from /opt/Ardour-6.9.0/lib/libglib-2.0.so.0
0000038 0x00007ffff3d4e3e7 in gtk_main () from /opt/Ardour-6.9.0/lib/libgtk-x11-2.0.so.0
0000039 0x00007ffff5baaa55 in Gtkmm2ext::UI::run(Receiver&) () from /opt/Ardour-6.9.0/lib/libgtkmm2ext.so.0
0000040 0x000055555580c814 in ?? ()
0000041 0x00007fffee3d9f20 in __libc_start_call_main (main=main@entry=0x55555580c420, argc=argc@entry=1, argv=argv@entry=0x7fffffffd058)
    at ../sysdeps/nptl/libc_start_call_main.h:58
--Type <RET> for more, q to quit, c to continue without paging--
0000042 0x00007fffee3d9fd0 in __libc_start_main_impl (main=0x55555580c420, argc=1, argv=0x7fffffffd058, init=<optimized out>, fini=<optimized out>,
    rtld_fini=<optimized out>, stack_end=0x7fffffffd048) at ../csu/libc-start.c:392
0000043 0x000055555581360a in ?? ()

TagsNo tags attached.

Activities

robertaramar

2022-05-08 13:27

reporter  

Ardour-Loading-Error.png (90,641 bytes)   
Ardour-Loading-Error.png (90,641 bytes)   
Narcotic.ardour (399,027 bytes)

x42

2022-05-10 16:06

administrator   ~0026439

The problem relates to MIDI learn, The bound control is not available at session load. deleting line 4738 in the session file makes the session load again
<MIDIControllable id="19405" event="0xb0" channel="0" additional="0x14"/>
Narcotic-2.ardour (398,910 bytes)

robertaramar

2022-05-10 17:06

reporter   ~0026440

Thanks, good to know. But is this still considered being a bug?
And we're you able to reproduce the exception when, after closing the error dialog, loading a recently used session?

Issue History

Date Modified Username Field Change
2022-05-08 13:27 robertaramar New Issue
2022-05-08 13:27 robertaramar File Added: Ardour-Loading-Error.png
2022-05-08 13:27 robertaramar File Added: Narcotic.ardour
2022-05-10 16:06 x42 Note Added: 0026439
2022-05-10 16:06 x42 File Added: Narcotic-2.ardour
2022-05-10 17:06 robertaramar Note Added: 0026440