[issue15853] IDLE crashes selecting Preferences menu with OS X ActiveState Tcl/Tk 8.5.12.1

2012-12-26 Thread Ned Deily

Ned Deily added the comment:

ActiveTcl 8.5.13 has now been released and, per ActiveState's usual practice of 
making only the current release and its immediate predecessor publicly 
downloadable, the ActiveTcl 8.5.11.1 release is no longer available at the URL 
above, as Vance noted.  8.5.13 includes fixes for other problems including 
another critical problem introduced in 8.5.12.x (Issue15574).  So, until the 
Python 3.3.1, 3.2.4, and 2.7.4 releases are available (which will include the 
workarounds for this issue) and if you do not have access to 8.5.11.1, one 
option is to patch IDLE yourself.

To assist in this, I have uploaded a shell script which will attempt to patch 
the python.org 3.3.0, 3.2.3, and 2.7.3 versions of IDLE if they are installed.  
While I've tried to make it reasonably foolproof, examine and use at your own 
risk.  Download the attached file from this issue, patch_idle_issue_15853.sh, 
and run it in a terminal session.  It uses sudo so, on most systems, 
administrator access will be required.

See http://www.python.org/download/mac/tcltk/ for more information.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15853] IDLE crashes selecting Preferences menu with OS X ActiveState Tcl/Tk 8.5.12.1

2012-12-26 Thread Ned Deily

Changes by Ned Deily :


Added file: http://bugs.python.org/file28447/patch_idle_issue_15853.sh

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15853] IDLE crashes selecting Preferences menu with OS X ActiveState Tcl/Tk 8.5.12.1

2012-12-22 Thread Vance Maverick

Vance Maverick added the comment:

FYI, http://downloads.activestate.com/ActiveTcl/releases/8.5.11.1/ is no longer 
online, so that workaround is no longer possible.

--
nosy: +Vance.Maverick

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15853] IDLE crashes selecting Preferences menu with OS X ActiveState Tcl/Tk 8.5.12.1

2012-10-22 Thread Ned Deily

Ned Deily added the comment:

Thanks for everyone's help on this.  To summarize, opening IDLE's Preferences 
menu when Python is dynamically linking to ActiveTcl 8.5.12.1 (at this writing, 
the most recent version) causes Tk to crash.  The committed patches here avoid 
the crash by changing Tk calls from IDLE.  These fixes will be released in the 
next set of maintenance releases: 2.7.4, 3.2.4, 3.3.1, and in 3.4.0.  Until 
they are installed, another workaround is to revert to an earlier version of 
ActiveTcl; 8.5.11.1 is recommended:

http://downloads.activestate.com/ActiveTcl/releases/8.5.11.1/

As always, http://www.python.org/download/mac/tcltk/ will be updated with 
current recommendations.

--
resolution:  -> fixed
stage: patch review -> committed/rejected
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15853] IDLE crashes selecting Preferences menu with OS X ActiveState Tcl/Tk 8.5.12.1

2012-10-22 Thread Roundup Robot

Roundup Robot added the comment:

New changeset d089b8fb0f56 by Ned Deily in branch '2.7':
Issue #15853: Prevent IDLE crash on OS X when opening Preferences menu
http://hg.python.org/cpython/rev/d089b8fb0f56

New changeset a3d755eaf5fa by Ned Deily in branch '3.2':
Issue #15853: Prevent IDLE crash on OS X when opening Preferences menu
http://hg.python.org/cpython/rev/a3d755eaf5fa

New changeset 36e7da8d3059 by Ned Deily in branch '3.3':
Issue #15853: merge 3.2 -> 3.3
http://hg.python.org/cpython/rev/36e7da8d3059

New changeset 8f61d580aca6 by Ned Deily in branch 'default':
Issue #15853: merge 3.3 -> default
http://hg.python.org/cpython/rev/8f61d580aca6

--
nosy: +python-dev

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15853] IDLE crashes selecting Preferences menu with OS X ActiveState Tcl/Tk 8.5.12.1

2012-10-22 Thread Roger Serwy

Roger Serwy added the comment:

The patch works with 3.3.0 and 2.7.3 on Windows 7.

+1

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15853] IDLE crashes selecting Preferences menu with OS X ActiveState Tcl/Tk 8.5.12.1

2012-10-20 Thread Pedro Meirelles

Pedro Meirelles added the comment:

Thank you very much, Ned!

It worked, awesome!

All the best

2012/10/20 Ned Deily 

