skencil.py crashed with TypeError in delete()

Bug #277363 reported by Niki Guldbrand
128
This bug affects 12 people
Affects Status Importance Assigned to Milestone
skencil (Debian)
Fix Released
Unknown
skencil (Ubuntu)
Fix Released
High
Unassigned

Bug Description

Binary package hint: skencil

Just installed it, and then tried to start it up.

ProblemType: Crash
Architecture: amd64
DistroRelease: Ubuntu 8.10
ExecutablePath: /usr/lib/skencil/skencil.py
InterpreterPath: /usr/bin/python2.5
NonfreeKernelModules: nvidia
Package: skencil 0.6.17-16
ProcAttrCurrent: unconfined
ProcCmdline: /usr/bin/python /usr/bin/skencil
ProcEnviron:
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=en_DK.UTF-8
 SHELL=/bin/bash
PythonArgs: ['/usr/bin/skencil']
SourcePackage: skencil
Title: skencil.py crashed with TypeError in delete()
Uname: Linux 2.6.27-4-generic x86_64
UserGroups: adm admin audio cdrom dialout dip floppy fuse lpadmin plugdev video

Related branches

Revision history for this message
Niki Guldbrand (niki-guldbrand-net) wrote :
Revision history for this message
Lionel Le Folgoc (mrpouit) wrote :

This seems to be a bug in the intrepid python package, see Bug #304556.

Changed in skencil:
importance: Undecided → High
status: New → Confirmed
Revision history for this message
PlaidRadish (jeff-plaidradish) wrote :

additional confirmed

Revision history for this message
Martin Visser (martinvisser99) wrote :

also confirmed in 9.04 Jaunty

skencil
shared memory images supported
Traceback (most recent call last):
  File "/usr/bin/skencil", line 34, in <module>
    Sketch.main.main()
  File "/usr/lib/skencil/Sketch/Base/main.py", line 148, in main
    run_script = options.run_script)
  File "/usr/lib/skencil/Sketch/UI/skapp.py", line 183, in __init__
    self.build_window()
  File "/usr/lib/skencil/Sketch/UI/skapp.py", line 223, in build_window
    self.run_script)
  File "/usr/lib/skencil/Sketch/UI/mainwindow.py", line 98, in __init__
    self.build_menu()
  File "/usr/lib/skencil/Sketch/UI/mainwindow.py", line 901, in build_menu
    self.update_mru_files()
  File "/usr/lib/skencil/Sketch/UI/mainwindow.py", line 380, in update_mru_files
    self.file_menu.RebuildMenu()
  File "/usr/lib/skencil/Sketch/UI/tkext.py", line 367, in RebuildMenu
    self.menu.delete(0, END)
  File "/usr/lib/python2.6/lib-tk/Tkinter.py", line 2678, in delete
    self.deletecommand(c)
  File "/usr/lib/python2.6/lib-tk/Tkinter.py", line 361, in deletecommand
    self.tk.deletecommand(name)
TclError: can't delete Tcl command

Revision history for this message
Sciko (tempsciko-gmail) wrote :

Patch from Rassian Ubuntu forum.
Check in Ubuntu 9.04.

Revision history for this message
Nick Ellery (nick.ellery) wrote :

I'm not able to reproduce this crash with the latest version of skencil. Can you please try to reproduce it with version 0.6.17-17? Thanks.

Changed in skencil (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Murz (murznn) wrote :

OS: Kubuntu Jaunty 9.04 with KDE 4.3 from PPA
Package: skencil Version: 0.6.17-16build2
Linux axe 2.6.28-15-generic #49-Ubuntu SMP Tue Aug 18 19:25:34 UTC 2009 x86_64 GNU/Linux

Same error:
$ skencil
shared memory images supported
Traceback (most recent call last):
  File "/usr/bin/skencil", line 34, in <module>
    Sketch.main.main()
  File "/usr/lib/skencil/Sketch/Base/main.py", line 148, in main
    run_script = options.run_script)
  File "/usr/lib/skencil/Sketch/UI/skapp.py", line 183, in __init__
    self.build_window()
  File "/usr/lib/skencil/Sketch/UI/skapp.py", line 223, in build_window
    self.run_script)
  File "/usr/lib/skencil/Sketch/UI/mainwindow.py", line 98, in __init__
    self.build_menu()
  File "/usr/lib/skencil/Sketch/UI/mainwindow.py", line 901, in build_menu
    self.update_mru_files()
  File "/usr/lib/skencil/Sketch/UI/mainwindow.py", line 380, in update_mru_files
    self.file_menu.RebuildMenu()
  File "/usr/lib/skencil/Sketch/UI/tkext.py", line 367, in RebuildMenu
    self.menu.delete(0, END)
  File "/usr/lib/python2.6/lib-tk/Tkinter.py", line 2678, in delete
    self.deletecommand(c)
  File "/usr/lib/python2.6/lib-tk/Tkinter.py", line 361, in deletecommand
    self.tk.deletecommand(name)
TclError: can't delete Tcl command

Revision history for this message
Murz (murznn) wrote :

Where can I get 0.6.17-17 deb for Jaunty?

Revision history for this message
Nick Ellery (nick.ellery) wrote :
Revision history for this message
Murz (murznn) wrote :

I have the AMD64 system, I need another deb. I have found it nearly this link, but all of them is for Karmic, I can't install it on Jaunty:
$ sudo dpkg -i ./skencil_0.6.17-17_amd64.deb
(Reading database ... 215930 files and directories currently installed.)
Preparing to replace skencil 0.6.17-16build2 (using ./skencil_0.6.17-17_amd64.deb) ...
Unpacking replacement skencil ...
dpkg: dependency problems prevent configuration of skencil:
 skencil depends on python-support (>= 0.90.0); however:
  Version of python-support on system is 0.8.7ubuntu4.
