Closed GoogleCodeExporter closed 8 years ago
If invalid XML gets fed back to Inkscape when an extension process shuts down,
Inkscape will/may abort and shutdown. (I've seen this as I'm debugging
extensions.) So, I'm wondering if occasionally that generator exception
associated with the older eggbot_scanwin32.py code triggered its exception as
the extension was winding down and whispering sweet nothings back to Inkscape.
Inkscape took offense over the interrupted missive and decided to go play
elsewhere. Just a theory.
Original comment by newman.d...@gmail.com
on 18 Oct 2010 at 8:22
My intuition is that invalid XML is not the issue.
When you hit 'Apply,' the extension begins to execute its python code, and
Inkscape passes the SVG (XML) to the extension. When the extension finishes
executing-- that is, when the python code finishes --the SVG is returned to
Inkscape, and then user control is restored to the GUI. My experience with
other extensions (ones that visibly modify the drawing) confirm this, since the
drawing (and thus the SVG) can clearly be updated before the extension window
is closed. If there were a problem with the XML, I'd expect Inkscape to throw
an error or crash when the extension executes, not *after* it has finished
executing when you close the window.
We should be able to test that, by intentionally returning invalid XML to see
how Inkscape reacts.
Also, I've been able to cause similar crashes with other extensions, with the
same large files. Whatever the issue is, it does not seem to be
Eggbot-specific.
Original comment by windell@oskay.net
on 18 Oct 2010 at 9:01
The issue of long path data, or even long lines in SVG is very much not
Inkscape specific. The SVG spec encourages lines to be kept to a reasonable
length in path data, and rewriting the specific extensions to do so is probably
the best path available. A simple method is to put a newline in-between every
path segment, (for example after every C, S, L or M)
FYI: "Path data can contain newline characters and thus can be broken up into
multiple lines to improve readability. Because of line length limitations with
certain related tools, it is recommended that SVG generators split long path
data strings across multiple lines, with each line not exceeding 255
characters. Also note that newline characters are only allowed at certain
places within path data."
http://www.w3.org/TR/SVG/paths.html
Original comment by cannon...@gmail.com
on 12 Mar 2012 at 1:14
Original comment by windell@oskay.net
on 15 Dec 2014 at 9:44
Original issue reported on code.google.com by
windell@oskay.net
on 4 Oct 2010 at 11:41