crash on "save a copy as" when document has no filename yet

Bug #368879 reported by theAdib
2
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
High
theAdib

Bug Description

how to reproduce
-open inkscape
-draw something (a rectangle)
-"save copy as" (I do select an existing file and use pdf as output format)
-continue the export dialog
-before returning inkscape it crashes

attached the backtrace
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb67fb720 (LWP 14770)]
0xb725c0cb in g_utf8_validate () from /usr/lib/libglib-2.0.so.0
(gdb) bt
#0 0xb725c0cb in g_utf8_validate () from /usr/lib/libglib-2.0.so.0
#1 0xb72149be in ?? () from /usr/lib/libglib-2.0.so.0
#2 0xb72151b9 in g_filename_from_utf8 () from /usr/lib/libglib-2.0.so.0
#3 0x08096260 in sp_file_add_recent (uri=0xb72a7ff4 "�^\v") at file.cpp:93
#4 0x08098767 in sp_file_save_dialog (parentWindow=@0xa420f50, doc=0x96cbf60, is_copy=false) at file.cpp:817
#5 0x08234f0d in sp_action_perform (action=0x96d1dc8, data=0x0) at helper/action.cpp:181

Revision history for this message
theAdib (theadib) wrote :

this might only happen if no filename is assigned

Changed in inkscape:
importance: Undecided → High
milestone: none → 0.47
status: New → Triaged
tags: added: crash
Revision history for this message
jazzynico (jazzynico) wrote :

Confirmed on Windows XP, build 21236.
Also crashes when saving copy as SVG or PNG (and probably with the other file formats).
The crash appears after saving the file correctly.
Works well with 0.46, so I mark it as regression.

tags: added: regression
Revision history for this message
theAdib (theadib) wrote :

fix committed in svn revision 21257

Changed in inkscape:
assignee: nobody → theadib
status: Triaged → Fix Committed
ScislaC (scislac)
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.