Comment 3 for bug 1591578

Revision history for this message
su_v (suv-lp) wrote :

AFAICT nothing OS-specific here - depends on version of libxml2 and the specific formatting of the SVG source within an element which declares 'xml:space="preserve"' (in <flowroot>): inkscape trunk with libxml2 2.7.8 and libxml2 2.8.0 crashes e.g. on OS X too, when attempting to open the "pretty-printed" version b.svg - no crash OTOH with trunk compiled against libxml2 2.9.3.

The trigger seems to be white-space (newlines) inserted in b.svg to separate child elements of the <flowRoot> element.

Deleting the 'xml:space="preserve"' attribute, or removing the specific formatting (the newlines separating the children of <flowRoot>) allows to open the file with Inkscape built against (outdated) libxml2 2.7.8 and 2.8.0 (currently, 32bit devlibs for Windows builds still have libxml2 2.7.8, whereas 64bit devlibs include recent 2.9.3).

What the correct solution would be in the context of the reporter's use case I do not know.