[New-bugs-announce] [issue19733] Setting image parameter of a button crashes with Cocoa Tk

Serhiy Storchaka report at bugs.python.org
Sat Nov 23 14:09:46 CET 2013


New submission from Serhiy Storchaka:

>From msg202006:

With Cocoa Tk 8.5.15 or Cocoa Tk 8.6.1 on OS X 10.8.5, test_widgets.ButtonTest crashes Tk:

test_image (tkinter.test.test_tkinter.test_widgets.ButtonTest) ... 2013-11-03 01:52:53.498 pytest_10.8[82465:f07] *** Assertion failure in -[NSBitmapImageRep initWithCGImage:], /SourceCache/AppKit/AppKit-1187.40/AppKit.subproj/NSBitmapImageRep.m:1242
2013-11-03 01:52:53.499 pytest_10.8[82465:f07] An uncaught exception was raised
2013-11-03 01:52:53.499 pytest_10.8[82465:f07] Invalid parameter not satisfying: cgImage != NULL
2013-11-03 01:52:53.502 pytest_10.8[82465:f07] (
	0   CoreFoundation                      0x965eae8b __raiseError + 219
	1   libobjc.A.dylib                     0x956d152e objc_exception_throw + 230
	2   CoreFoundation                      0x9654a698 +[NSException raise:format:arguments:] + 136
	3   Foundation                          0x966a5364 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 116
	4   AppKit                              0x98a34525 -[NSBitmapImageRep initWithCGImage:] + 145
	5   Tk                                  0x00725a48 CreateNSImageWithPixmap + 151
	6   Tk                                  0x00725b1c TkMacOSXGetNSImageWithTkImage + 149
	7   Tk                                  0x0071eb2f TkpComputeButtonGeometry + 2550
	8   Tk                                  0x0069849d TkButtonWorldChanged + 470
	9   Tk                                  0x00698e99 ConfigureButton + 1981
	10  Tk                                  0x0069980f ButtonWidgetObjCmd + 440
	11  Tcl                                 0x00579c2f TclEvalObjvInternal + 770
	12  Tcl                                 0x0057ac1a Tcl_EvalObjv + 72
	13  _tkinter.so                         0x0055db81 Tkapp_Call + 673
        [...]

----------
assignee: ronaldoussoren
components: Macintosh, Tkinter
messages: 203999
nosy: ned.deily, ronaldoussoren, serhiy.storchaka
priority: normal
severity: normal
status: open
title: Setting image parameter of a button crashes with Cocoa Tk
type: crash
versions: Python 2.7, Python 3.3, Python 3.4

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19733>
_______________________________________


More information about the New-bugs-announce mailing list