color_custom.py crashed with NameError in <string>: name 'rr' is not defined

Bug #849046 reported by Gen X
10
This bug affects 1 person
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://mx.archive.ubuntu.com/ubuntu/ oneiric/main amd64 Packages
        100 /var/lib/dpkg/status

3) I was editing an image when it crash
4) inkscape crash

ProblemType: Crash
DistroRelease: Ubuntu 11.10
Package: inkscape 0.48.2-0ubuntu1
ProcVersionSignature: Ubuntu 3.0.0-10.16-usernameeric 3.0.4
Uname: Linux 3.0.0-10-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 1.22.1-0ubuntu2
Architecture: amd64
Date: Tue Sep 13 00:15:15 2011
ExecutablePath: /usr/share/inkscape/extensions/color_custom.py
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_ext_XXXXXX.svg6K9H1V
PythonArgs: ['color_custom.py', '--id=image2993', '--r=rr', '--g=g', '--b=b', '/tmp/ink_ext_XXXXXX.svg6K9H1V']
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

Revision history for this message
Gen X (genx) wrote :
tags: removed: need-duplicate-check
visibility: private → public
Revision history for this message
Alex Valavanis (valavanisalex) wrote :

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.

Changed in inkscape (Ubuntu):
importance: Undecided → Low
status: New → Triaged
Changed in inkscape:
status: New → Triaged
importance: Undecided → Medium
tags: added: extensions-plugins
removed: amd64
Revision history for this message
su_v (suv-lp) wrote :

Reproduced with Inkscape 0.48.2 on Mac OS X 10.5.8 (i386)
Not reproduced with Inkscape 0.48+devel r10645

Probably fixed with the commit for
  Bug #186432 “scaling of (r,g,b) parameters in Effects|Color|Custom... extension”
  <https://bugs.launchpad.net/inkscape/+bug/186432>
in revision r9794 (not backported to the stable branch:
 <http://bazaar.launchpad.net/~inkscape.dev/inkscape/trunk/revision/9794>

@Alvin - can you confirm?

Revision history for this message
Alvin Penner (apenner) wrote :

this was fixed in bzr rev 9727, Bug 168417. The patch was originally submitted or proposed by Alexander Gessler, I believe.

Revision history for this message
su_v (suv-lp) wrote :

Alvin Penner wrote:
> this was fixed in bzr rev 9727, Bug 168417

Oops - how did I miss that? ;) Thanks a lot for the information!

I will tag bug #168417 as 'back-port-proposed' - AFAICT there are no string changes in the commit, and it does not depend on other changes elsewhere.

Linking as duplicate to Bug #168417 “parameters ending with '\' causes python to bomb”. Please add a comment here and revert the duplicate status if you don't agree and think these are different issues.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.