From 557058f362f294cc46ca4c854b2439a410097fe0 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 16 Dec 2025 23:22:43 +0100 Subject: [PATCH] Fix crash when an early callback changes selection during session load This can happen e.g. from a VST3 plugin's state restore. --- gtk2_ardour/editor_selection.cc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gtk2_ardour/editor_selection.cc b/gtk2_ardour/editor_selection.cc index fdfe07f83e..4fd35a6289 100644 --- a/gtk2_ardour/editor_selection.cc +++ b/gtk2_ardour/editor_selection.cc @@ -1083,6 +1083,15 @@ Editor::set_selected_regionview_from_map_event (GdkEventAny* /*ev*/, StreamView* void Editor::presentation_info_changed (PropertyChange const & what_changed) { + if (!_session || _session->deletion_in_progress()) { + /* static signal, that the editor c'tor subscribes to. + * It may be received during connect_dependents_to_session() when + * signals are processed in BootMessage -> GUIIdle, just + * just before Editor::set_session(); + */ + return; + } + uint32_t n_tracks = 0; uint32_t n_busses = 0; uint32_t n_vcas = 0;