Crash using search in preferences dialog
<!-- See our full bug reporting guidelines at https://inkscape.org/contribute/report-bugs/ Writing a good bug report will ensure we'll be able to help efficiently. 🙂 --> #### Summary: <!-- Summarize the issue/suggestion concisely: --> Some terms cause Inkscape to (reproducibly) crash, when typed into the search bar of the preferences dialog. This doesn't seem to happen with other search bars (LPE dialog, language etc.) afaict. Regression from 1.4.x #### Steps to reproduce: <!-- Describe what you did (step-by-step) so we can reproduce: --> - open Inkscape - open preferences dialog - search for 'transform' #### What happened? Crash upon typing 'a' <details><summary>Backtrace</summary> ``` #0 0x00007ffff34c2278 in Gtk::Label::get_use_markup() const () at /lib64/libgtkmm-4.0.so.0 #1 0x00007ffff7789eff in Inkscape::UI::Dialog::InkscapePreferences::remove_highlight (this=this@entry=0x4dbd6d0, label=0x625ee30) at /home/krir17/Programs/inkscape_code/inkscape/src/ui/dialog/inkscape-preferences.cpp:248 #2 0x00007ffff77b3a05 in Inkscape::UI::Dialog::InkscapePreferences::on_search_changed (this=0x4dbd6d0) at /home/krir17/Programs/inkscape_code/inkscape/src/ui/dialog/inkscape-preferences.cpp:477 #3 0x00007ffff77cef0c in std::__invoke_impl<void, void (Inkscape::UI::Dialog::InkscapePreferences::* const&)(), Inkscape::UI::Dialog::InkscapePreferences&> (__f=<optimized out>, __t=<optimized out>) at /usr/include/c++/14/bits/invoke.h:67 #4 0x00007ffff77cef2a in std::__invoke<void (Inkscape::UI::Dialog::InkscapePreferences::* const&)(), Inkscape::UI::Dialog::InkscapePreferences&> (__fn=<optimized out>) at /usr/include/c++/14/bits/invoke.h:90 #5 std::invoke<void (Inkscape::UI::Dialog::InkscapePreferences::* const&)(), Inkscape::UI::Dialog::InkscapePreferences&> (__fn=<optimized out>) at /usr/include/c++/14/functional:120 #6 sigc::bound_mem_functor<void (Inkscape::UI::Dialog::InkscapePreferences::*)()>::operator() (this=<optimized out>) at /usr/include/sigc++-3.0/sigc++/functors/mem_fun.h:151 #7 std::__invoke_impl<void, sigc::bound_mem_functor<void (Inkscape::UI::Dialog::InkscapePreferences::*)()>&> (__f=<optimized out>) at /usr/include/c++/14/bits/invoke.h:61 #8 std::__invoke<sigc::bound_mem_functor<void (Inkscape::UI::Dialog::InkscapePreferences::*)()>&> (__fn=<optimized out>) at /usr/include/c++/14/bits/invoke.h:96 #9 std::invoke<sigc::bound_mem_functor<void (Inkscape::UI::Dialog::InkscapePreferences::*)()>&> (__fn=<optimized out>) at /usr/include/c++/14/functional:120 #10 sigc::adaptor_functor<sigc::bound_mem_functor<void (Inkscape::UI::Dialog::InkscapePreferences::*)()> >::operator()<>() const (this=<optimized out>) at /usr/include/sigc++-3.0/sigc++/adaptors/adaptor_trait.h:100 #11 sigc::internal::slot_call<sigc::bound_mem_functor<void (Inkscape::UI::Dialog::InkscapePreferences::*)()>, void>::call_it (rep=<optimized out>) at /usr/include/sigc++-3.0/sigc++/functors/slot.h:154 #12 0x00007ffff45cf4f4 in Glib::SignalProxyNormal::slot0_void_callback(_GObject*, void*) () at /lib64/libglibmm-2.68.so.1 #13 0x00007ffff5b1d55c in signal_emit_valist_unlocked () at /lib64/libgobject-2.0.so.0 #14 0x00007ffff5b1d671 in g_signal_emit_valist () at /lib64/libgobject-2.0.so.0 #15 0x00007ffff5b1d733 in g_signal_emit () at /lib64/libgobject-2.0.so.0 #16 0x00007ffff3b59a1f in gtk_search_entry_changed_timeout_cb () at /lib64/libgtk-4.so.1 #17 0x00007ffff51dd519 in g_timeout_dispatch () at /lib64/libglib-2.0.so.0 #18 0x00007ffff51d728c in g_main_context_dispatch_unlocked.lto_priv () at /lib64/libglib-2.0.so.0 #19 0x00007ffff52377b8 in g_main_context_iterate_unlocked.isra () at /lib64/libglib-2.0.so.0 #20 0x00007ffff51d8783 in g_main_context_iteration () at /lib64/libglib-2.0.so.0 #21 0x00007ffff46e0dcd in g_application_run () at /lib64/libgio-2.0.so.0 #22 0x0000000000205348 in main (argc=<optimized out>, argv=<optimized out>) at /usr/include/c++/14/bits/shared_ptr_base.h:1666 ``` </details> #### What should have happened? No crash #### Version info ``` Inkscape 1.5-dev (ff32f86e7b, 2024-12-27, custom) Compile (Run) GLib version: 2.82.2 GTK version: 4.16.3 (4.16.3) glibmm version: 2.82.0 gtkmm version: 4.16.0 libxml2 version: 2.12.8 libxslt version: 1.1.42 Cairo version: 1.18.0 (1.18.0) Pango version: 1.54.0 (1.54.0) HarfBuzz version: 9.0.0 (9.0.0) Poppler version: 24.08.0 OS version: Fedora Linux 41 (Workstation Edition) ``` <!-- ❤️ Thank you for filling in a new bug report, we appreciate the help! ❤️ Please be patient while we try to find the time to look into your issue. Remember that Inkscape is developed by volunteers in their spare time, we'll try our best to respond to all reports. --> <!-- Please be careful when/after writing # for example in logs, code, or versions of linux - use inline code span - single backticks (`) before and after it, like this - `#1618` - use multi-line code block - triple backticks (```) to fence/enclose console logs - attach long logs as a text file. -->
issue