SVG File Crashes on Startup

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

Bug Description

The following SVG file, created with inkscape .46, crashes the system when I attempt to open it.

Upon attempting to open the SVG:

Microsoft Visual C++ Runtime Library

Runtime Error!
Program: C:\Program Files\Inkscape\Inkscape.exe

This application has requested the Runtime to terminate in an unusual way.
Please contact the application's support team for more information

Then,

Inkscape encountered an internal error and will close now.

The error is 100% reproducable on Windows XP SP3. I've also attempted to open it on OSX 10.6. I attempted to get a backtrace using the Inkscape20168-0811101920-fulldbg upload, with the following result:

GNU gdb 6.8
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-mingw32".
(gdb) target exec Inkscape.exe
(gdb) symbol-file inkscape.dbg
Reading symbols from C:\Documents and Settings\calo\Desktop\Inkscape20168-081110
1920-fulldbg\inkscape/inkscape.dbg...done.
(gdb) run EditorBroken.svg
Starting program: C:\Documents and Settings\calo\Desktop\Inkscape20168-081110192
0-fulldbg\inkscape/Inkscape.exe EditorBroken.svg
[New thread 4228.0x670]
[New thread 4228.0x100c]
warning: Lowest section in C:\WINDOWS\system32\nvwimg.dll is .rsrc at 10001000
warning: Lowest section in C:\WINDOWS\system32\nvwimg.dll is .rsrc at 10001000
warning: Lowest section in C:\WINDOWS\system32\nvwimg.dll is .rsrc at 10001000
warning: Lowest section in C:\WINDOWS\system32\nvwimg.dll is .rsrc at 10001000

Program exited with code 03.
(gdb) bt
No stack.
(gdb)

Will

Revision history for this message
Will Haines (haines-ai) wrote :
Revision history for this message
Alvin Penner (apenner) wrote :

crash confirmed on Win32 build 20418 from Dec 30, exit message is :

ERROR:src/libnrtype/Layout-TNG-Compute.cpp:1348:bool Inkscape::Text::Layout::Calculator::calculate(): assertion failed: (_flow._input_stream.front()->Type() ==TEXT_SOURCE)

Emergency save activated!

Changed in inkscape:
status: New → Confirmed
Revision history for this message
Alvin Penner (apenner) wrote :

the file EditorBroken.svg has been separated into two pieces. The first piece will load properly into Win32 build 20418

Revision history for this message
Alvin Penner (apenner) wrote :

the second piece causes the above crash

Revision history for this message
Alvin Penner (apenner) wrote :

the crash appears to be caused by a <flowSpan> element that had a null value where it was expecting text :

if I take the element :
<flowSpan id="flowSpan10489" style="font-weight:normal;-inkscape-font-specification:Gill Sans MT"></flowSpan>

and replace it with :
<flowSpan id="flowSpan10489" style="font-weight:normal;-inkscape-font-specification:Gill Sans MT">T</flowSpan>

then the crash disappears, file attached.

Revision history for this message
theAdib (theadib) wrote :

I commited a fix in revision 20611, pls. double-check and report, Adib.

Changed in inkscape:
assignee: nobody → theadib
importance: Undecided → High
milestone: none → 0.47
status: Confirmed → Fix Committed
Revision history for this message
Alvin Penner (apenner) wrote :

running Win32 rev 20635, I get a warning as below, but no crash, file loads perfectly.

** (inkscape.exe:3048): WARNING **: flow text is not of type TEXT_SOURCE. Abort.

Thanks, theAdib !

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.