NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.19k stars 14.2k forks source link

Inkscape segfaults when importing any file #342909

Open alex8065 opened 2 months ago

alex8065 commented 2 months ago

Describe the bug

Inkscape segfaults whenever I try to import another image. Does not appear to be a duplicate of #54278 since unsetting unset GIO_EXTRA_MODULES GDK_PIXBUF_MODULE_FILE GI_TYPELIB_PATH does not help.

Steps To Reproduce

Steps to reproduce the behavior:

  1. Run Inkscape
  2. Create a new document
  3. Import anything from the dialog

Expected behavior

No segfault.

Additional context

Add any other context about the problem here.

<pre>
 0# Inkscape::Application::crash_handler(int) in /nix/store/k7zizrhyv0y87l6s8fv2zl08ah00dycp-inkscape-1.3.2/bin/../lib/inkscape/libinkscape_base.so.1.3.2.0
 1# 0x00007F00C410A5C0 in /nix/store/3dyw8dzj9ab4m8hv5dpyx7zii8d0w6fi-glibc-2.39-52/lib/libc.so.6
 2# gtk_widget_get_visible in /nix/store/nzll3s1gzpmqiij4vyanpnpybryx8i0f-gtk+3-3.24.43/lib/libgtk-3.so.0
 3# 0x00007F00C4E4324C in /nix/store/nzll3s1gzpmqiij4vyanpnpybryx8i0f-gtk+3-3.24.43/lib/libgtk-3.so.0
 4# 0x00007F00C4E3D1E7 in /nix/store/nzll3s1gzpmqiij4vyanpnpybryx8i0f-gtk+3-3.24.43/lib/libgtk-3.so.0
 5# g_closure_invoke in /nix/store/pjxrn2wn0sn533p48jz5qxgjld84hn3i-glib-2.80.4/lib/libgobject-2.0.so.0
 6# 0x00007F00C6801FCC in /nix/store/pjxrn2wn0sn533p48jz5qxgjld84hn3i-glib-2.80.4/lib/libgobject-2.0.so.0
 7# 0x00007F00C6803981 in /nix/store/pjxrn2wn0sn533p48jz5qxgjld84hn3i-glib-2.80.4/lib/libgobject-2.0.so.0
 8# g_signal_emit_by_name in /nix/store/pjxrn2wn0sn533p48jz5qxgjld84hn3i-glib-2.80.4/lib/libgobject-2.0.so.0
 9# g_cclosure_marshal_VOID__OBJECTv in /nix/store/pjxrn2wn0sn533p48jz5qxgjld84hn3i-glib-2.80.4/lib/libgobject-2.0.so.0
