Crash on Save: Guess from extension

Bug #1125082 reported by Gregor Shapiro
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
High
Unassigned
inkscape (Debian)
Fix Released
Unknown

Bug Description

When I save or save as or save a copy and select the "Guess from extension" alternative, Inkscape crashes. No matter what extension I choose.
I expect a normal save in Inkscape native format if I have written .svg and if I have written an unsupported file format I expect a warning and an opportunity to save in another format.
gdb output:
(gdb) run
Starting program: /usr/bin/inkscape
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffe8e41700 (LWP 12236)]
[New Thread 0x7fffe3fff700 (LWP 12237)]
[New Thread 0x7fffdbbd1700 (LWP 12238)]
[Thread 0x7fffdbbd1700 (LWP 12238) exited]
[New Thread 0x7fffdbbd1700 (LWP 12241)]
[New Thread 0x7fffda547700 (LWP 12242)]
[New Thread 0x7fffd9d46700 (LWP 12243)]
[New Thread 0x7fffd9545700 (LWP 12244)]
[New Thread 0x7fffd8d44700 (LWP 12245)]
[Thread 0x7fffdbbd1700 (LWP 12241) exited]
[Thread 0x7fffd8d44700 (LWP 12245) exited]
[Thread 0x7fffd9545700 (LWP 12244) exited]
[Thread 0x7fffda547700 (LWP 12242) exited]
[New Thread 0x7fffda547700 (LWP 12247)]
[Thread 0x7fffda547700 (LWP 12247) exited]
[New Thread 0x7fffda547700 (LWP 12248)]

Program received signal SIGSEGV, Segmentation fault.
0x00000000007c9ab0 in Inkscape::Extension::Output::get_extension() ()
(gdb) bt
#0 0x00000000007c9ab0 in Inkscape::Extension::Output::get_extension() ()
#1 0x000000000066cef0 in sp_file_save_dialog(Gtk::Window&, SPDocument*, Inkscape::Extension::FileSaveMethod) ()
#2 0x000000000080e302 in sp_action_perform(SPAction*, void*) ()
#3 0x00007ffff4733ca2 in g_closure_invoke ()
   from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#4 0x00007ffff4744d71 in ?? ()
   from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#5 0x00007ffff474d099 in g_signal_emit_valist ()
   from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#6 0x00007ffff474d242 in g_signal_emit ()
   from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#7 0x00007fffdbdfa938 in ?? ()
   from /usr/lib/x86_64-linux-gnu/libdbusmenu-gtk.so.4
#8 0x00007ffff47361e9 in g_cclosure_marshal_VOID(unsigned int0_t, void) ()
   from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#9 0x00007ffff4733eca in ?? ()
   from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#10 0x00007ffff474c741 in g_signal_emit_valist ()
   from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#11 0x00007ffff474d242 in g_signal_emit ()
   from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#12 0x00007fffdbbdb469 in dbusmenu_menuitem_handle_event ()
---Type <return> to continue, or q <return> to quit---
   from /usr/lib/x86_64-linux-gnu/libdbusmenu-glib.so.4
#13 0x00007fffdbbdcaa7 in ?? ()
   from /usr/lib/x86_64-linux-gnu/libdbusmenu-glib.so.4
#14 0x00007ffff447791b in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#15 0x00007ffff4476d53 in g_main_context_dispatch ()
   from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#16 0x00007ffff44770a0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#17 0x00007ffff447749a in g_main_loop_run ()
   from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#18 0x00007ffff5d882f7 in gtk_main ()
   from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#19 0x000000000065e010 in sp_main_gui(int, char const**) ()
#20 0x0000000000643468 in main ()
(gdb) ^CQuit
(gdb)

Tags: crash saving
Revision history for this message
jazzynico (jazzynico) wrote :

Not reproduced on Windows XP, Inkscape trunk revision 12119 (GTK save dialog).
Tested with SVG, PNG and PDF. The files are correctly created and Inkscape doesn't crash.

Could you please give your operating system and Inkscape version?

Changed in inkscape:
importance: Undecided → High
status: New → Incomplete
tags: added: saving
removed: file-format save
Revision history for this message
Gregor Shapiro (gregor-shapiro) wrote :

Sorry, I thought that the gdb output would have made it clear that that OS was Linux Ubuntu (12.04). The version is 0.48.3.1 r9886
My Inkscape 0.48.4 r9939 that I run on Windows does not even have a "Guess from extension" alternaive in the Save As... dropdown list.

Revision history for this message
jazzynico (jazzynico) wrote :

> I thought that the gdb output would have made it clear that that OS was Linux Ubuntu

It could have been another Linux distro ;)

> My Inkscape 0.48.4 r9939 that I run on Windows does not even have a "Guess from extension" alternaive in the Save As... dropdown list.

Yes, the GTK dialog (with Guess from extension) is a new option available for Windows in the trunk version only (it will be included in 0.49).

I'll try later with Debian testing and 0.48.3.1.

Revision history for this message
jazzynico (jazzynico) wrote :

Reproduced on Debian testing, Inkscape 0.48.3.1.
Not reproduced with trunk revision 12125.

0.48.x compilation in progress (to check if it's fixed in the branch).

Changed in inkscape:
milestone: none → 0.49
status: Incomplete → Fix Committed
Revision history for this message
jazzynico (jazzynico) wrote :

Not reproduced with the branch.
Since nothing related to the issue changed in the branch recently, it should be fixed in the released 0.48.4 version.

Changed in inkscape:
milestone: 0.49 → 0.48.4
Kris (kris-degussem)
Changed in inkscape:
status: Fix Committed → Fix Released
Revision history for this message
su_v (suv-lp) wrote :

> Since nothing related to the issue changed in the branch
> recently, it should be fixed in the released 0.48.4 version.

Confirmed on OS X 10.7.4: crash reproducible with 0.48.3.1 r9886, but not with 0.48.4 r9939 (release build)

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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