classification
Title: [2.7] test_tk: test_use() of test_tkinter.test_widgets randomly fails with "integer value too large to represent" on with AMD64 Windows8 3.5
Type: Stage: resolved
Components: Tkinter, Windows Versions: Python 2.7
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: Nosy List: haypo, paul.moore, serhiy.storchaka, steve.dower, tim.golden, zach.ware
Priority: normal Keywords:

Created on 2017-07-05 12:18 by haypo, last changed 2017-09-13 01:00 by haypo. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 2585 merged haypo, 2017-07-05 12:26
PR 2586 merged haypo, 2017-07-05 12:28
Messages (14)
msg297727 - (view) Author: STINNER Victor (haypo) * (Python committer) Date: 2017-07-05 12:18
http://buildbot.python.org/all/builders/AMD64%20Windows8%203.5/builds/323/steps/test/logs/stdio

======================================================================
ERROR: test_use (tkinter.test.test_tkinter.test_widgets.ToplevelTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "D:\buildarea\3.5.bolen-windows8\build\lib\tkinter\test\test_tkinter\test_widgets.py", line 95, in test_use
    widget2 = self.create(use=wid)
  File "D:\buildarea\3.5.bolen-windows8\build\lib\tkinter\test\test_tkinter\test_widgets.py", line 70, in create
    return tkinter.Toplevel(self.root, **kwargs)
  File "D:\buildarea\3.5.bolen-windows8\build\lib\tkinter\__init__.py", line 2191, in __init__
    BaseWidget.__init__(self, master, 'toplevel', cnf, {}, extra)
  File "D:\buildarea\3.5.bolen-windows8\build\lib\tkinter\__init__.py", line 2148, in __init__
    (widgetName, self._w) + extra + self._options(cnf))
_tkinter.TclError: integer value too large to represent
msg297728 - (view) Author: STINNER Victor (haypo) * (Python committer) Date: 2017-07-05 12:20
This bug looks similar to issue25263.
msg297729 - (view) Author: STINNER Victor (haypo) * (Python committer) Date: 2017-07-05 12:22
The compile step mentions Tk version 8.6.4.2:

"tk-8.6.4.2 already exists, skipping."

http://buildbot.python.org/all/builders/AMD64%20Windows8%203.5/builds/323/steps/compile/logs/stdio
msg297730 - (view) Author: STINNER Victor (haypo) * (Python committer) Date: 2017-07-05 12:31
It seems like the test never fails on 3.6, while 3.6 contains the fix b9d672491d5082c541bf267eb7bb99fdc6529324. Let's try to backport this change to 3.5 and 2.7 branches.
msg297731 - (view) Author: STINNER Victor (haypo) * (Python committer) Date: 2017-07-05 12:37
See also bpo-16840.
msg297737 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2017-07-05 13:29
Thank you for backporting the fix. Seems I just forgot about this.
msg297754 - (view) Author: STINNER Victor (haypo) * (Python committer) Date: 2017-07-05 13:55
Serhiy Storchaka added the comment:
> Thank you for backporting the fix. Seems I just forgot about this.

