Re: [Image-SIG] Help: Converting PIL to Tkinter image objects crashes python

2009-07-13 Thread Tom Baldwin
Hello everyone,

Today I tested for this bug having downgraded my Tcl/Tk from 8.5 to 8.4. I
also downgraded PIL back to 1.1.6. My reproducer script still finds the bug
on both python 2.5 and 2.6 interpreters, displaying error message:

alloc: invalid block: 0x67dfa4: 60 0 0
Abort trap

as before.

I think this establishes that my problem is not a Tcl compatibility issue of
8.5 vs. 8.4. If I had to guess, I would say that it is a bug in the ImageTk
library, but the affected functionality is so fundamental (displaying PIL
images in a window) that I have to imagine that this would already be known,
if so.

Has anyone seen this error message when working with PIL, and knows what it
means?

TkB

On Thu, Jul 9, 2009 at 4:31 PM, Tom Baldwin tbald...@uoregon.edu wrote:

 Thanks, Fredrik.

 If 1.1.6 is from 2006 then trying 1.1.7 code sounds like a very good idea.
 I wasn't sure how to set up the individual tkImaging module which you
 linked, so I downloaded and built the entire recent beta release, 1.1.7b1.

 I confirmed that python is seeing the new version:
 import Image
 Image.VERSION
 '1.1.7b1'

 However, my reproducer.py test script still fails in the same way as
 before.

 Whatever is going on must have slipped past any of the updates in the beta
 release, I guess.

 TkB


 On Thu, Jul 9, 2009 at 3:44 PM, Fredrik Lundh fred...@pythonware.comwrote:

 On Thu, Jul 9, 2009 at 11:50 PM, Tom Baldwintbald...@uoregon.edu wrote:

  A python-help volunteer suggested downgrading my Tcl/Tk installation
 from
  8.5 to 8.4, which seems a little weird, since 8.5 has been stable since
  December 2007.

 1.1.6 was released in december 2006, and core Python didn't switch to
 8.5 until release 2.6 in late 2008 (iirc).

  (Also, downgrading things using Macports is so complicated
  that I haven't succeeding in doing it yet.) He directed me to this list
 for
  more knowledgeable help.
 
  Can anyone with PIL familiarity tell me what might be causing this
 error? Or
  say if there is any reason to believe that Tcl 8.4 might be more
 compatible?

 Instead of downgrading the Tcl/Tk install, you could try updating to
 the 1.1.7 trunk version of Tk/tkImaging.c module, available from:

http://hg.effbot.org/pil-2009-raclette/raw/tip/Tk/tkImaging.c

 There's been a couple of tweaks related to 8.4/8.5 compatibility; not
 sure if they affect your specific case, but since you're building from
 source, it shouldn't be that hard for you test this.

 /F



___
Image-SIG maillist  -  Image-SIG@python.org
http://mail.python.org/mailman/listinfo/image-sig


Re: [Image-SIG] Help: Converting PIL to Tkinter image objects crashes python

2009-07-09 Thread Fredrik Lundh
On Thu, Jul 9, 2009 at 11:50 PM, Tom Baldwintbald...@uoregon.edu wrote:

 A python-help volunteer suggested downgrading my Tcl/Tk installation from
 8.5 to 8.4, which seems a little weird, since 8.5 has been stable since
 December 2007.

1.1.6 was released in december 2006, and core Python didn't switch to
8.5 until release 2.6 in late 2008 (iirc).

 (Also, downgrading things using Macports is so complicated
 that I haven't succeeding in doing it yet.) He directed me to this list for
 more knowledgeable help.

 Can anyone with PIL familiarity tell me what might be causing this error? Or
 say if there is any reason to believe that Tcl 8.4 might be more compatible?

Instead of downgrading the Tcl/Tk install, you could try updating to
the 1.1.7 trunk version of Tk/tkImaging.c module, available from:

http://hg.effbot.org/pil-2009-raclette/raw/tip/Tk/tkImaging.c

There's been a couple of tweaks related to 8.4/8.5 compatibility; not
sure if they affect your specific case, but since you're building from
source, it shouldn't be that hard for you test this.

/F
___
Image-SIG maillist  -  Image-SIG@python.org
http://mail.python.org/mailman/listinfo/image-sig