Menu

#1963 Crash in image code

obsolete: 8.4.11
closed
9
2005-09-22
2005-09-14
No

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

Discussion

  • Jeffrey Hobbs

    Jeffrey Hobbs - 2005-09-14
    • priority: 5 --> 9
    • assigned_to: nobody --> hobbs
     
  • Jeffrey Hobbs

    Jeffrey Hobbs - 2005-09-14

    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.

     
  • Mats Bengtsson

    Mats Bengtsson - 2005-09-15

    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

     
  • Mats Bengtsson

    Mats Bengtsson - 2005-09-15
     
  • Mats Bengtsson

    Mats Bengtsson - 2005-09-16

    Logged In: YES
    user_id=108900

    I meant vanilla Tk + Img/TkPNG of course.

     
  • Donal K. Fellows

    Logged In: YES
    user_id=79902

    Is a stack trace (from a debug build, of course) available?

     
  • Nobody/Anonymous

    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

     
  • Mats Bengtsson

    Mats Bengtsson - 2005-09-17

    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

     
  • Mats Bengtsson

    Mats Bengtsson - 2005-09-18

    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

     
  • Mats Bengtsson

    Mats Bengtsson - 2005-09-22
    • status: open --> closed
     
  • Mats Bengtsson

    Mats Bengtsson - 2005-09-22

    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