The bug wasn't notice before since test_tk fails once, but then pass
when run again... It fails randomly. But I noticed a warning on a
build, and so saw the bug. More stable buildbots should help to catch
more random bugs.
msg297757 - (view) Author: STINNER Victor (haypo) * (Python committer) Date: 2017-07-05 13:58
New changeset c48a000c74b48586742c4b7eb42bba93f15953a9 by Victor Stinner in branch '3.5':
[3.5] bpo-30855: Trying to fix test_use on Windows. (#2585)
https://github.com/python/cpython/commit/c48a000c74b48586742c4b7eb42bba93f15953a9
msg297815 - (view) Author: STINNER Victor (haypo) * (Python committer) Date: 2017-07-06 08:22
New changeset f6d6480b93eca6f353784579108957108750c004 by Victor Stinner in branch '2.7':
[2.7] bpo-30855: Trying to fix test_use on Windows. (#2586)
https://github.com/python/cpython/commit/f6d6480b93eca6f353784579108957108750c004
msg297819 - (view) Author: STINNER Victor (haypo) * (Python committer) Date: 2017-07-06 08:56
I backported fixes to 2.7 and 3.5 branches. The test fails randomly, so I close the issue and hope that it doesn't come back.

If it comes back on 3.5, we should now get the identifier which caused the failure. I will reopen the issue if the bug occurs again.
msg299839 - (view) Author: STINNER Victor (haypo) * (Python committer) Date: 2017-08-07 10:02
The test failed on "AMD64 Windows8.1 Refleaks 2.7" buildbot:

http://buildbot.python.org/all/builders/AMD64%20Windows8.1%20Refleaks%202.7/builds/60/steps/test/logs/stdio

test_padx (test_tkinter.test_widgets.ToplevelTest) ... ok
test_pady (test_tkinter.test_widgets.ToplevelTest) ... ok
test_relief (test_tkinter.test_widgets.ToplevelTest) ... ok
test_screen (test_tkinter.test_widgets.ToplevelTest) ... skipped 'No $DISPLAY set.'
test_takefocus (test_tkinter.test_widgets.ToplevelTest) ... ok
test_use (test_tkinter.test_widgets.ToplevelTest) ... ERROR
test_visual (test_tkinter.test_widgets.ToplevelTest) ... ok
test_width (test_tkinter.test_widgets.ToplevelTest) ... test test_tk failed -- Traceback (most recent call last):
  File "D:\buildarea\2.7.ware-win81-release.refleak\build\lib\lib-tk\test\test_tkinter\test_widgets.py", line 92, in test_use
    widget2 = self.create(use=wid)
  File "D:\buildarea\2.7.ware-win81-release.refleak\build\lib\lib-tk\test\test_tkinter\test_widgets.py", line 67, in create
    return tkinter.Toplevel(self.root, **kwargs)
  File "D:\buildarea\2.7.ware-win81-release.refleak\build\lib\lib-tk\Tkinter.py", line 2138, in __init__
    BaseWidget.__init__(self, master, 'toplevel', cnf, {}, extra)
  File "D:\buildarea\2.7.ware-win81-release.refleak\build\lib\lib-tk\Tkinter.py", line 2095, in __init__
    (widgetName, self._w) + extra + self._options(cnf))
TclError: expected integer but got "0xffffffff92b20298L"

ok

======================================================================
ERROR: test_use (test_tkinter.test_widgets.ToplevelTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "D:\buildarea\2.7.ware-win81-release.refleak\build\lib\lib-tk\test\test_tkinter\test_widgets.py", line 92, in test_use
    widget2 = self.create(use=wid)
  File "D:\buildarea\2.7.ware-win81-release.refleak\build\lib\lib-tk\test\test_tkinter\test_widgets.py", line 67, in create
    return tkinter.Toplevel(self.root, **kwargs)
  File "D:\buildarea\2.7.ware-win81-release.refleak\build\lib\lib-tk\Tkinter.py", line 2138, in __init__
    BaseWidget.__init__(self, master, 'toplevel', cnf, {}, extra)
  File "D:\buildarea\2.7.ware-win81-release.refleak\build\lib\lib-tk\Tkinter.py", line 2095, in __init__
    (widgetName, self._w) + extra + self._options(cnf))
TclError: expected integer but got "0xffffffff92b20298L"
msg299840 - (view) Author: STINNER Victor (haypo) * (Python committer) Date: 2017-08-07 10:07
Oh, the test also failed on Python 3.5 (on "AMD64 Windows8.1 Refleaks 3.5" buildbot):

http://buildbot.python.org/all/builders/AMD64%20Windows8.1%20Refleaks%203.5/builds/62/steps/test/logs/stdio

======================================================================
ERROR: test_use (tkinter.test.test_tkinter.test_widgets.ToplevelTest) (wid='0xffffffff87a60298')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "D:\buildarea\3.5.ware-win81-release.refleak\build\lib\tkinter\test\test_tkinter\test_widgets.py", line 96, in test_use
    widget2 = self.create(use=wid)
  File "D:\buildarea\3.5.ware-win81-release.refleak\build\lib\tkinter\test\test_tkinter\test_widgets.py", line 70, in create
    return tkinter.Toplevel(self.root, **kwargs)
  File "D:\buildarea\3.5.ware-win81-release.refleak\build\lib\tkinter\__init__.py", line 2190, in __init__
    BaseWidget.__init__(self, master, 'toplevel', cnf, {}, extra)
  File "D:\buildarea\3.5.ware-win81-release.refleak\build\lib\tkinter\__init__.py", line 2147, in __init__
    (widgetName, self._w) + extra + self._options(cnf))
_tkinter.TclError: integer value too large to represent
msg300135 - (view) Author: STINNER Victor (haypo) * (Python committer) Date: 2017-08-10 23:56
Change the Python version to 2.7 only, since Python 3.5 doesn't accept bug fixes anymore (only security fixes).
msg302022 - (view) Author: STINNER Victor (haypo) * (Python committer) Date: 2017-09-13 01:00
I didn't see this failure since one month on the 2.7 buildbots. While I fear that the bug still exists, I close it to clean up my list of open issues. I will reopen the issue if the bug strikes back!
History
Date User Action Args
2017-09-13 01:00:04hayposetstatus: open -> closed
resolution: out of date
messages: + msg302022
2017-08-10 23:56:52hayposettitle: [3.5] test_tk: test_use() of test_tkinter.test_widgets randomly fails with "integer value too large to represent" on with AMD64 Windows8 3.5 -> [2.7] test_tk: test_use() of test_tkinter.test_widgets randomly fails with "integer value too large to represent" on with AMD64 Windows8 3.5
messages: + msg300135
versions: + Python 2.7, - Python 3.5
2017-08-07 10:07:42hayposetmessages: + msg299840
2017-08-07 10:02:40hayposetstatus: closed -> open
resolution: fixed -> (no value)
messages: + msg299839
2017-07-06 08:56:51hayposetstatus: open -> closed
resolution: fixed
messages: + msg297819

stage: resolved
2017-07-06 08:22:54hayposetmessages: + msg297815
2017-07-05 13:58:26hayposetmessages: + msg297757
2017-07-05 13:55:03hayposetmessages: + msg297754
2017-07-05 13:29:17serhiy.storchakasetnosy: + serhiy.storchaka
messages: + msg297737
2017-07-05 12:37:07hayposetmessages: + msg297731
2017-07-05 12:31:09hayposetmessages: + msg297730
2017-07-05 12:28:59hayposetpull_requests: + pull_request2657
2017-07-05 12:26:45hayposetpull_requests: + pull_request2656
2017-07-05 12:22:44hayposetmessages: + msg297729
2017-07-05 12:20:29hayposetmessages: + msg297728
title: test_use() of test_tkinter.test_widgets randomly fails with "integer value too large to represent" on with AMD64 Windows8 3.5 -> [3.5] test_tk: test_use() of test_tkinter.test_widgets randomly fails with "integer value too large to represent" on with AMD64 Windows8 3.5
2017-07-05 12:18:47haypocreate