color_custom.py crashed with NameError in <string>: name 'rr' is not defined
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Triaged
|
Medium
|
Unassigned | ||
inkscape (Ubuntu) |
Triaged
|
Low
|
Unassigned |
Bug Description
1) Description: Ubuntu oneiric (development branch)
Release: 11.10
2) inkscape:
Instalados: 0.48.2-0ubuntu1
Candidato: 0.48.2-0ubuntu1
Tabla de versión:
*** 0.48.2-0ubuntu1 0
500 http://
100 /var/lib/
3) I was editing an image when it crash
4) inkscape crash
ProblemType: Crash
DistroRelease: Ubuntu 11.10
Package: inkscape 0.48.2-0ubuntu1
ProcVersionSign
Uname: Linux 3.0.0-10-generic x86_64
NonfreeKernelMo
ApportVersion: 1.22.1-0ubuntu2
Architecture: amd64
Date: Tue Sep 13 00:15:15 2011
ExecutablePath: /usr/share/
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Beta amd64 (20110901)
InterpreterPath: /usr/bin/python2.7
ProcCmdline: /usr/bin/python color_custom.py --id=image2993 --r=rr --g=g --b=b /tmp/ink_
PythonArgs: ['color_custom.py', '--id=image2993', '--r=rr', '--g=g', '--b=b', '/tmp/ink_
SourcePackage: inkscape
Title: color_custom.py crashed with NameError in <string>: name 'rr' is not defined
UpgradeStatus: Upgraded to oneiric on 2011-09-13 (0 days ago)
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare
I can reproduce this using the following procedure:
1. Extensions- >Colour- >Custom. ..
2. Enter "rr" in the "Red Function:" dialog and press "Apply". (Also occurs if "Live Preview" is enabled).
This occurs because the "rr" symbol does not exist (i.e. it's a typo in the entry field). The extension script should perform more thorough error checking on the input field before trying to process the function, and then display a user-friendly error message rather than just throwing an exception.