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/funcplot.py", line 274, in <module>
e.affect()
File "/usr/share/inkscape/extensions/inkex.py", line 207, in affect
self.effect()
File "/usr/share/inkscape/extensions/funcplot.py", line 256, in effect
self.options.drawaxis)))
File "/usr/share/inkscape/extensions/funcplot.py", 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.