Title: X Error in tkinter
Type: crash Stage: resolved
Components: Tkinter Versions:
Status: closed Resolution: third party
Dependencies: Superseder:
Assigned To: Nosy List: gpolo, iwontbecreative, serhiy.storchaka, zach.ware
Priority: normal Keywords:

Created on 2013-07-15 13:38 by serhiy.storchaka, last changed 2016-04-08 17:06 by serhiy.storchaka. This issue is now closed.

Messages (3)
msg193097 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2013-07-15 13:38
When run Tools/demo/ under Linux and enter the formula "='0'*0x1000", the application will crash with the following message:

X Error of failed request:  BadAlloc (insufficient resources for operation)
  Major opcode of failed request:  53 (X_CreatePixmap)
  Serial number of failed request:  1025
  Current serial number in output stream:  1100

Any multiplier between 0x1000 and 0x1fff crashes. With multipliers >= 0x2000 only the number of zeros over 0x2000 is displayed. Multiplier between 0x3000 and 0x3fff crashes again.

Hint: The width of '0' in the used font is  8 pixels. 0x2000 * 8 = 2**16. If the width of cell is a 16-bit signed integer, it is negative for the number of zeros between 0x1000 and 0x1fff and wrapped after 0x2000 zeros.

It may be a bug either in Tkinter, in Tk, or in X Window.
msg193108 - (view) Author: Zachary Ware (zach.ware) * (Python committer) Date: 2013-07-15 14:41
I've done a small amount of testing on Windows (both with the issue18457 patch applied and without), and there is no such crash there.  Output isn't what is expected (the cell is lengthened, but nothing is shown), but no crash.
msg263028 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2016-04-08 17:06
Opened Tk ticket: .
Date User Action Args
2016-04-08 17:06:32serhiy.storchakasetstatus: open -> closed
resolution: third party
messages: + msg263028

stage: resolved
2013-07-15 14:41:51zach.waresetnosy: + zach.ware
messages: + msg193108
2013-07-15 13:43:40iwontbecreativesetnosy: + iwontbecreative
2013-07-15 13:38:20serhiy.storchakacreate