Inkscape crashes when the open dialog selects a large image (master)

Bug #1807596 reported by Mattia Basaglia
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Undecided
Unassigned

Bug Description

I'm using Inkscape from the inkscape-trunk ppa on kubuntu 18.10 (deb version 1:0.92.0+devel+201812090338~ubuntu18.10.1).

The open file dialog consistently causes a crash if a large image file is selected (happens with a ~12M jpeg). The image just need to be selected/highlighted in the dialog.

Inkscape itself can load the image in question just fine if it's opened directly, without using the dialog.

I suspect it's the preview feature in the dialog, but that's just a guess.

The console log doesn't give any useful info, there are some GTK warnings at startup, nothing really when I navigate the open dialog and when the image is selected there's just a couple lines about an emergency save file being created.

Hachmann (marenhachmann)
summary: - Inkscape crashes when the open dialog selects a large image
+ Inkscape crashes when the open dialog selects a large image (master)
tags: added: crash preview
Revision history for this message
Alvin Penner (apenner) wrote :

- crash reproduced on Windows 10, Inkscape 0.92+devel (f82bbc7, 2018-12-03) using a 22MB .jpg file
- crash occurs only when using the gtk open/save dialog (with preview), not the Windows native open/save dialogs.

Changed in inkscape:
status: New → Confirmed
Revision history for this message
Alvin Penner (apenner) wrote :
Download full text (7.1 KiB)

backtrace:
Program received signal SIGSEGV, Segmentation fault.
0x73c794c0 in strlen () from C:\WINDOWS\SysWOW64\msvcrt.dll
(gdb) bt
#0 0x73c794c0 in strlen () from C:\WINDOWS\SysWOW64\msvcrt.dll
#1 0x64c4502f in ?? () from c:\app\temp\inkscape_devel\libglib-2.0-0.dll
#2 0x64c43e57 in ?? () from c:\app\temp\inkscape_devel\libglib-2.0-0.dll
#3 0x64c3ba04 in ?? () from c:\app\temp\inkscape_devel\libglib-2.0-0.dll
#4 0x64c15fe7 in ?? () from c:\app\temp\inkscape_devel\libglib-2.0-0.dll
#5 0x0126d554 in libinkscape_base!_ZN8Inkscape2UI6Dialog10SVGPreview12showTooLargeEl ()
   from c:\app\temp\inkscape_devel\libinkscape_base.dll
#6 0x01273395 in libinkscape_base!_ZN8Inkscape2UI6Dialog10SVGPreview3setERN4Glib7ustringEi ()
   from c:\app\temp\inkscape_devel\libinkscape_base.dll
#7 0x0127374a in libinkscape_base!_ZN8Inkscape2UI6Dialog17FileDialogBaseGtk22_updatePreviewCallbackEv ()
   from c:\app\temp\inkscape_devel\libinkscape_base.dll
#8 0x666dc4d1 in ?? () from c:\app\temp\inkscape_devel\libglibmm-2.4-1.dll
#9 0x681063a3 in ?? () from c:\app\temp\inkscape_devel\libgobject-2.0-0.dll
#10 0x68118dfa in ?? () from c:\app\temp\inkscape_devel\libgobject-2.0-0.dll
#11 0x68121037 in ?? () from c:\app\temp\inkscape_devel\libgobject-2.0-0.dll
#12 0x68121cca in ?? () from c:\app\temp\inkscape_devel\libgobject-2.0-0.dll
#13 0x681063a3 in ?? () from c:\app\temp\inkscape_devel\libgobject-2.0-0.dll
#14 0x6811939d in ?? () from c:\app\temp\inkscape_devel\libgobject-2.0-0.dll
#15 0x68121037 in ?? () from c:\app\temp\inkscape_devel\libgobject-2.0-0.dll
#16 0x68121cca in ?? () from c:\app\temp\inkscape_devel\libgobject-2.0-0.dll
#17 0x021c79d9 in ?? () from c:\app\temp\inkscape_devel\libgtk-3-0.dll
#18 0x021cb8f2 in ?? () from c:\app\temp\inkscape_devel\libgtk-3-0.dll
#19 0x681065ec in ?? () from c:\app\temp\inkscape_devel\libgobject-2.0-0.dll
#20 0x68121349 in ?? () from c:\app\temp\inkscape_devel\libgobject-2.0-0.dll
#21 0x68121887 in ?? () from c:\app\temp\inkscape_devel\libgobject-2.0-0.dll
#22 0x02363354 in ?? () from c:\app\temp\inkscape_devel\libgtk-3-0.dll
#23 0x0236aa9e in ?? () from c:\app\temp\inkscape_devel\libgtk-3-0.dll
#24 0x6b944768 in ?? () from c:\app\temp\inkscape_devel\libffi-6.dll
#25 0x6b944393 in ?? () from c:\app\temp\inkscape_devel\libffi-6.dll
#26 0x68106edc in ?? () from c:\app\temp\inkscape_devel\libgobject-2.0-0.dll
#27 0x681065ec in ?? () from c:\app\temp\inkscape_devel\libgobject-2.0-0.dll
#28 0x68121349 in ?? () from c:\app\temp\inkscape_devel\libgobject-2.0-0.dll
#29 0x68121887 in ?? () from c:\app\temp\inkscape_devel\libgobject-2.0-0.dll
#30 0x021eda12 in ?? () from c:\app\temp\inkscape_devel\libgtk-3-0.dll
#31 0x68108d2f in ?? () from c:\app\temp\inkscape_devel\libgobject-2.0-0.dll
#32 0x681065ec in ?? () from c:\app\temp\inkscape_devel\libgobject-2.0-0.dll
#33 0x68121349 in ?? () from c:\app\temp\inkscape_devel\libgobject-2.0-0.dll
#34 0x68121887 in ?? () from c:\app\temp\inkscape_devel\libgobject-2.0-0.dll
#35 0x021ea936 in ?? () from c:\app\temp\inkscape_devel\libgtk-3-0.dll
#36 0x021ebcf8 in ?? () from c:\app\temp\inkscape_devel\libgtk-3-0.dll
#37 0x021eec63 in ?? () from c:\app\temp\inkscape_devel\libgtk-3-0.dll
#38 ...

Read more...

Nathan Lee (nathan.lee)
tags: added: bug-migration
Changed in inkscape:
status: Confirmed → Fix Committed
Revision history for this message
Nathan Lee (nathan.lee) wrote :

Closing because fix committed in 1.0alpha (not yet released version). See https://gitlab.com/inkscape/inkscape/merge_requests/531.

This is part of the bug migration, but I had opened the issue earlier here https://gitlab.com/inkscape/inbox/issues/127 (didn't see this, oops!). I think you can reopen if you have issues (you can still comment).

Please feel free to file new bugs about the issues you're seeing at
http://inkscape.org/report.

Closed by: https://gitlab.com/nathanal

Revision history for this message
Qantas94Heavy (qantas94heavy) wrote :

This can be marked as 'Fix Released' as this bug was never introduced into a release version of Inkscape -- 0.92.x has the correct format type: https://gitlab.com/inkscape/inkscape/blob/0.92.x/src/ui/dialog/filedialogimpl-gtkmm.cpp#L518

Closed by: https://gitlab.com/Qantas94Heavy

Changed in inkscape:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.