Inkscape crashes when editing a font out of an imported PDF
[Report bug like a PRO !](https://inkscape.org/contribute/report-bugs/)
<!--
See our full bug reporting guidelines.
Writing a good bug report will ensure we'll be able to help efficiently. 🙂
-->
#### Summary:
<!-- Summarize the issue/suggestion concisely: -->
Inkscape crashes when importing a PDF, then selecting a font (with the intent to rewrite it).
#### Steps to reproduce:
<!-- Describe what you did (step-by-step) so we can reproduce: -->
- open Inkscape
- Open a PDF file with the following settings: Fonts: Draw missing fonts, Crop to: Media Box, Approximation Accuracy: 1; the following files: Helvetica, TimesNewRomanPS-ItalicMT, TimesNewRomanPS-BoldItalicMT, TimesNewRomanPS-BoldMT, TimesNewRomanPSMT on a system that lacks those (I use KDE Neon, based on Ubuntu 24.04) and so has to convert those to Hack (first one) or Tinos (the Times New Romans)
- Click on one of the text files, if it doesn't crash at that point, then try getting to edit it.
- Inkscape should crash.
#### What happened?
Inkscape crashed.
#### What should have happened?
Definitely not crashing, maybe instead redraw the text? IDK why it crashed.
Sample attachments:
Whilst the issue appeared on a different file, I have found one that does not dox me, but can replicate the same error: [doc.pdf](/uploads/0dd7b2d13f9074de92c82c21bd780b11/doc.pdf)
#### Version info
```
Inkscape 1.4.2 (ebf0e940d0, 2025-05-08)
Compile (Run)
GLib version: 2.84.1
GTK version: 3.24.49 (3.24.50)
glibmm version: 2.66.1
gtkmm version: 3.24.5
libxml2 version: 2.13.6
libxslt version: 1.1.42
Cairo version: 1.18.4 (1.18.4)
Pango version: 1.56.3 (1.56.4)
HarfBuzz version: 9.0.0 (9.0.0)
OS version: GNOME 48 (Flatpak runtime)
```
<!--
Open 'Help > About' and click on the little bug icon in the bottom right corner that copies the debug information to your clipboard. (If it is absent, you are likely running an older version of Inkscape. Please update to the latest version and report if the issue persists.)
For command line users, run 'inkscape --debug-info'.
Paste the information in the empty space between the apostrophes below:
-->
And here's the backtrace: [Backtrace](/uploads/1392607c6c7fa6238753e7a26ee8d7dd/Backtrace)
<details><summary>Backtrace</summary>
<pre>
0# Inkscape::Application::crash_handler(int) in /app/bin/../lib/inkscape/libinkscape_base.so.1.4.2.0
1# 0x000077FB2EC425C0 in /usr/lib/x86_64-linux-gnu/libc.so.6
2# 0x000077FB2EC9B344 in /usr/lib/x86_64-linux-gnu/libc.so.6
3# gsignal in /usr/lib/x86_64-linux-gnu/libc.so.6
4# abort in /usr/lib/x86_64-linux-gnu/libc.so.6
5# 0x000077FB2EEE8B2D in /usr/lib/x86_64-linux-gnu/libstdc++.so.6
6# Inkscape::UI::Widget::ColorICCSelectorImpl::_updateSliders(int) in /app/bin/../lib/inkscape/libinkscape_base.so.1.4.2.0
7# Inkscape::UI::Widget::ColorICCSelector::_colorChanged() in /app/bin/../lib/inkscape/libinkscape_base.so.1.4.2.0
8# Inkscape::UI::SelectedColor::setColorAlpha(SPColor const&, float, bool) in /app/bin/../lib/inkscape/libinkscape_base.so.1.4.2.0
9# Inkscape::UI::Widget::PaintSelector::setColorAlpha(SPColor const&, float) in /app/bin/../lib/inkscape/libinkscape_base.so.1.4.2.0
10# Inkscape::UI::Widget::FillNStroke::performUpdate() in /app/bin/../lib/inkscape/libinkscape_base.so.1.4.2.0
11# Inkscape::UI::Dialog::FillAndStroke::selectionChanged(Inkscape::Selection*) in /app/bin/../lib/inkscape/libinkscape_base.so.1.4.2.0
12# Inkscape::Selection::_emitChanged(bool) in /app/bin/../lib/inkscape/libinkscape_base.so.1.4.2.0
13# Inkscape::UI::Tools::NodeTool::root_handler(Inkscape::CanvasEvent const&) in /app/bin/../lib/inkscape/libinkscape_base.so.1.4.2.0
14# Inkscape::CanvasItemDrawing::handle_event(Inkscape::CanvasEvent const&) in /app/bin/../lib/inkscape/libinkscape_base.so.1.4.2.0
15# Inkscape::UI::Widget::CanvasPrivate::emit_event(Inkscape::CanvasEvent&) in /app/bin/../lib/inkscape/libinkscape_base.so.1.4.2.0
16# Inkscape::UI::Widget::CanvasPrivate::process_event(Inkscape::CanvasEvent&) in /app/bin/../lib/inkscape/libinkscape_base.so.1.4.2.0
17# Inkscape::UI::Widget::Canvas::on_button_release_event(_GdkEventButton*) in /app/bin/../lib/inkscape/libinkscape_base.so.1.4.2.0
18# Gtk::Widget_Class::button_release_event_callback(_GtkWidget*, _GdkEventButton*) in /app/bin/../lib/inkscape/../libgtkmm-3.0.so.1
19# 0x000077FB2D02E109 in /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
20# 0x000077FB2E9F8B52 in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
21# 0x000077FB2EA0F2E3 in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
22# g_signal_emit_valist in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
23# g_signal_emit in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
24# 0x000077FB2D3092DC in /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
25# 0x000077FB2D1AA5A8 in /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
26# gtk_main_do_event in /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
27# 0x000077FB2CD31D91 in /usr/lib/x86_64-linux-gnu/libgdk-3.so.0
28# 0x000077FB2CD6A22E in /usr/lib/x86_64-linux-gnu/libgdk-3.so.0
29# 0x000077FB2F504BBA in /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
30# 0x000077FB2F506ED7 in /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
31# g_main_context_iteration in /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
32# g_application_run in /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
33# main in inkscape
34# 0x000077FB2EC2B3C8 in /usr/lib/x86_64-linux-gnu/libc.so.6
35# __libc_start_main in /usr/lib/x86_64-linux-gnu/libc.so.6
36# _start in inkscape
</pre>
</details>
<!--
❤️ 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