US business card template crashes in Windows if Python not installed during install
Summary:
Selecting the US business card template crashes in Windows if Python not installed during install.
Steps to reproduce:
I open Inkscape, selecting the US business card template (3.5x2in) under "Print," and it immediately crashes. If I open an existing file, it is ok, but crashes again when I try to open a new file from template and select business card then US/Canada 3.5x2in. If I immediately try to open a new file from that template, then I get the debug info below. If I open an existing file first, then try to open from template, Inkscape silently closes without showing debug trace.
I had de-selected the Python component during install because I had an existing Python installation, which is in my PATH.
Rerunning the installer to change install options and adding Python to installation this time seems to have worked.
What happened?
I open Inkscape, selecting the US business card template, and it immediately crashes.
<pre>
0# boost::stacktrace::basic_stacktrace<std::allocator<boost::stacktrace::frame> >::init(unsigned long long, unsigned long long) in libinkscape_base
1# Inkscape::Application::crash_handler(int) in libinkscape_base
2# 0x00007FF6B0C721B2 in inkscape
3# _C_specific_handler in ntdll
4# _chkstk in ntdll
5# _RtlFindCharInUnicodeString in ntdll
6# _KiUserExceptionDispatcher in ntdll
7# Inkscape::DocumentUndo::clearUndo(SPDocument*) in libinkscape_base
8# Inkscape::Extension::TemplatePreset::new_from_template(std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > const&) in libinkscape_base
9# Inkscape::UI::Widget::TemplateList::new_document() in libinkscape_base
10# Inkscape::UI::Dialog::StartScreen::new_document() in libinkscape_base
11# Inkscape::UI::Widget::TemplateList::reset_selection() in libinkscape_base
12# Glib::SignalProxyNormal::slot0_void_callback(_GObject*, void*) in libglibmm_2_4_1
13# _g_closure_invoke in libgobject_2_0_0
14# _g_param_spec_variant in libgobject_2_0_0
15# _g_param_spec_variant in libgobject_2_0_0
16# _g_signal_emit in libgobject_2_0_0
17# _gtk_icon_view_item_activated in libgtk_3_0
18# Gtk::Widget::on_button_press_event(_GdkEventButton*) in libgtkmm_3_0_1
19# Gtk::Widget_Class::button_press_event_callback(_GtkWidget*, _GdkEventButton*) in libgtkmm_3_0_1
20# 0x00007FFEF93A2FA4 in libgtk_3_0
21# _g_closure_invoke in libgobject_2_0_0
22# _g_param_spec_variant in libgobject_2_0_0
23# _g_signal_emit in libgobject_2_0_0
24# _gtk_requisition_copy in libgtk_3_0
25# _gtk_lock_button_set_permission in libgtk_3_0
26# _gtk_main_do_event in libgtk_3_0
27# _gdk_event_free in libgdk_3_0
28# _gdk_win32_drag_context_get_type in libgdk_3_0
29# _g_clear_list in libglib_2_0_0
30# _g_get_monotonic_time in libglib_2_0_0
31# _g_main_loop_run in libglib_2_0_0
32# _gtk_dialog_run in libgtk_3_0
33# InkscapeApplication::on_activate() in libinkscape_base
34# Glib::SignalProxyNormal::slot0_void_callback(_GObject*, void*) in libglibmm_2_4_1
35# _g_closure_invoke in libgobject_2_0_0
36# _g_param_spec_variant in libgobject_2_0_0
37# _g_param_spec_variant in libgobject_2_0_0
38# _g_signal_emit in libgobject_2_0_0
39# _g_application_open in libgio_2_0_0
40# _g_application_run in libgio_2_0_0
41# 0x00007FF6B0C739AB in inkscape
42# 0x00007FF6B0C712EE in inkscape
43# 0x00007FF6B0C713E6 in inkscape
44# _BaseThreadInitThunk in KERNEL32
45# _RtlUserThreadStart in ntdll
</pre>
<details><summary>System info</summary>
Inkscape 1.3.2 (091e20e, 2023-11-25, custom)
GLib version: 2.78.1
GTK version: 3.24.39
glibmm version: 2.66.6
gtkmm version: 3.24.8
libxml2 version: 2.11.5
libxslt version: 1.1.38
Cairo version: 1.18.0
Pango version: 1.50.14
HarfBuzz version: 8.2.2
OS version: Windows 11 23H2
</details>
What should have happened?
I should be able to open any template without crashing. If Python not installed during installation, Inkscape should fail more gracefully than that.
Sample attachments:
NA
Version info
Inkscape 1.3.2 (091e20e, 2023-11-25, custom)