Wish crashes when creating a png image using either Img or
tkpng. It seems to be independent of the image package
used which points to Tk's internal image code. It only
happens when a large application is running. I have only
tested my Coccinella: http://prdownloads.sourceforge.net/
coccinella/Coccinella-0.95.9Src.tar.gz?download
It happens on both linux and windows XP. To reproduce:
wish
source Coccinella.tcl
image create photo -file pick-png-file.png
*# crash
Coccinella 0.95.9 uses Img on linux to load pngs, but you
can also try to use tkpng from : http://www.muonics.com/
FreeStuff/TkPNG/
Since it is indepemdent of the package used I tend to believe
it is internal to Tk.
Mats
Logged In: YES
user_id=72656
Can you post that png as an attachment? Does that single
file work correctly in raw Tk + Img/TkPNG? Also, what
happens if you add -format png? I have found that Tk's
"auto-sense" code for image formats to be a problem in that
some auto-sensers do have the bug when trying to grok some
image type they never could, but forcing the right image
type directly works.
Logged In: YES
user_id=108900
Vanilla Tk works fine.
Using '-format png' doesn't help. I see now that both Img and tkpng
use -format png, so I can't really tell which of them that loads the
file. On Windows using my QuickTimeTcl:
image create photo -file some-image.png -format quicktimepng
works where -format png fails. But I don't remember if I use the
latest photo APIs in QuickTimeTcl.
Using a tclkit 8.4.9 on linux works.
Mats
Logged In: YES
user_id=108900
I meant vanilla Tk + Img/TkPNG of course.
Logged In: YES
user_id=79902
Is a stack trace (from a debug build, of course) available?
Logged In: NO
Building Tk on mac failed with:
/usr/bin/libtool: unknown option character 'u' in: -
unexported_symbols
I will give it a new try on my linux box later.
Mats
Logged In: YES
user_id=108900
Built Tcl/Tk from 8.4.11 release using --enable-symbols on linux.
Now it doesn't crash anymore, neither if I run from gdb wish
or do wish directly. However, running the ActiveState distro 8.4.11
core it crashes both on linux and Windows XP. Weird!
Mats
Logged In: YES
user_id=108900
Problem localized to Img shipped with ActiveTcl 8.4.10 and 8.4.11.
If I just remove /usr/local/ActiveTcl/lib/Img everything works just
fine. Add it back and it crashes. My app has pngtcl 1.0 bundled but
in the cases above it picks up pngtcl 1.2.6 if I read the pkgIndex
files correctly.
This has now been moved to: http://sourceforge.net/tracker/
index.php?func=detail&aid=1294387&group_id=52039&atid=465492
which is tkimg bug reporter. Perhaps this should be closed?
Mats
Logged In: YES
user_id=108900
Since this issue has been tracked to Img and the bug report moved
there I take the liberty of closing this one.
Mats