Crash when saving as XAML or FXG

Bug #1026148 reported by jazzynico
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
High
jazzynico
Inkscape Devlibs
Fix Released
High
Unassigned

Bug Description

Inkscape crashes when saving a non empty document to XAML or FXG, Inkscape.

Reproduced on Windows XP, Inkscape revision 10785->11551.
Not reproduced on Windows XP, Inkscape revision 10568.
Not reproduced on Debian testing, Inkscape revision 11551.

(gdb) bt
#0 0x77c17a6f in strncmp () from C:\WINDOWS\system32\msvcrt.dll
#1 0x6ac6fc4e in __xmlParserInputBufferCreateFilename () from D:\Inkscape\inkscape-10785\inkscape\libxml2.dll
#2 0x6ac3d06a in xmlNewInputFromFile () from D:\Inkscape\inkscape-10785\inkscape\libxml2.dll
#3 0x6ac279b0 in xmlCreateURLParserCtxt () from D:\Inkscape\inkscape-10785\inkscape\libxml2.dll
#4 0x6ac27a45 in xmlCreateFileParserCtxt () from D:\Inkscape\inkscape-10785\inkscape\libxml2.dll
#5 0x6ac3bf13 in xmlSAXParseFileWithData () from D:\Inkscape\inkscape-10785\inkscape\libxml2.dll
#6 0x6ac3c013 in xmlSAXParseFile () from D:\Inkscape\inkscape-10785\inkscape\libxml2.dll
#7 0x6ac3c05d in xmlParseFile () from D:\Inkscape\inkscape-10785\inkscape\libxml2.dll
#8 0x005e8db9 in _fu687___ZNSs4_Rep20_S_empty_rep_storageE ()
#9 0x05785b2c in ?? ()
#10 0x05785b2c in ?? ()
#11 0x00cd0bc0 in Inkscape::Extension::Implementation::Script::execute(std::list<std::string, std::allocator<std::string> > const&, std::list<std::string, std::allocator<std::string> > const&, Glib::ustring const&, Inkscape::Extension::Implementation::Script::file_listener&)::__PRETTY_FUNCTION__ ()

jazzynico (jazzynico)
Changed in inkscape:
importance: Undecided → High
milestone: none → 0.49
tags: added: crash exporting fxg xaml
tags: added: regression
Revision history for this message
su_v (suv-lp) wrote :

> Not reproduced on Debian testing, Inkscape revision 11551.

Not reproduced on OS X 10.7.4, Inkscape 0.48+devel r11552

tags: added: win32
Revision history for this message
jazzynico (jazzynico) wrote :

Updating the xml2 library (libxml2.dll) from 2.7.7 to 2.8 (with the binary found at ftp://ftp.zlatkovic.com/pub/libxml/) fixes the issue.
Note that the xml2 and xslt libraries available in the opensuse repository are a bit more recent (xml2 2.8), but requires some extra changes in the devlibs. To be tested!

Changed in inkscape:
status: New → Triaged
Changed in inkscape-devlibs:
importance: Undecided → High
status: New → Triaged
Revision history for this message
jazzynico (jazzynico) wrote :

> from 2.7.7 to 2.8

Correction: from 2.7.7 to 2.7.8.

Revision history for this message
jazzynico (jazzynico) wrote :

Tested successfully with the libs from http://download.opensuse.org/repositories/windows:/mingw:/win32/openSUSE_12.1/noarch/

 libxml2-2.8.0-1.3
 libxslt-1.1.26-8.22

Revision history for this message
jazzynico (jazzynico) wrote :

Unfortunately, the opensuse libs are linked to some extra libs (libgcrypt11 and others) when exslt is enabled in src/extensions/implementation/script.cpp (it's not in the current trunk, but would improve the XAML and FXG exports) and thus using the official Windows build looks safer.

Suggested versions (from ftp://ftp.zlatkovic.com/pub/libxml/):
 libxml2-2.7.8
 libxslt-1.1.26

Revision history for this message
jazzynico (jazzynico) wrote :

XML and XSLT libs updated, devlibs r32.

Changed in inkscape:
status: Triaged → Fix Committed
Changed in inkscape-devlibs:
status: Triaged → Fix Released
jazzynico (jazzynico)
Changed in inkscape:
assignee: nobody → jazzynico (jazzynico)
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.