function plotter crash during live preview...

Bug #590079 reported by Daniel J Blueman on 2010-06-05
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

When using the Inkscape function plotter with live preview enabled, during typing the function, python raises an exception when the equation has syntax failure (momentarily when typing the equation), thus reporting a crash.

The crash signature is:

Traceback (most recent call last):
  File "/usr/share/inkscape/extensions/", line 274, in <module>
  File "/usr/share/inkscape/extensions/", line 207, in affect
  File "/usr/share/inkscape/extensions/", line 256, in effect
  File "/usr/share/inkscape/extensions/", line 74, in drawfunction
    f = eval('lambda x: ' + fx.strip('"'))
  File "<string>", line 1
    lambda x: exp(-x*x+)
SyntaxError: unexpected EOF while parsing

The attached patch addresses this by catching SyntaxError exceptions and returning an empty array of points to plot, allowing typing in and editing of equations with live preview enabled.

Kris (kris-degussem) on 2010-06-05
tags: added: extensions-plugins
Alvin Penner (apenner) on 2010-06-06
Changed in inkscape:
status: New → Confirmed
Alvin Penner (apenner) on 2010-07-19
Changed in inkscape:
status: Confirmed → Fix Committed
su_v (suv-lp) wrote :

inkscape trunk: r9631

Changed in inkscape:
milestone: none → 0.49
su_v (suv-lp) on 2011-06-10
tags: added: backport-proposed
jazzynico (jazzynico) wrote :

Committed in the 0.48.x branch, revision 9794.

Changed in inkscape:
milestone: 0.49 → 0.48.2
tags: removed: backport-proposed
Ted Gould (ted) on 2011-09-07
Changed in inkscape:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers