Crash upon export to a different name than svg

Summary:

When trying to export to a pdf that has a different name than the SVG file I am exporting from Inkscape crashes

Steps to reproduce:

  • open Inkscape on Windows
  • open an SVG file that is created in inkscape
  • open the Export tool
  • export as, for example pdf, but change the filename

What happened?

A fatal crash "Inkscape has crashed and will now close" without exporting the file to a different format

What should have happened?

The file should have been exported and Inkscape should not have crashed

Version info

<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# 0x00007FF6856521B2 in inkscape
 3# _C_specific_handler in ntdll
 4# _chkstk in ntdll
 5# _RtlRaiseException in ntdll
 6# _KiUserExceptionDispatcher in ntdll
 7# SPObject::getId() const in libinkscape_base
 8# Inkscape::UI::Dialog::Export::exportVector(Inkscape::Extension::Output*, SPDocument*, Glib::ustring const&, bool, std::vector<SPItem*, std::allocator<SPItem*> > const&, std::vector<SPPage*, std::allocator<SPPage*> > const&) in libinkscape_base
 9# Inkscape::UI::Dialog::SingleExport::onExport() in libinkscape_base
10# Inkscape::UI::Dialog::SingleExport::onBrowse(Gtk::EntryIconPosition, _GdkEventButton const*) in libinkscape_base
11# Gtk::Entry_Class::activate_callback(_GtkEntry*) in libgtkmm_3_0_1
12# _g_closure_invoke in libgobject_2_0_0
13# _g_param_spec_variant in libgobject_2_0_0
14# _g_param_spec_variant in libgobject_2_0_0
15# _g_signal_emit in libgobject_2_0_0
16# _gtk_editable_get_editable in libgtk_3_0
17# Gtk::Widget::on_event(_GdkEvent*) in libgtkmm_3_0_1
18# Gtk::Widget_Class::event_callback(_GtkWidget*, _GdkEvent*) in libgtkmm_3_0_1
19# 0x00007FF838422FA4 in libgtk_3_0
20# _g_closure_invoke in libgobject_2_0_0
21# _g_param_spec_variant in libgobject_2_0_0
22# _g_signal_emit in libgobject_2_0_0
23# _gtk_requisition_copy in libgtk_3_0
24# _gtk_lock_button_set_permission in libgtk_3_0
25# _gtk_main_do_event in libgtk_3_0
26# _gdk_event_free in libgdk_3_0
27# _gdk_win32_drag_context_get_type in libgdk_3_0
28# _g_clear_list in libglib_2_0_0
29# _g_get_monotonic_time in libglib_2_0_0
30# _g_main_context_iteration in libglib_2_0_0
31# _g_application_run in libgio_2_0_0
32# 0x00007FF6856539AB in inkscape
33# 0x00007FF6856512EE in inkscape
34# 0x00007FF6856513E6 in inkscape
35# _BaseThreadInitThunk in KERNEL32
36# _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