Segfault closing dialog after importing PDFs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Using inkscape 0.92.3-1 in Debian I am able to reliably produce a crash due to SIGSEGV when closing the Layers dialog using the following procedure:
1. Open Inkscape.
2. Open the Layers dialog (Shift+Ctrl+L or Layer->Layers).
3. Close and re-open Inkscape (to save open Layers dialog in preferences).
4. Open a PDF file (File->Open select .pdf file, press OK, then press OK to default import settings.)
5. Open a second, PDF file with a different name (can be same or different file contents).
This should open a second window for second PDF, but the second window will have no dialogs open while the first window has two duplicate Layers dialogs open.
6. Close both of the Layers dialog in window for the first PDF file.
7. Switch to the Inkscape window for the second PDF file.
At this point Inkscape will crash with SIGSEGV and the following backtrace:
#0 0x00007ffff5cdbfea in g_type_get_qdata ()
at /usr/lib/
#1 0x00007ffff0574ccb in Glib::wrap_
at /usr/lib/
#2 0x00007ffff1b5292d in Glib::wrap(
at /usr/lib/
#3 0x00007ffff7372200 in Inkscape:
#4 0x00007ffff7372fa0 in Inkscape:
#5 0x00007ffff71f1c3a in Inkscape:
at ./src/ui/
#6 0x00007ffff74fab38 in sigc::internal:
at /usr/include/
#7 0x00007ffff74fab38 in sigc::signal1<void, SPDesktop*, sigc::nil>
#8 0x00007ffff74fab38 in Inkscape:
#9 0x00007ffff74284b4 in SPDesktopWidget
#10 0x00007ffff1b4f24b in () at /usr/lib/
#11 0x00007ffff10f62ab in () at /usr/lib/
#12 0x00007ffff5cb7f6d in g_closure_invoke ()
at /usr/lib/
#13 0x00007ffff5cca8d1 in () at /usr/lib/
#14 0x00007ffff5cd2d8f in g_signal_
at /usr/lib/
#15 0x00007ffff5cd3e0f in g_signal_emit ()
at /usr/lib/
#16 0x00007ffff120c26c in () at /usr/lib/
#17 0x00007ffff10f4a23 in gtk_main_do_event ()
at /usr/lib/
#18 0x00007fffefe8504c in () at /usr/lib/
#19 0x00007ffff4a2f287 in g_main_
at /lib/x86_
#20 0x00007ffff4a2f4c0 in () at /lib/x86_
#21 0x00007ffff4a2f7d2 in g_main_loop_run ()
at /lib/x86_
#22 0x00007ffff10f3977 in gtk_main ()
at /usr/lib/
#23 0x000055555555ce53 in sp_main_gui(int, char const**) (argc=<optimized out>, argv=<optimized out>) at ./src/main.cpp:1164
#24 0x00007fffed7e0a87 in __libc_start_main (main=
0x55555555a9c0 <main(int, char**)>, argc=1, argv=0x7fffffff
#25 0x000055555555af2a in _start ()
Note that after step 5 the following messages were printed:
** (inkscape:11143): WARNING **: 19:14:02.898: master 0x555557795d80: unable to add object 0x55555a5abad0[
** (inkscape:11143): WARNING **: 19:14:02.913: master 0x555557795d80: unable to add object 0x55555a5e62d0[
I originally reported this issue in https:/
I am attaching a script which follows the steps described above to reliably reproduce the issue using a temporary home directory to avoid any issues with saved preferences.
If you need any more details or more symbols in the backtrace, let me know.
Thanks,
Kevin
- thank you for taking the time to issue a report.
- problem not reproduced on Windows 10, Inkscape 0.92.3 (2405546, 2018-03-11)
- when I open the second pdf file I find that the second Inkscape has a (docked) layers dialog associated with it as expected.
- when I close the layers dialogs I get no crash.