>
> Ned Deily added the comment:
>
> Pedro, try installing the older ActiveTcl 8.5.11.1 from here:
>
> http://downloads.activestate.com/ActiveTcl/releases/8.5.11.1/
>
> It is not perfect but does not have the Preferences regression and does
> have fixes for crashes when typing composite input characters.
>
> --
>
> ___
> Python tracker 
> 
> ___
>

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15853] IDLE crashes selecting Preferences menu with OS X ActiveState Tcl/Tk 8.5.12.1

2012-10-20 Thread Ned Deily

Ned Deily added the comment:

Pedro, try installing the older ActiveTcl 8.5.11.1 from here:
 
http://downloads.activestate.com/ActiveTcl/releases/8.5.11.1/

It is not perfect but does not have the Preferences regression and does have 
fixes for crashes when typing composite input characters.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15853] IDLE crashes selecting Preferences menu with OS X ActiveState Tcl/Tk 8.5.12.1

2012-10-20 Thread Pedro Meirelles

Pedro Meirelles added the comment:

Hello,

I am biologist I am just starting to learn Python.

I have a mac and I am using OS X 10.8.2. I have installed Python 2.7.3 and when 
I try to copy and paste (use command) or go to preferences IDLE crashes. I did 
what Ned Deily said in msg169739:

sudo mv /Library/Frameworks/Tk.framework /Library/Frameworks/Tk_disabled

It worked. Now I can copy and paste in IDLE. But when I type quots (" or ') it 
crashes. 

What you think I can do to work in IDLE using both command and typing " and '?

Sorry if my question is too elementary.

I appreciate a lot all the comments and answers. It is very useful and 
enlightening.

Kind regards

--
nosy: +pedrommeirelles

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15853] IDLE crashes selecting Preferences menu with OS X ActiveState Tcl/Tk 8.5.12.1

2012-10-19 Thread Ned Deily

Ned Deily added the comment:

The attached patch applies cleanly to default, 3.3, 3.2, and 2.7.  It appears 
to prevent the Tk crash observed with ActiveTcl 8.5.12.1 with all of them and I 
did not observe regressions when briefly tested on OS X with older versions of 
Tk 8.5 or Tk 8.4 nor on Linux with X11 Tk 8.5.  It still needs to be tested on 
Windows.

--
stage: needs patch -> patch review
Added file: http://bugs.python.org/file27617/issue15853.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15853] IDLE crashes selecting Preferences menu with OS X ActiveState Tcl/Tk 8.5.12.1

2012-10-16 Thread Ned Deily

Ned Deily added the comment:

I'm still not keen on working around a Tk crash by modifying IDLE especially 
when we know exactly which Tk change set caused the regression.  On the other 
hand, I sympathize with Kevin regarding the complexity of trying to track down 
and fix things involving event loops spanning Cocoa, Tk, Python, and IDLE and I 
do appreciate the effort you've put into debugging this and other Tk problems.  
Thank you, Kevin.

So, if we're going to take the expedient approach, we need to come up with 
proper patches for 2.7, 3.2, 3.3, and default and then we need to test them for 
regressions with our other major supported platforms: Windows, some set of X11, 
OS X Carbon Tk 8.4, as well as the Cocoa Tk 8.5.  I can test the latter two.  
I'd appreciate it if others could test the other platforms.  Roger, do you feel 
up to turning your suggestions into patches?  Once we're comfortable that the 
workaround works and doesn't cause other regressions, I can bug the ActiveState 
folks to push out a new release of ActiveTcl with fixes for some other problems 
and these fixes can go out in the next set of Python maintenance releases that 
should be coming up in the near future.

--
stage:  -> needs patch
versions: +Python 3.4

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15853] IDLE crashes selecting Preferences menu with OS X ActiveState Tcl/Tk 8.5.12.1

2012-10-16 Thread Andrew Svetlov

Changes by Andrew Svetlov :


--
nosy: +asvetlov

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15853] IDLE crashes selecting Preferences menu with OS X ActiveState Tcl/Tk 8.5.12.1

2012-10-14 Thread Kevin Walzer

Kevin Walzer added the comment:

editFont.config is causing the crash. 

The revised patch you suggest configures both the display font example and the 
highlight-text example. We can certainly amend my patch along those lines.

I cannot reproduce the issue in simple Tcl/Tk using the equivalent [font 
create] and [font configure] calls. As noted, bugs involving the Tcl/Tk event 
loop on the Mac can be hard to reproduce. It is usually simpler, where 
possible, to work around the issue at the script level.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15853] IDLE crashes selecting Preferences menu with OS X ActiveState Tcl/Tk 8.5.12.1

2012-10-12 Thread Roger Serwy

Roger Serwy added the comment:

