This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Python/Tkinter crashes
Type: Stage:
Components: Tkinter Versions:
process
Status: closed Resolution: wont fix
Dependencies: Superseder:
Assigned To: Nosy List: lewisjwl, loewis
Priority: normal Keywords:

Created on 2002-01-08 21:17 by lewisjwl, last changed 2022-04-10 16:04 by admin. This issue is now closed.

Messages (3)
msg8657 - (view) Author: John W Lewis (lewisjwl) Date: 2002-01-08 21:17
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
msg8658 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2002-01-08 21:36
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.
msg8659 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2002-03-27 22:03
Logged In: YES 
user_id=21627

It seems that no further information will become available;
closing the report. 
History
Date User Action Args
2022-04-10 16:04:51adminsetgithub: 35888
2002-01-08 21:17:30lewisjwlcreate