dpkg: error processing skencil (--install):
 dependency problems - leaving unconfigured
Processing triggers for menu ...
Processing triggers for man-db ...
Errors were encountered while processing:
 skencil

And I can't found -17 version for Jaunty in Launchpad: https://launchpad.net/ubuntu/+source/skencil

Revision history for this message
max (maxim-s-barabash) wrote :

 skencil (0.6.17-17) unstable; urgency=low
 ...

   * Adding patch from Octavian Voicu <email address hidden> to catch tcl
     delete command (Closes: #498223, #524554).
...

Is a workaround patch and does not solve the problem with the menu
patch offers Sciko is working.

Revision history for this message
Batuhan Osmanoglu (batuhan-osmanoglu) wrote :

Hi All,
I just had a chance to test. I couldn't find skencil.0.6.17-17 in Jaunty repository either so I downloaded the package from the link Nick provided:
https://launchpad.net/ubuntu/+source/skencil/0.6.17-17/+build/1135758/+files/skencil_0.6.17-17_i386.deb
It is dependent on python-support>0.90. I couldn't find anything above 0.87 in Jaunty(main,proposed) so I downloaded the latest version for Karmic from:
http://mirrors.kernel.org/ubuntu/pool/main/p/python-support/python-support_1.0.3ubuntu1_all.deb
After installing with dpkg I got 1 error message:
~/Desktop$ sudo dpkg -i python-support_1.0.3ubuntu1_all.deb skencil_0.6.17-17_i386.deb
...
Setting up python-support (1.0.3ubuntu1) ...
/usr/lib/pymodules/python2.6/sqlalchemy/ext/activemapper.py:262: SyntaxWarning: assertion is always true, perhaps remove parentheses?
  assert(version_id_col_object is not None, "version_id_col (%s) does not exist." % version_id_col)
Processing triggers for man-db ...
...
Now I can run skencil. GUI comes up. As max wrote there must be a bug with the menu bar. When I run skencil from the terminal I still get the following error messages but it does not crash.

~/Desktop$ skencil
shared memory images supported
Delete failed (bug #524554)
Traceback (most recent call last):
  File "/usr/lib/skencil/Sketch/UI/tkext.py", line 368, in RebuildMenu
    self.menu.delete(0, END)
  File "/usr/lib/python2.6/lib-tk/Tkinter.py", line 2678, in delete
    self.deletecommand(c)
  File "/usr/lib/python2.6/lib-tk/Tkinter.py", line 361, in deletecommand
    self.tk.deletecommand(name)
TclError: can't delete Tcl command
Delete failed (bug #524554)
Traceback (most recent call last):
  File "/usr/lib/skencil/Sketch/UI/tkext.py", line 368, in RebuildMenu
    self.menu.delete(0, END)
  File "/usr/lib/python2.6/lib-tk/Tkinter.py", line 2678, in delete
    self.deletecommand(c)
  File "/usr/lib/python2.6/lib-tk/Tkinter.py", line 361, in deletecommand
    self.tk.deletecommand(name)
TclError: can't delete Tcl command
/usr/lib/python2.6/lib-tk/Tkinter.py:1149: DeprecationWarning: catching of string exceptions is deprecated

Revision history for this message
Fibonacci (fibonacci-prower) wrote :

I can confirm that this also happens on Karmic as batu says. The program doesn't crash, but it does print the following messages:
shared memory images supported
Delete failed (bug #524554)
Traceback (most recent call last):
  File "/usr/lib/skencil/Sketch/UI/tkext.py", line 368, in RebuildMenu
    self.menu.delete(0, END)
  File "/usr/lib/python2.6/lib-tk/Tkinter.py", line 2678, in delete
    self.deletecommand(c)
  File "/usr/lib/python2.6/lib-tk/Tkinter.py", line 361, in deletecommand
    self.tk.deletecommand(name)
TclError: can't delete Tcl command
Delete failed (bug #524554)
Traceback (most recent call last):
  File "/usr/lib/skencil/Sketch/UI/tkext.py", line 368, in RebuildMenu
    self.menu.delete(0, END)
  File "/usr/lib/python2.6/lib-tk/Tkinter.py", line 2678, in delete
    self.deletecommand(c)
  File "/usr/lib/python2.6/lib-tk/Tkinter.py", line 361, in deletecommand
    self.tk.deletecommand(name)
TclError: can't delete Tcl command
/usr/lib/python2.6/lib-tk/Tkinter.py:1149: DeprecationWarning: catching of string exceptions is deprecated
  except TclError: pass

Revision history for this message
David Futcher (bobbo) wrote :

Can reproduce in Maverick Alpha One. Attaching the output I get when running Skencil 0.6.17-17 (Maverick) as it's too long to post all of it in a comment.

Revision history for this message
David Stansby (dstansby-deactivatedaccount) wrote :

Setting as confirmed as per comment #14

tags: added: patch
Changed in skencil (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package skencil - 0.6.17-17ubuntu1

---------------
skencil (0.6.17-17ubuntu1) natty; urgency=low

  * debian/patches/fix-delete-crash.patch:
    - Patch from Maxim S Barabash to stop the File menu from being
      duplicated thrice. LP: #277363
 -- Michael Terry <email address hidden> Wed, 02 Feb 2011 10:00:43 -0500

Changed in skencil (Ubuntu):
status: Confirmed → Fix Released
Changed in skencil (Debian):
status: Unknown → Fix Released
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.