It appears that Kevin's patch is working around a bug in Tkinter's tkFont 
object configuration. I would suggest removing the editFont object entirely 
from configDialog if it is truly the root cause of Tk crashing.

Kevin, is the .textHighlightSample causing the crash or is the editFont.config 
line causing the crash?

Setting the font in the Fonts/Tab pane should also change the font in the 
Highlighting pane. This is part of issue14876. Would the following still work 
on your version of IDLE?

newFont = (fontName, self.fontSize.get(), fontWeight)
self.labelFontSample.config(font = newFont)
self.textHighlightSample.configure(font=newFont)

Also, since this is a problem with Tk itself, can the crashing behavior be 
isolated into a small test script? I don't have a Mac to test with.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15853] IDLE crashes selecting Preferences menu with OS X ActiveState Tcl/Tk 8.5.12.1

2012-10-12 Thread Kevin Walzer

Kevin Walzer added the comment:

The crash occurs during a "self.editFont.config" call, when the sample text in 
the font dialog is updated with new font properties. My changes re-structures 
the configure event to first create a tuple with new font properties, then 
apply that to the parent label widget's font. Same effect, works around the 
crash. 

My testing shows the crash occurs at the event loop level--somewhere in the 
event loop between Python, Tk, and Cocoa, this specific configuration causes Tk 
to barf and then crash. If you have followed the traffic on the event loop 
issues in Tk-Cocoa at SF and the Tcl-Mac list, you're aware that a) the event 
loop is fragile and complex and b) pretty much impossible to solve at this time 
because the only one who really understands it well, the original author of the 
code, is no longer involved with Tk development. As a result, it is often 
simpler to work around Tk-Cocoa event loop issues at the script level: that is 
what my patch does.  There is little chance of solving the crash at the Tk 
level at this time. 

I don't understand what the problem with in requesting that IDLE users update 
their installation to get this patch; it's no different than any other bug fix. 
As far as making sure it works with the various releases of Python, that's work 
that you or another Python dev will have to do. It's a two-line fix so I doubt 
it will be that complicated to implement. And yes, in an ideal world, it would 
be better to fix Tk, but this patch solve the immediate problem because we are 
not able to address this issue at the Tk level at this time.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15853] IDLE crashes selecting Preferences menu with OS X ActiveState Tcl/Tk 8.5.12.1

2012-10-12 Thread Ned Deily

Ned Deily added the comment:

Thanks for the patch, Kevin. It does need to be updated a bit for the current 
2.7 branch as there have been changes since 2.7.3.  Can you outline what you 
believe the problem is that your patch is trying to workaround?  Certainly, 
nothing that IDLE or any other tkinter-based application does should be able to 
cause a hard crash in Tk.  It seems very problematic to force a change to all 
existing versions of IDLE and require users to update their installed IDLEs 
just to work around a crash in the Cocoa Tk that was introduced by a specific 
recent checkin in Tk.  Since there have been other serious bugs in Cocoa Tk 
that have been corrected in every recent release of Cocoa Tk, it is pretty much 
incumbent on users to keep up with the latest available version.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15853] IDLE crashes selecting Preferences menu with OS X ActiveState Tcl/Tk 8.5.12.1

2012-10-12 Thread Ned Deily

Changes by Ned Deily :


--
nosy: +serwy

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15853] IDLE crashes selecting Preferences menu with OS X ActiveState Tcl/Tk 8.5.12.1

2012-10-11 Thread Kevin Walzer

Changes by Kevin Walzer :


Added file: http://bugs.python.org/file27539/configDialog.diff

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15853] IDLE crashes selecting Preferences menu with OS X ActiveState Tcl/Tk 8.5.12.1

2012-10-11 Thread Kevin Walzer

Changes by Kevin Walzer :


Removed file: http://bugs.python.org/file27538/configDialog.diff

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15853] IDLE crashes selecting Preferences menu with OS X ActiveState Tcl/Tk 8.5.12.1

2012-10-11 Thread Kevin Walzer

Kevin Walzer added the comment:

The attached patch works around the crash for me on Python 2.7.3, Tk-Cocoa  
8.5.12 (tip), on Lion.

--
keywords: +patch
nosy: +wordtech
Added file: http://bugs.python.org/file27538/configDialog.diff

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15853] IDLE crashes selecting Preferences menu with OS X ActiveState Tcl/Tk 8.5.12.1

2012-10-09 Thread Ned Deily

Ned Deily added the comment:

