Comment 2 for bug 1646595

Revision history for this message
Mitch Bradley (wmb-a) wrote :

Here's a very simple .svg that crashes the J-Tech Photonics Laser Tool extension.

The path was generated by the Hersey Text extension, rendering the text string "I I" in the "Sans 1-stroke" font face.

The crux of the problem appears to be path id "path42563", whose "d" attribute has the value "8" instead of a list of M's and L's. That attribute apparently resulted from the space in the string, as space-less strings do not have any funny "d" values and do not trigger the crash..

If I delete just that one funny path id (using the XML editor), the crash stops.

It might be argued that the problem is in the Hershey Text extension. However, it would seem prudent for cubicsuperpath.py to be resilient in the presence of dubious paths. In a followup comment I will post a proposed patch for hershey.py