[Python-bugs-list] [ python-Bugs-501022 ] Python/Tkinter crashes

noreply@sourceforge.net noreply@sourceforge.net
Wed, 27 Mar 2002 14:03:57 -0800


Bugs item #501022, was opened at 2002-01-08 22:17
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=501022&group_id=5470

Category: Tkinter
Group: Python 2.1.1
>Status: Closed
>Resolution: Wont Fix
Priority: 5
Submitted By: John W Lewis (lewisjwl)
Assigned to: Nobody/Anonymous (nobody)
Summary: Python/Tkinter crashes

Initial Comment:
Good morning

This issue was reported earlier, but I could not provide
a concrete example.

The following little program crashes under Windows 2000 Pro, but not on UNIX.
My PC has 2GB of memory and the program is using much less than that.
It appears to be exhausting some fixed resource (a heap?).

Microsoft will debug the problem if they can analyze the dump file 
to isolate the specific system calls which exhaust that resource.
Right now all they can tell is that the fault occurs somewhere in Tkinter.
They have asked me to provide the following:
* Dr Watson dump file
* MPS profile
* perfmon log

How should I proceed? How can I get a PC version of python
with a full symbol table for debugging?

Regards
John Lewis
jlewis9@csc.com
443-562-4945 cell


-----------------------------------------------------------------------------------
## PROGRAM: crash.py
## HISTORY: jw lewis, 1/8/01
## OBJECTIVE
##   Write a program which causes Tkinter to fail abnormally in Windows

from Tkinter import *

root = Tk()

log = open("log.txt","w")

## Force crash by generating too many PhotoImage objects
images = []
for i in xrange(0,10000):
    if i>9900:
        log.write( str(i)+"\n" )
        log.flush()
    image = PhotoImage()
    image.put("blue")
    images.append( image )
-----------------------------------------------------------------------------------

Resulting log.txt file

9901
9902
9903
...
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
CRASH

----------------------------------------------------------------------

>Comment By: Martin v. Löwis (loewis)
Date: 2002-03-27 23:03

Message:
Logged In: YES 
user_id=21627

It seems that no further information will become available;
closing the report. 

----------------------------------------------------------------------

Comment By: Martin v. Löwis (loewis)
Date: 2002-01-08 22:36

Message:
Logged In: YES 
user_id=21627

As I mentioned before, my best guess is that it runs out of
bitmap handles.

Anyway, download the Python source code, and read the
document in PCbuild/readme.txt to find out how to generate
debugging information. You may want to build tcl/tk with
debugging as well, but I don't know how to do that.

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=501022&group_id=5470