I've been able to build Cocoa Tk and isolate the crash regression to a 
particular Tk checkin.  This Tk issue contains the details: 
https://sourceforge.net/tracker/?func=detail&atid=112997&aid=3575664&group_id=12997

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15853] IDLE crashes selecting Preferences menu with OS X ActiveState Tcl/Tk 8.5.12.1

2012-10-08 Thread David Pietz

David Pietz added the comment:

It wasn't right on that page anymore but I poked around and fount the 8.5.11.1 
and IDLE is no longer crashing when I go to preferences or when I cut and paste 
in the edit window (I didn't tell you about that did I ?- well it fixed that, 
too)!!

thanks solo much, Ned

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15853] IDLE crashes selecting Preferences menu with OS X ActiveState Tcl/Tk 8.5.12.1

2012-10-06 Thread Ned Deily

Ned Deily added the comment:

While there isn't a fix available for Tk yet, there is now a viable workaround. 
 It turns out that ActiveState does make the last couple of their Community 
Edition ActiveTcl releases available if you know where to look for them.  So 
I've updated the information on http://www.python.org/getit/mac/tcltk/ to 
provide a link to the older 8.5.11.1 release (currently available at 
http://downloads.activestate.com/ActiveTcl/releases/8.5.11.1/) which does not 
have this problem.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15853] IDLE crashes selecting Preferences menu with OS X ActiveState Tcl/Tk 8.5.12.1

2012-10-06 Thread Christian Heimes

Christian Heimes added the comment:

Ned, do you have any new information on this crasher? More people are having 
issues with TCL on Mac, e.g. #16156.

--
nosy: +christian.heimes

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15853] IDLE crashes selecting Preferences menu with OS X ActiveState Tcl/Tk 8.5.12.1

2012-09-05 Thread Ned Deily

Ned Deily added the comment:

The problem is a regression in the latest version of ActiveTcl 8.5 for OS X, 
specifically 8.5.12.1 (and I believe the previous version 8.5.12.0).  It has 
nothing directly to do with Python or how you might build Python other than 
whether _tkinter.so dynamically links with 
/Library/Frameworks/Tcl.framework/Verisons/8.5 and 
/Library/Framework/Tk.framework/Verisons/8.5 (the locations where ActiveTcl 
install) as opposed to /System/Library/Frameworks/Tcl.framework/... and 
/System/Library/Frameworks/Tk.framework/..., the Apple-supplied versions.  And, 
if so, which version of ActiveTcl you have installed.  The python.org 64-bit 
Pythons are vulnerable, the 32-bit-obly ones are not because they link with 
Tcl/Tk 8.4.

Unfortunately, ActiveState only makes available the most recent version of 
ActiveTcl on its Community Edition pages, so, unless you have access to a copy 
of an older version of ActiveTcl (like 8.5.11.1, the previous version), you're 
kind of stuck with the behavior, unless you remove ActiveTcl 8.5 and revert to 
Apple's Tk which is vulnerable to other crashes that have been fixed in 
ActiveState's (and is totally broken in OS X 10.6). Or you use the 32-bit 
installer and Tcl/Tk 8.4.  Or you build your own version of Tcl/Tk 8.5 (I've 
stared looking at that).  By the way, ActiveState's own ActivePython 2.7 also 
crashes the same way when using 8.5.12.x.  I've pinged the Tcl Mac mailing 
list.  Unless there's an immediate fix, I'll see what I can find in Tk.

http://permalink.gmane.org/gmane.comp.lang.tcl.mac/7080

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15853] IDLE crashes selecting Preferences menu with OS X ActiveState Tcl/Tk 8.5.12.1

2012-09-04 Thread Raymond Hettinger

Raymond Hettinger added the comment:

I'm observed this happening on a number of machines at my client's site.  It 
started about three weeks ago and has not stopped (even with fresh installs of 
Py2.7.3 and ActiveTCL).  

I've not been able to figure-out why it affects some machines and not others.  
It can happen on 10.6, 10.7, and 10.8.  I've hypothesized that some boxes have 
different XCode updates than others.

--
nosy: +rhettinger

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15853] IDLE crashes selecting Preferences menu with OS X ActiveState Tcl/Tk 8.5.12.1

2012-09-02 Thread Ned Deily

Ned Deily added the comment:

Hmm, sorry, I don't know of an easy fool-proof way to automatically log 
everything you type in IDLE.  But it's pretty easy to manually save the 
contents of the IDLE shell window at the end: with the keyboard focus on the 
Python Shell window, select the File -> Save menu option.  Good luck with 
exploring!

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15853] IDLE crashes selecting Preferences menu with OS X ActiveState Tcl/Tk 8.5.12.1

2012-09-02 Thread David Pietz

David Pietz added the comment:

