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 Crashing When Saving Documents
Type: crash Stage: resolved
Components: IDLE Versions: Python 3.2
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: carolyn.reed@talktalk.net, terry.reedy, vstinner
Priority: normal Keywords:

Created on 2013-11-04 09:55 by carolyn.reed@talktalk.net, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (9)
msg202103 - (view) Author: Carolyn Reed (carolyn.reed@talktalk.net) Date: 2013-11-04 09:55
The ICT teacher at the school I work at has reported that frequently students are experiencing their Python software crashing when they attempt to save files.  No error message is reported, the software just freezes.

They are using the IDLE GUI Python v 3.2.4 on Windows 7 Professional 32-bit.

Please advise.
msg202104 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2013-11-04 09:57
Could you try to collect more information, like an error message, or better a traceback?

Do you get a Windows popup like "program crashed"?

Try to run IDLE from the command line, not from the icon, to get the traceback.
msg202105 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2013-11-04 09:57
By the way, Python 3.2.4 is "old", you should try to reproduce your issue with a newer Python version, like Python 3.3.2.
msg202106 - (view) Author: Carolyn Reed (carolyn.reed@talktalk.net) Date: 2013-11-04 10:00
Unfortunately we are unable to run it from the command line - as we are a school this is locked down for students. 

There are no error messages at all, the program just freezes.
msg202107 - (view) Author: Carolyn Reed (carolyn.reed@talktalk.net) Date: 2013-11-04 10:01
Okay, we'll see if we can go to V 3.3.2  and see what difference this makes.
msg202110 - (view) Author: Carolyn Reed (carolyn.reed@talktalk.net) Date: 2013-11-04 10:13
There doesn't seem to be a Pygame version for 3.3 on the pygame webpage?
msg202451 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2013-11-09 00:22
Exactly what are people doing in the save dialog when they have problems? If they are saving to a standard path under Computer (on the left side bar), there should be no problem. If they are saving to some place listed under Libraries, such as Documents, then this is a known problem in 3.2 that was fixed in 3.3 by using a later version of Tk. See #12988 (and #14996). If this is the case, this issue is a duplicate and should be closed. Your description of Idle 'freezing', rather than closing, sounds like this is the same issue.

Ask the Pygame people to prepare a 3.3 binary and one for 3.4 as soon as it is released (or even now, for the upcoming beta).

---
When Idle closes, rather than freezing, you should be able to get error messages, without access to Command Prompt, by running the standard white-on-black, text-mode python.exe interpreter in interactive mode.

In the interpreter window, start Idle in a new window like so:
>>> import idlelib.idle

While using Idle, nothing should appear in in the original window, though there may be some TclError messages that can be ignored. When Idle stops, a prompt will appear in the original window. If Idle stops abnormally, a trackback and error message should appear before the prompt.

Note that the above only works on the first import. If you repeat
>>> import idlelib.idle
the code in idlelib.idle does not get rerun and Idle will not start. You have to exit and restart python.exe.

In order for Idle to run, python.exe has to be present somewhere. But if it has been hidden or somehow blocked, you can try the same thing  as above but from an Idle Shell window. In other words, start a second Idle Shell from the first. I just cannot guarantee that this will work as well. If it does, the import will work again after Cntl-F6, Shell/Restart Shell.
msg202452 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2013-11-09 01:04
> There doesn't seem to be a Pygame version for 3.3 on the pygame webpage?

Can't you try just to reproduce the crash in IDLE without installing pygame? (I don't know if pygame is available for Python 3.3.)
msg215497 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2014-04-04 08:04
I am closing this on the theory that the problem has been fixed by one of the many crash fixers since 3.2. There is certainly insufficient information to act on. Currently, a problem would have to be demonstrated with 3.4 (or possible 2.7).
History
Date User Action Args
2022-04-11 14:57:53adminsetgithub: 63690
2014-04-04 08:04:44terry.reedysetstatus: open -> closed
resolution: fixed
messages: + msg215497

stage: resolved
2013-11-09 01:04:29vstinnersetmessages: + msg202452
2013-11-09 00:22:31terry.reedysetnosy: + terry.reedy
messages: + msg202451
2013-11-04 10:13:36carolyn.reed@talktalk.netsetmessages: + msg202110
2013-11-04 10:01:38carolyn.reed@talktalk.netsetmessages: + msg202107
2013-11-04 10:00:43carolyn.reed@talktalk.netsetmessages: + msg202106
2013-11-04 09:57:50vstinnersetmessages: + msg202105
2013-11-04 09:57:06vstinnersetnosy: + vstinner
messages: + msg202104
2013-11-04 09:55:41carolyn.reed@talktalk.netcreate