10# 0x00007F00C67ECF41 in /nix/store/pjxrn2wn0sn533p48jz5qxgjld84hn3i-glib-2.80.4/lib/libgobject-2.0.so.0
11# 0x00007F00C6803ABC in /nix/store/pjxrn2wn0sn533p48jz5qxgjld84hn3i-glib-2.80.4/lib/libgobject-2.0.so.0
12# g_signal_emit_valist in /nix/store/pjxrn2wn0sn533p48jz5qxgjld84hn3i-glib-2.80.4/lib/libgobject-2.0.so.0
13# g_signal_emit in /nix/store/pjxrn2wn0sn533p48jz5qxgjld84hn3i-glib-2.80.4/lib/libgobject-2.0.so.0
14# 0x00007F00C50124C4 in /nix/store/nzll3s1gzpmqiij4vyanpnpybryx8i0f-gtk+3-3.24.43/lib/libgtk-3.so.0
15# 0x00007F00C4D80AE0 in /nix/store/nzll3s1gzpmqiij4vyanpnpybryx8i0f-gtk+3-3.24.43/lib/libgtk-3.so.0
16# 0x00007F00C50124F7 in /nix/store/nzll3s1gzpmqiij4vyanpnpybryx8i0f-gtk+3-3.24.43/lib/libgtk-3.so.0
17# 0x00007F00C5015A24 in /nix/store/nzll3s1gzpmqiij4vyanpnpybryx8i0f-gtk+3-3.24.43/lib/libgtk-3.so.0
18# gtk_widget_unparent in /nix/store/nzll3s1gzpmqiij4vyanpnpybryx8i0f-gtk+3-3.24.43/lib/libgtk-3.so.0
19# 0x00007F00C4D7BC09 in /nix/store/nzll3s1gzpmqiij4vyanpnpybryx8i0f-gtk+3-3.24.43/lib/libgtk-3.so.0
20# Gtk::Container_Class::remove_callback_normal(_GtkContainer*, _GtkWidget*) in /nix/store/8g4jrwbh2xgcjwq7r51xwsm1r2k89zr9-gtkmm-3.24.9/lib/libgtkmm-3.0.so.1
21# g_cclosure_marshal_VOID__OBJECTv in /nix/store/pjxrn2wn0sn533p48jz5qxgjld84hn3i-glib-2.80.4/lib/libgobject-2.0.so.0
22# 0x00007F00C67ECF41 in /nix/store/pjxrn2wn0sn533p48jz5qxgjld84hn3i-glib-2.80.4/lib/libgobject-2.0.so.0
23# 0x00007F00C6803ABC in /nix/store/pjxrn2wn0sn533p48jz5qxgjld84hn3i-glib-2.80.4/lib/libgobject-2.0.so.0
24# g_signal_emit_valist in /nix/store/pjxrn2wn0sn533p48jz5qxgjld84hn3i-glib-2.80.4/lib/libgobject-2.0.so.0
25# g_signal_emit in /nix/store/pjxrn2wn0sn533p48jz5qxgjld84hn3i-glib-2.80.4/lib/libgobject-2.0.so.0
26# gtk_container_remove in /nix/store/nzll3s1gzpmqiij4vyanpnpybryx8i0f-gtk+3-3.24.43/lib/libgtk-3.so.0
27# 0x00007F00C501ABB4 in /nix/store/nzll3s1gzpmqiij4vyanpnpybryx8i0f-gtk+3-3.24.43/lib/libgtk-3.so.0
28# g_object_run_dispose in /nix/store/pjxrn2wn0sn533p48jz5qxgjld84hn3i-glib-2.80.4/lib/libgobject-2.0.so.0
29# 0x00007F00C5027E99 in /nix/store/nzll3s1gzpmqiij4vyanpnpybryx8i0f-gtk+3-3.24.43/lib/libgtk-3.so.0
30# Gtk::Container_Class::forall_vfunc_callback(_GtkContainer*, int, void (*)(_GtkWidget*, void*), void*) in /nix/store/8g4jrwbh2xgcjwq7r51xwsm1r2k89zr9-gtkmm-3.24.9/lib/libgtkmm-3.0.so.1
31# 0x00007F00C4DD20D8 in /nix/store/nzll3s1gzpmqiij4vyanpnpybryx8i0f-gtk+3-3.24.43/lib/libgtk-3.so.0
32# g_closure_invoke in /nix/store/pjxrn2wn0sn533p48jz5qxgjld84hn3i-glib-2.80.4/lib/libgobject-2.0.so.0
33# 0x00007F00C68025D5 in /nix/store/pjxrn2wn0sn533p48jz5qxgjld84hn3i-glib-2.80.4/lib/libgobject-2.0.so.0
34# 0x00007F00C6803981 in /nix/store/pjxrn2wn0sn533p48jz5qxgjld84hn3i-glib-2.80.4/lib/libgobject-2.0.so.0
35# g_signal_emit_valist in /nix/store/pjxrn2wn0sn533p48jz5qxgjld84hn3i-glib-2.80.4/lib/libgobject-2.0.so.0
36# g_signal_emit in /nix/store/pjxrn2wn0sn533p48jz5qxgjld84hn3i-glib-2.80.4/lib/libgobject-2.0.so.0
37# 0x00007F00C501AC90 in /nix/store/nzll3s1gzpmqiij4vyanpnpybryx8i0f-gtk+3-3.24.43/lib/libgtk-3.so.0
38# 0x00007F00C502F1C8 in /nix/store/nzll3s1gzpmqiij4vyanpnpybryx8i0f-gtk+3-3.24.43/lib/libgtk-3.so.0
39# g_object_run_dispose in /nix/store/pjxrn2wn0sn533p48jz5qxgjld84hn3i-glib-2.80.4/lib/libgobject-2.0.so.0
40# Gtk::Window::_release_c_instance() in /nix/store/8g4jrwbh2xgcjwq7r51xwsm1r2k89zr9-gtkmm-3.24.9/lib/libgtkmm-3.0.so.1
41# Gtk::FileChooserDialog::~FileChooserDialog() in /nix/store/8g4jrwbh2xgcjwq7r51xwsm1r2k89zr9-gtkmm-3.24.9/lib/libgtkmm-3.0.so.1
42# Inkscape::UI::Dialog::FileOpenDialogImplGtk::~FileOpenDialogImplGtk() in /nix/store/k7zizrhyv0y87l6s8fv2zl08ah00dycp-inkscape-1.3.2/bin/../lib/inkscape/libinkscape_base.so.1.3.2.0
43# sp_file_import(Gtk::Window&) in /nix/store/k7zizrhyv0y87l6s8fv2zl08ah00dycp-inkscape-1.3.2/bin/../lib/inkscape/libinkscape_base.so.1.3.2.0
44# document_import(InkscapeWindow*) in /nix/store/k7zizrhyv0y87l6s8fv2zl08ah00dycp-inkscape-1.3.2/bin/../lib/inkscape/libinkscape_base.so.1.3.2.0
45# 0x00007F00C57272AD in /nix/store/cgcbhda3l86knmyciknmvw2x0321z7zc-glibmm-2.66.7/lib/libgiomm-2.4.so.1
46# g_closure_invoke in /nix/store/pjxrn2wn0sn533p48jz5qxgjld84hn3i-glib-2.80.4/lib/libgobject-2.0.so.0
47# 0x00007F00C6802339 in /nix/store/pjxrn2wn0sn533p48jz5qxgjld84hn3i-glib-2.80.4/lib/libgobject-2.0.so.0
48# 0x00007F00C6803981 in /nix/store/pjxrn2wn0sn533p48jz5qxgjld84hn3i-glib-2.80.4/lib/libgobject-2.0.so.0
49# g_signal_emit_valist in /nix/store/pjxrn2wn0sn533p48jz5qxgjld84hn3i-glib-2.80.4/lib/libgobject-2.0.so.0
50# g_signal_emit in /nix/store/pjxrn2wn0sn533p48jz5qxgjld84hn3i-glib-2.80.4/lib/libgobject-2.0.so.0
51# 0x00007F00C6936A2D in /nix/store/pjxrn2wn0sn533p48jz5qxgjld84hn3i-glib-2.80.4/lib/libgio-2.0.so.0
52# 0x00007F00C4ED2506 in /nix/store/nzll3s1gzpmqiij4vyanpnpybryx8i0f-gtk+3-3.24.43/lib/libgtk-3.so.0
53# g_closure_invoke in /nix/store/pjxrn2wn0sn533p48jz5qxgjld84hn3i-glib-2.80.4/lib/libgobject-2.0.so.0
54# 0x00007F00C6801FCC in /nix/store/pjxrn2wn0sn533p48jz5qxgjld84hn3i-glib-2.80.4/lib/libgobject-2.0.so.0
55# 0x00007F00C6803981 in /nix/store/pjxrn2wn0sn533p48jz5qxgjld84hn3i-glib-2.80.4/lib/libgobject-2.0.so.0
56# g_signal_emit_valist in /nix/store/pjxrn2wn0sn533p48jz5qxgjld84hn3i-glib-2.80.4/lib/libgobject-2.0.so.0
57# g_signal_emit in /nix/store/pjxrn2wn0sn533p48jz5qxgjld84hn3i-glib-2.80.4/lib/libgobject-2.0.so.0
58# gtk_widget_activate in /nix/store/nzll3s1gzpmqiij4vyanpnpybryx8i0f-gtk+3-3.24.43/lib/libgtk-3.so.0
59# gtk_menu_shell_activate_item in /nix/store/nzll3s1gzpmqiij4vyanpnpybryx8i0f-gtk+3-3.24.43/lib/libgtk-3.so.0
60# 0x00007F00C4ECEA7C in /nix/store/nzll3s1gzpmqiij4vyanpnpybryx8i0f-gtk+3-3.24.43/lib/libgtk-3.so.0
61# 0x00007F00C4D43104 in /nix/store/nzll3s1gzpmqiij4vyanpnpybryx8i0f-gtk+3-3.24.43/lib/libgtk-3.so.0
62# 0x00007F00C67ECF41 in /nix/store/pjxrn2wn0sn533p48jz5qxgjld84hn3i-glib-2.80.4/lib/libgobject-2.0.so.0
63# 0x00007F00C6802D98 in /nix/store/pjxrn2wn0sn533p48jz5qxgjld84hn3i-glib-2.80.4/lib/libgobject-2.0.so.0
64# g_signal_emit_valist in /nix/store/pjxrn2wn0sn533p48jz5qxgjld84hn3i-glib-2.80.4/lib/libgobject-2.0.so.0
65# g_signal_emit in /nix/store/pjxrn2wn0sn533p48jz5qxgjld84hn3i-glib-2.80.4/lib/libgobject-2.0.so.0
66# 0x00007F00C5010914 in /nix/store/nzll3s1gzpmqiij4vyanpnpybryx8i0f-gtk+3-3.24.43/lib/libgtk-3.so.0
67# 0x00007F00C4EB86D6 in /nix/store/nzll3s1gzpmqiij4vyanpnpybryx8i0f-gtk+3-3.24.43/lib/libgtk-3.so.0
68# gtk_main_do_event in /nix/store/nzll3s1gzpmqiij4vyanpnpybryx8i0f-gtk+3-3.24.43/lib/libgtk-3.so.0
69# 0x00007F00C4BA75E5 in /nix/store/nzll3s1gzpmqiij4vyanpnpybryx8i0f-gtk+3-3.24.43/lib/libgdk-3.so.0
70# 0x00007F00C4C04ED2 in /nix/store/nzll3s1gzpmqiij4vyanpnpybryx8i0f-gtk+3-3.24.43/lib/libgdk-3.so.0
71# 0x00007F00C66E30A4 in /nix/store/pjxrn2wn0sn533p48jz5qxgjld84hn3i-glib-2.80.4/lib/libglib-2.0.so.0
72# 0x00007F00C66E62C7 in /nix/store/pjxrn2wn0sn533p48jz5qxgjld84hn3i-glib-2.80.4/lib/libglib-2.0.so.0
73# g_main_context_iteration in /nix/store/pjxrn2wn0sn533p48jz5qxgjld84hn3i-glib-2.80.4/lib/libglib-2.0.so.0
74# g_application_run in /nix/store/pjxrn2wn0sn533p48jz5qxgjld84hn3i-glib-2.80.4/lib/libgio-2.0.so.0
75# main in inkscape
76# 0x00007F00C40F414E in /nix/store/3dyw8dzj9ab4m8hv5dpyx7zii8d0w6fi-glibc-2.39-52/lib/libc.so.6
77# __libc_start_main in /nix/store/3dyw8dzj9ab4m8hv5dpyx7zii8d0w6fi-glibc-2.39-52/lib/libc.so.6
78# _start in inkscape
</pre>
<details><summary>System info</summary>
Inkscape 1.3.2 (091e20ef0f, 2023-11-25)

    GLib version:     2.80.4
    GTK version:      3.24.43
    glibmm version:   2.66.7
    gtkmm version:    3.24.9
    libxml2 version:  2.13.3
    libxslt version:  1.1.42
    Cairo version:    1.18.0
    Pango version:    1.52.2
    HarfBuzz version: 9.0.0

    OS version:       Gentoo Linux
</details>

Nixpkgs version:

    "nixpkgs": {
      "locked": {
        "lastModified": 1726463316,
        "narHash": "sha256-gI9kkaH0ZjakJOKrdjaI/VbaMEo9qBbSUl93DnU7f4c=",
        "owner": "nixos",
        "repo": "nixpkgs",
        "rev": "99dc8785f6a0adac95f5e2ab05cc2e1bf666d172",
        "type": "github"
      },
      "original": {
        "owner": "nixos",
        "ref": "nixos-unstable",
        "repo": "nixpkgs",
        "type": "github"
      }
    },

Notify maintainers

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

> nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 5.15.147-gentoo, Gentoo, noversion, nobuild`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.23.3`
 - channels(x): `"home-manager, nixgl, nixpkgs"`
 - nixpkgs: `/home/x/.nix-defexpr/channels/nixpkgs`

Add a :+1: reaction to issues you find important.

infinisil commented 1 month ago

I'm having the same issue. Ping @jtojnar as the inkscape maintainer