I thank you, gentlemen, for your kind attention to my issue.  I hope it helps 
everyone in the long run.  
I, myself, became underwhelmed with these results of successfully opening 
preferences. I had been expecting to have a "|Startup|-|Shells open with 
command|text box to put a script in for append-logging my Python study in IDLE 
which follows Head First Python using 3.x- and its not in preferences for IDLE 
like it is in Terminal! 
Well, I guess I have some research to do on that matter.
Thanks again.  It was very gratifying to have my first issue responded to so 
quickly and intelligently!

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15853] IDLE crashes selecting Preferences menu with OS X ActiveState Tcl/Tk 8.5.12.1

2012-09-02 Thread David Pietz

David Pietz added the comment:

ned,
That is exactly the output I received when I reverted to the ActiveState 
version, it failed and I ran your grep.
Thank You for your interest.
djp

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15853] IDLE crashes selecting Preferences menu with OS X ActiveState Tcl/Tk 8.5.12.1

2012-09-02 Thread Ned Deily

Ned Deily added the comment:

David, can you verify that you do have ActiveTcl 8.5.12 (.0 or .1) installed 
and that the problem no longer occurs if you disable ActiveTk by moving it as 
described above?  When Preference is failing, the following Terminal shell 
command:

grep TK_PATCH_LEVEL 
/Library/Frameworks/Tk.framework/Versions/Current/tkConfig.sh 

should output:
TK_PATCH_LEVEL='.12'

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15853] IDLE crashes selecting Preferences menu with OS X ActiveState Tcl/Tk 8.5.12.1

2012-09-02 Thread David Pietz

David Pietz added the comment:

r.david.murray- Thank You for your inquiry.
My recipe for this crash is (1) simply to start IDLE 3.2.3 in either Snow 
Leopard or Mountain Lion (2) click on the Bold "IDLE" menu in the menu bar and 
(3) click on menu item "preferences". At this point a dialog called "Problem 
Report for IDLE" appears with gobs of technical data details below a message 
"IDLE quit unexpectedly".  I copied what I thought might be most specific.  
(The suggested 'click to reopen' does not work) 
I hope this data from the details section is informative even if it is not the 
only exception type or code I have seen related to IDLE in similar conditions:

Crashed Thread:  0  Dispatch queue: com.apple.main-thread

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0024

VM Regions Near 0x24:
--> 
__TEXT 0001-00011000 [4K] r-x/rwx 
SM=COW  
/Library/Frameworks/Python.framework/Versions/3.2/Resources/Python.app/Contents/MacOS/Python

Application Specific Information:
Performing @selector(preferences:) from sender NSMenuItem 0x101b46a90

--
Added file: http://bugs.python.org/file27108/GRAB_IDLEquitUnexpectedly.tiff

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15853] IDLE crashes selecting Preferences menu with OS X ActiveState Tcl/Tk 8.5.12.1

2012-09-02 Thread Ned Deily

Ned Deily added the comment:

The crash on opening Preferences is an unresolved regression with OS X 
ActiveTcl 8.5.12.1, the current ActiveTcl Community Edition, that causes Tk to 
crash when selecting the IDLE Preferences.. command.  The regression was also 
in ActiveState 8.5.12 but not in 8.5.11.1.  The crash appears to be related to 
the Tk crash-on-copy problem documented in Issue15574.

Until the problem is resolved, if you have access to ActiveTcl 8.5.11.1 
(ActiveState only makes the most recent version available to Community Edition 
users), you can install that.  Otherwise, you could either temporarily 
"deactivate" the ActiveState Tk by renaming it, for example, after quitting 
IDLE:

sudo mv /Library/Frameworks/Tk.framework /Library/Frameworks/Tk_disabled

This will revert to the Apple-supplied system Tk, which has some critical bugs 
in 10.8 Mountain Lion (it's totally unusable for IDLE in 10.6) but might be OK 
for your usage or, at least, for updating Preferences.

To "reactivate" ActiveTk, rename it back:

sudo mv /Library/Frameworks/Tk_disabled /Library/Frameworks/Tk.framework

Once you've made some preferences changes, it is also possible to manually edit 
the configuration files created in ~/.idlerc.

I will update this issue with a cross-reference to an Tcl/Tk issue when 
available.

--
assignee:  -> ned.deily
components: +IDLE, Macintosh
nosy: +ned.deily
title: Idle "quit unexpectedly" w/ attempted edit of preferences -> IDLE 
crashes selecting Preferences menu with OS X ActiveState Tcl/Tk 8.5.12.1
versions: +Python 2.7, Python 3.3

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com