Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 274689 - media-gfx/skencil-0.6.18_pre20080519{,-r1} crashes
Summary: media-gfx/skencil-0.6.18_pre20080519{,-r1} crashes
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Hanno Böck
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-19 10:26 UTC by Nikoli
Modified: 2010-11-30 03:10 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nikoli 2009-06-19 10:26:20 UTC
skshow, skconvert work fine, but skencil crashes:

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

Reproducible: Always




Portage 2.1.6.13 (default/linux/amd64/2008.0/desktop, gcc-4.3.2, glibc-2.8_p20080602-r1, 2.6.28-gentoo-r5 x86_64)                                             
=================================================================                                                                                             
Timestamp of tree: Thu, 18 Jun 2009 23:45:02 +0000                                                                                                            
app-shells/bash:     3.2_p39                                                                                                                                  
dev-lang/python:     2.5.4-r2                                                                                                                                 
dev-python/pycrypto: 2.0.1-r8                                                                                                                                 
dev-util/cmake:      2.6.4                                                                                                                                    
sys-apps/baselayout: 2.0.1                                                                                                                                    
sys-apps/openrc:     0.4.3-r3                                                                                                                                 
sys-apps/sandbox:    1.6-r2                                                                                                                                   
sys-devel/autoconf:  2.13, 2.63                                                                                                                               
sys-devel/automake:  1.5, 1.7.9-r1, 1.9.6-r2, 1.10.2                                                                                                          
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=core2 -O2 -pipe"
EMERGE_DEFAULT_OPTS="--with-bdeps=y"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
LANG="ru_RU.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="ru en"
MAKEOPTS="-j4"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="7zip X a52 aac acl acpi akonadi alsa amd64 amr amrnb amrwb atm bash-completion berkdb bluetooth bzip2 cairo cddb cdparanoia cdr chroot cli consolekit cracklib crypt css cups dbus divx djvu dri dts dv dvd dvdr dvdread emboss encode evo exif faac faad ffmpeg firefox flac fontconfig fortran gd gdbm geoip gif gimp glitz gmp gnutls gphoto2 gpm graphviz gstreamer gtk hal handbook iconv id3tag idn ieee1394 imagemagick imap imlib ipv6 isdnlog jbig jpeg jpeg2k kde kdeenablefinal kipi ladspa lame laptop lcms libnotify libsamplerate libwww lm_sensors lzma lzo mad matroska md5sum midi mikmod mmx mmxext mng mp3 mp4 mpeg mplayer mudflap multilib musepack musicbrainz ncurses nls nptl nptlonly nsplugin ntfs nvidia obex ogg openexr opengl openmp pam pcre pdf perl pg-intdatetime phonon plasma png ppds pppd python qt3support qt4 quicktime rar readline reflection reiserfs sasl scanner schroedinger semantic-desktop session slang smp sndfile socks5 speex spell spl sqlite sse sse2 sse3 ssl ssse3 startup-notification svg symlink sysfs tcpd theora threads tiff truetype tta unicode usb userlocales v4l v4l2 vcd vorbis wavpack wifi wma wmf x264 xcb xcomposite xface xine xml xmp xorg xpm xulrunner xv xvid zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru en" USERLAND="GNU" VIDEO_CARDS="nv nvidia vesa"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Wormo (RETIRED) gentoo-dev 2009-06-24 06:35:36 UTC
I think skencil project is inactive and not keeping up with changes in python, but there is a fork called sK1 that is still being maintained and has a fix for this problem
http://sk1project.org/modules.php?name=Products&product=sk1&op=download

Assigning to skencil maintainer, in case he wants to migrate to the new sK1 fork (if not, you might want to open another bug about creating sK1 ebuilds...)
Comment 2 Bob Johnson 2009-07-02 16:18:00 UTC
(In reply to comment #1)
> I think skencil project is inactive and not keeping up with changes in python,
> but there is a fork called sK1 that is still being maintained and has a fix for
> this problem
> http://sk1project.org/modules.php?name=Products&product=sk1&op=download
> 
> Assigning to skencil maintainer, in case he wants to migrate to the new sK1
> fork (if not, you might want to open another bug about creating sK1 ebuilds...)
> 

Unfortunately the sK1 project doesn't seem to be any more stable than skencil. I'd remove skencil from my system, but inkscape has it as a postscript run-time dependency, apparently requring the skconvert executable in skencil for importing certain file formats. (skconvert doesn't seem to run either as far as I can tell.) Removing the run-time dependency from inkscape and removing this package from portage altogether seems to be the long-term fix.

Comment 3 Carl Michal 2009-08-26 22:42:02 UTC
There is a fix for this bug here:

https://bugs.launchpad.net/ubuntu/+source/skencil/+bug/361636

the patch is:

diff -Naur ./skencil-0.6.17/Sketch/UI/tkext.py ./skencil-0.6.17.patch/Sketch/UI/tkext.py
--- ./skencil-0.6.17/Sketch/UI/tkext.py	2002-04-05 01:47:30.000000000 +0400
+++ ./skencil-0.6.17.patch/Sketch/UI/tkext.py	2009-07-31 09:46:43.000000000 +0400
@@ -364,7 +364,7 @@
 
     def RebuildMenu(self):
 	if self.entries is not None:
-	    self.menu.delete(0, END)
+	    self.menu.tk.call(self.menu._w, 'delete', 0, END)
 	if self.rebuild_func is not None:
 	    try:
 		self.entries = self.rebuild_func()
@@ -375,7 +375,7 @@
 
     def SetEntries(self, entries):
 	if self.entries is not None:
-	    self.menu.delete(0, END)
+	    self.menu.tk.call(self.menu._w, 'delete', 0, END)
 	    for entry in self.entries:
 		entry.clean_up()
 	self.entries = entries
Comment 4 Hanno Böck gentoo-dev 2010-11-30 03:10:53 UTC
fixed with update to 1.0 alpha