Crash when trying to remove text from path

Summary:

After placing text on a path and then changing the text to a path, Inkscape will crash when I attempt to delete or remove the text from the path.

Steps to reproduce:

  • open Inkscape
  • create circle
  • create text
  • highlight both circle and text
  • click flow text to path from menu
  • adjust flowed text as needed
  • change text to path using object to path from menu
  • both of the following give the same crash:
  • delete the text and path = crash
  • select text and click unflow text from path = crash

What happened?

...both of the following give the same crash:

  • delete the text and path = crash
  • select text and click unflow text from path = crash

What should have happened?

...text should have been unflowed and been able to be deleted

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# 0x00007FF61FF623F2 in inkscape
 3# _C_specific_handler in ntdll
 4# _chkstk in ntdll
 5# _RtlRaiseException in ntdll
 6# _KiUserExceptionDispatcher in ntdll
 7# sp_textpath_to_text(SPObject*) in libinkscape_base
 8# text_remove_from_path() in libinkscape_base
 9# Gio::SimpleAction::~SimpleAction() in libgiomm_2_4_1
10# _g_closure_invoke in libgobject_2_0_0
11# _g_param_spec_variant in libgobject_2_0_0
12# _g_param_spec_variant in libgobject_2_0_0
13# _g_signal_emit in libgobject_2_0_0
14# _g_simple_action_set_state in libgio_2_0_0
15# _gtk_menu_shell_bind_model in libgtk_3_0
16# _g_closure_invoke in libgobject_2_0_0
17# _g_param_spec_variant in libgobject_2_0_0
18# _g_param_spec_variant in libgobject_2_0_0
19# _g_signal_emit in libgobject_2_0_0
20# _gtk_widget_activate in libgtk_3_0
21# _gtk_menu_shell_activate_item in libgtk_3_0
22# _gtk_menu_shell_activate_item in libgtk_3_0
23# 0x00007FFFB1BB3484 in libgtk_3_0
24# _g_closure_invoke in libgobject_2_0_0
25# _g_param_spec_variant in libgobject_2_0_0
26# _g_signal_emit in libgobject_2_0_0
27# _gtk_requisition_copy in libgtk_3_0
28# _gtk_lock_button_set_permission in libgtk_3_0
29# _gtk_main_do_event in libgtk_3_0
30# _gdk_event_free in libgdk_3_0
31# _gdk_win32_drag_context_get_type in libgdk_3_0
32# _g_clear_list in libglib_2_0_0
33# _g_get_monotonic_time in libglib_2_0_0
34# _g_main_context_iteration in libglib_2_0_0
35# _g_application_run in libgio_2_0_0
36# 0x00007FF61FF64122 in inkscape
37# 0x00007FF61FF612E9 in inkscape
38# 0x00007FF61FF613D6 in inkscape
39# _BaseThreadInitThunk in KERNEL32
40# _RtlUserThreadStart in ntdll
</pre>
<details><summary>System info</summary>
Inkscape 1.4 (86a8ad7, 2024-10-11)

                      Compile  (Run)
    GLib version:     2.82.1
    GTK version:      3.24.43 (3.24.43)
    glibmm version:   2.66.7
    gtkmm version:    3.24.9
    libxml2 version:  2.12.9
    libxslt version:  1.1.42
    Cairo version:    1.18.2 (1.18.2)
    Pango version:    1.54.0 (1.54.0)
    HarfBuzz version: 10.0.1 (10.0.1)

    OS version:       Windows 10 22H2
</details>