skconvert.py crashed with SketchLoadError in Load()

Bug #469404 reported by Fibonacci
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
skencil (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: skencil

When trying to convert an sk file generated by pstoedit, skconvert crashes.
Strangely, this only happens when the language is set to something other than English. This is the output I get:
$ LANG="en_GB.UTF-8" skconvert Separation_axioms.sk Separation_axioms.svg
$ LANG="it_IT.UTF-8" skconvert Separation_axioms.sk Separation_axioms.svg
Errore leggeno la linea 'bs(104.602,759.898,0)\n'
Errore leggeno la linea 'bc(104.602,760.949,103.715,761.801,102.652,761.801,0)\n'
Errore leggeno la linea 'bc(101.555,761.801,100.699,760.93,100.699,759.898,0)\n'
Errore leggeno la linea 'bc(100.699,758.852,101.586,758,102.645,758,0)\n'
Errore leggeno la linea 'bc(103.742,758,104.598,758.871,104.598,759.898,0)\n'
Errore leggeno la linea 'bs(104.602,759.898,0)\n'
Errore leggeno la linea 'bs(109.551,764.52,0)\n'
Errore leggeno la linea 'bc(109.598,764.648,109.598,764.688,109.598,764.699,0)\n'
Errore leggeno la linea 'bc(109.598,764.809,109.508,764.898,109.398,764.898,0)\n'
Errore leggeno la linea 'bc(109.328,764.898,109.258,764.867,109.227,764.809,0)\n'
Errore leggeno la linea 'bs(105.746,755.281,0)\n'
Errore leggeno la linea 'bc(105.699,755.148,105.699,755.109,105.699,755.102,0)\n'
Errore leggeno la linea 'bc(105.699,754.988,105.789,754.898,105.898,754.898,0)\n'
Errore leggeno la linea 'bc(106.027,754.898,106.059,754.969,106.117,755.141,0)\n'
Errore leggeno la linea 'bs(109.551,764.52,0)\n'
Errore leggeno la linea 'bs(116.812,764.145,0)\n'
Errore leggeno la linea 'bs(110.789,764.145,0)\n'
Errore leggeno la linea 'bs(110.602,761.898,0)\n'
Errore leggeno la linea 'bs(110.801,761.898,0)\n'
Errore leggeno la linea 'bc(110.938,763.477,111.086,763.801,112.566,763.801,0)\n'
Errore leggeno la linea 'bc(112.742,763.801,112.996,763.801,113.094,763.777,0)\n'
Errore leggeno la linea 'bc(113.301,763.738,113.301,763.629,113.301,763.402,0)\n'
Errore leggeno la linea 'bs(113.301,758.176,0)\n'
Errore leggeno la linea 'bc(113.301,757.84,113.301,757.699,112.289,757.699,0)\n'
Errore leggeno la linea 'bs(111.902,757.699,0)\n'
Errore leggeno la linea 'bs(111.902,757.398,0)\n'
Errore leggeno la linea 'bc(112.312,757.43,113.328,757.43,113.785,757.43,0)\n'
Errore leggeno la linea 'bc(114.246,757.43,115.27,757.43,115.68,757.398,0)\n'
Errore leggeno la linea 'bs(115.68,757.699,0)\n'
Errore leggeno la linea 'bs(115.273,757.699,0)\n'
Errore leggeno la linea 'bc(114.199,757.699,114.199,757.84,114.199,758.176,0)\n'
Errore leggeno la linea 'bs(114.199,763.402,0)\n'
Errore leggeno la linea 'bc(114.199,763.602,114.199,763.738,114.387,763.777,0)\n'
Errore leggeno la linea 'bc(114.496,763.801,114.773,763.801,114.965,763.801,0)\n'
Errore leggeno la linea 'bc(116.504,763.801,116.66,763.477,116.801,761.898,0)\n'
Errore leggeno la linea 'bs(117,761.898,0)\n'
Errore leggeno la linea 'bs(116.812,764.145,0)\n'
Errore leggeno la linea 'bs(118.469,758.18,0)\n'
Errore leggeno la linea 'bc(118.469,758.742,118.516,759.254,118.781,759.672,0)\n'
Errore leggeno la linea 'bc(119.016,760.043,119.395,760.301,119.84,760.301,0)\n'
Errore leggeno la linea 'bc(120.047,760.301,120.324,760.254,120.465,760.098,0)\n'
Errore leggeno la linea 'bc(120.289,760.086,120.145,759.961,120.145,759.746,0)\n'
Errore leggeno la linea 'bc(120.145,759.562,120.262,759.398,120.473,759.398,0)\n'
Errore leggeno la linea 'bc(120.68,759.398,120.805,759.535,120.805,759.738,0)\n'
Errore leggeno la linea 'bc(120.805,760.141,120.512,760.5,119.824,760.5,0)\n'
Errore leggeno la linea 'bc(118.824,760.5,117.801,759.594,117.801,758.113,0)\n'
Errore leggeno la linea 'bc(117.801,756.336,118.648,755.801,119.414,755.801,0)\n'
Errore leggeno la linea 'bc(120.262,755.801,121,756.445,121,757.359,0)\n'
Errore leggeno la linea 'bc(121,758.242,120.297,758.898,119.484,758.898,0)\n'
Errore leggeno la linea 'bc(118.93,758.898,118.621,758.512,118.469,758.18,0)\n'
Errore leggeno la linea 'bs(118.469,758.18,0)\n'
Errore leggeno la linea 'bs(119.402,756.102,0)\n'
Errore leggeno la linea 'bc(119.062,756.102,118.801,756.297,118.656,756.594,0)\n'
Errore leggeno la linea 'bc(118.555,756.797,118.5,757.133,118.5,757.539,0)\n'
Errore leggeno la linea 'bc(118.5,758.191,118.895,758.699,119.438,758.699,0)\n'
Errore leggeno la linea 'bc(119.75,758.699,119.961,758.578,120.129,758.328,0)\n'
Errore leggeno la linea 'bc(120.293,758.07,120.301,757.789,120.301,757.398,0)\n'
Errore leggeno la linea 'bc(120.301,757.012,120.301,756.727,120.117,756.465,0)\n'
Errore leggeno la linea 'bc(119.953,756.23,119.734,756.102,119.402,756.102,0)\n'
Errore leggeno la linea 'bs(119.402,756.102,0)\n'
Errore leggeno la linea 'bs(77.2578,736.602,0)\n'
Errore leggeno la linea 'bs(78.9336,736.602,0)\n'
Errore leggeno la linea 'bc(80.1289,736.602,81.1992,737.418,81.1992,738.426,0)\n'
Errore leggeno la linea 'bc(81.1992,739.414,80.2148,740.301,78.8555,740.301,0)\n'
Errore leggeno la linea 'bs(75.3477,740.301,0)\n'
Errore leggeno la linea 'bs(75.3477,740,0)\n'
Errore leggeno la linea 'bs(75.5938,740,0)\n'
Errore leggeno la linea 'bc(76.3789,740,76.3984,739.891,76.3984,739.531,0)\n'
Errore leggeno la linea 'bs(76.3984,734.27,0)\n'
Errore leggeno la linea 'bc(76.3984,733.91,76.3789,733.801,75.5938,733.801,0)\n'
Errore leggeno la linea 'bs(75.3477,733.801,0)\n'
Errore leggeno la linea 'bs(75.3477,733.5,0)\n'
Errore leggeno la linea 'bc(75.6953,733.531,76.4297,733.531,76.8086,733.531,0)\n'
Errore leggeno la linea 'bc(77.1875,733.531,77.9297,733.531,78.2773,733.5,0)\n'
Errore leggeno la linea 'bs(78.2773,733.801,0)\n'
Errore leggeno la linea 'bs(78.0391,733.801,0)\n'
Errore leggeno la linea 'bc(77.2773,733.801,77.2578,733.906,77.2578,734.262,0)\n'
Errore leggeno la linea 'bs(77.2578,736.602,0)\n'
Errore leggeno la linea 'bs(77.3008,736.898,0)\n'
Errore leggeno la linea 'bs(77.3008,739.602,0)\n'
Errore leggeno la linea 'bc(77.3008,739.93,77.3203,740,77.7773,740,0)\n'
Errore leggeno la linea 'bs(78.6484,740,0)\n'
Errore leggeno la linea 'bc(80.1992,740,80.1992,738.938,80.1992,738.449,0)\n'
Errore leggeno la linea 'bc(80.1992,737.98,80.1992,736.898,78.6484,736.898,0)\n'
Errore leggeno la linea 'bs(77.3008,736.898,0)\n'
Errore leggeno la linea 'bs(84.1016,740.172,0)\n'
Errore leggeno la linea 'bc(84.0117,740.289,84.0039,740.301,83.8125,740.301,0)\n'
Errore leggeno la linea 'bs(82.1289,740.301,0)\n'
Errore leggeno la linea 'bs(82.1289,740,0)\n'
Errore leggeno la linea 'bs(82.4023,740,0)\n'
Errore leggeno la linea 'bc(82.543,740,82.7305,739.988,82.8711,739.98,0)\n'
Errore leggeno la linea 'bc(83.0898,739.949,83.1016,739.938,83.1016,739.75,0)\n'
Errore leggeno la linea 'bs(83.1016,734.539,0)\n'
Errore leggeno la linea 'bc(83.1016,734.27,83.1016,733.801,82.1289,733.801,0)\n'
Errore leggeno la linea 'bs(82.1289,733.5,0)\n'
Errore leggeno la linea 'bs(84.4609,733.5,0)\n'
Errore leggeno la linea 'bs(84.4609,733.801,0)\n'
Errore leggeno la linea 'bc(83.3984,733.801,83.3984,734.27,83.3984,734.535,0)\n'
Errore leggeno la linea 'bs(83.3984,739.727,0)\n'
Errore leggeno la linea 'bc(83.4492,739.676,83.4609,739.664,83.5,739.605,0)\n'
Errore leggeno la linea 'bs(87.5898,733.629,0)\n'
Errore leggeno la linea 'bc(87.6797,733.508,87.6875,733.496,87.7578,733.496,0)\n'
Errore leggeno la linea 'bc(87.8984,733.496,87.8984,733.566,87.8984,733.758,0)\n'
Errore leggeno la linea 'bs(87.8984,739.258,0)\n'
Errore leggeno la linea 'bc(87.8984,739.527,87.8984,739.996,88.9336,739.996,0)\n'
Errore leggeno la linea 'bs(88.9336,740.297,0)\n'
Errore leggeno la linea 'bs(86.6016,740.297,0)\n'
Errore leggeno la linea 'bs(86.6016,739.996,0)\n'
Errore leggeno la linea 'bc(87.6016,739.996,87.6016,739.527,87.6016,739.258,0)\n'
Errore leggeno la linea 'bs(87.6016,735.004,0)\n'
Errore leggeno la linea 'bs(84.1016,740.172,0)\n'
Errore leggeno la linea 'bs(93.6484,740.617,0)\n'
Errore leggeno la linea 'bc(93.6992,740.75,93.6992,740.789,93.6992,740.801,0)\n'
Errore leggeno la linea 'bc(93.6992,740.91,93.6094,741,93.4961,741,0)\n'
Errore leggeno la linea 'bc(93.4297,741,93.3555,740.969,93.3281,740.91,0)\n'
Errore leggeno la linea 'bs(89.8477,731.379,0)\n'
Errore leggeno la linea 'bc(89.7969,731.25,89.7969,731.211,89.7969,731.199,0)\n'
Errore leggeno la linea 'bc(89.7969,731.09,89.8867,731,89.9961,731,0)\n'
Errore leggeno la linea 'bc(90.1289,731,90.1602,731.07,90.2188,731.238,0)\n'
Errore leggeno la linea 'bs(93.6484,740.617,0)\n'
Errore leggeno la linea 'bs(98.6992,736,0)\n'
Errore leggeno la linea 'bc(98.6992,737.047,97.8125,737.898,96.7539,737.898,0)\n'
Errore leggeno la linea 'bc(95.6562,737.898,94.8008,737.027,94.8008,736,0)\n'
Errore leggeno la linea 'bc(94.8008,734.953,95.6875,734.102,96.7422,734.102,0)\n'
Errore leggeno la linea 'bc(97.8438,734.102,98.6992,734.973,98.6992,736,0)\n'
Errore leggeno la linea 'bs(98.6992,736,0)\n'
error in line 154
Traceback (most recent call last):
  File "/usr/lib/skencil/Sketch/../Plugins/Filters/skloader.py", line 469, in Load
    funcname, args, kwargs = parse(line)
SyntaxError: ')' expected
Traceback (most recent call last):
  File "/usr/bin/skconvert", line 55, in <module>
    main()
  File "/usr/bin/skconvert", line 52, in main
    convert(sys.argv[1], sys.argv[2])
  File "/usr/bin/skconvert", line 35, in convert
    doc = load.load_drawing(infile)
  File "/usr/lib/skencil/Sketch/Base/load.py", line 368, in load_drawing
    return load_drawing_from_file(file, filename)
  File "/usr/lib/skencil/Sketch/Base/load.py", line 343, in load_drawing_from_file
    doc = loader.Load()
  File "/usr/lib/skencil/Sketch/../Plugins/Filters/skloader.py", line 506, in Load
    raise SketchLoadError('%d:%s' % (num, value))
Sketch.skexceptions.SketchLoadError: 154:')' expected
$

ProblemType: Crash
Architecture: i386
DistroRelease: Ubuntu 9.04
ExecutablePath: /usr/lib/skencil/skconvert.py
InterpreterPath: /usr/bin/python2.6
NonfreeKernelModules: nvidia
Package: skencil 0.6.17-16build2
ProcCmdline: /usr/bin/python /usr/bin/skconvert Separation_axioms.sk Separation_axioms.svg
ProcEnviron:
 SHELL=/bin/bash
 PATH=(custom, user)
 LANG=it_IT.UTF-8
PythonArgs: ['/usr/bin/skconvert', 'Separation_axioms.sk', 'Separation_axioms.svg']
SourcePackage: skencil
Title: skconvert.py crashed with SketchLoadError in Load()
Uname: Linux 2.6.28-16-generic i686
UserGroups: adm admin audio cdrom dialout dip floppy fuse lpadmin plugdev pulse-access video

Revision history for this message
Fibonacci (fibonacci-prower) wrote :
visibility: private → public
Revision history for this message
Fibonacci (fibonacci-prower) wrote :

Here is the file which triggers the crash.
Also, this happens on both Jaunty and Karmic.

tags: removed: need-duplicate-check
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in skencil (Ubuntu):
status: New → Confirmed
B Bobo (yout-bobo123)
tags: added: skencil
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.