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

Tom Baldwin tbaldwin at uoregon.edu
Fri Jul 10 22:50:46 CEST 2009


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 <tbaldwin at 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 <fredrik at pythonware.com>wrote:
>
>> On Thu, Jul 9, 2009 at 11:50 PM, Tom Baldwin<tbaldwin at 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>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/image-sig/attachments/20090710/9c76cb2d/attachment.htm>


More information about the Image-SIG mailing list