You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[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 #75038
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee='https://github.com/zware'closed_at=<Date2018-01-05.20:59:17.337>created_at=<Date2017-07-05.12:18:47.605>labels= ['expert-tkinter', 'OS-windows']
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'updated_at=<Date2018-01-05.23:33:44.358>user='https://github.com/vstinner'
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 createreturn 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
changed the 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[/+]on Jul 5, 2017
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.
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 createreturn 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"
test_use (test_tkinter.test_widgets.ToplevelTest) ... ERROR
test_visual (test_tkinter.test_widgets.ToplevelTest) ... ok
test test_tk failed -- Traceback (most recent call last):
File "D:\buildarea\2.7.ware-win81-release\build\lib\lib-tk\test\test_tkinter\test_widgets.py", line 93, in test_use
widget2 =self.create(use=wid)
File "D:\buildarea\2.7.ware-win81-release\build\lib\lib-tk\test\test_tkinter\test_widgets.py", line 67, in createreturn tkinter.Toplevel(self.root, **kwargs)
File "D:\buildarea\2.7.ware-win81-release\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\build\lib\lib-tk\Tkinter.py", line 2095, in __init__
(widgetName, self._w) + extra +self._options(cnf))
TclError: integer value too large to represent
test_width (test_tkinter.test_widgets.ToplevelTest) ... ok
Traceback (most recent call last):
File "D:\buildarea\2.7.ware-win81-release\build\lib\lib-tk\test\test_tkinter\test_widgets.py", line 93, in test_use
widget2 =self.create(use=wid)
File "D:\buildarea\2.7.ware-win81-release\build\lib\lib-tk\test\test_tkinter\test_widgets.py", line 67, in createreturn tkinter.Toplevel(self.root, **kwargs)
File "D:\buildarea\2.7.ware-win81-release\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\build\lib\lib-tk\Tkinter.py", line 2095, in __init__
(widgetName, self._w) + extra +self._options(cnf))
TclError: integer value too large to represent
Activity
vstinner commentedon Jul 5, 2017
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)
----------------------------------------------------------------------
vstinner commentedon Jul 5, 2017
This bug looks similar to bpo-25263.
[-]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[/+]vstinner commentedon Jul 5, 2017
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
vstinner commentedon Jul 5, 2017
It seems like the test never fails on 3.6, while 3.6 contains the fix b9d6724. Let's try to backport this change to 3.5 and 2.7 branches.
vstinner commentedon Jul 5, 2017
See also bpo-16840.
serhiy-storchaka commentedon Jul 5, 2017
Thank you for backporting the fix. Seems I just forgot about this.
vstinner commentedon Jul 5, 2017
Serhiy Storchaka added the comment:
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.
vstinner commentedon Jul 5, 2017
New changeset c48a000 by Victor Stinner in branch '3.5':
[3.5] bpo-30855: Trying to fix test_use on Windows. (bpo-2585)
c48a000
vstinner commentedon Jul 6, 2017
New changeset f6d6480 by Victor Stinner in branch '2.7':
[2.7] bpo-30855: Trying to fix test_use on Windows. (bpo-2586)
f6d6480
vstinner commentedon Jul 6, 2017
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.
vstinner commentedon Aug 7, 2017
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
ok
======================================================================
ERROR: test_use (test_tkinter.test_widgets.ToplevelTest)
----------------------------------------------------------------------
19 remaining items
serhiy-storchaka commentedon Nov 20, 2017
The fix was made 2015-11-09. The tag core-8-5-15 was created 2013-09-16.
I'm not well experienced with fossil and thought that 8.5.15 contains this fix, but now I see that this is not true. Yes, updating Tcl/Tk can help.
zware commentedon Nov 21, 2017
If you'd like to do that update, there are some instructions at https://github.com/python/cpython-source-deps. You can get AppVeyor to use dependencies from your fork of
cpython-source-depsby adjusting 2.7/PCbuild/get_externals.bat:32 to point to your username temporarily.If you don't want to mess with it, I'll get to it sooner or later :)
zware commentedon Nov 26, 2017
New changeset be1faab by Zachary Ware in branch '2.7':
bpo-30855: Bump Tcl/Tk to 8.5.19 on Windows (GH-4550)
be1faab
vstinner commentedon Nov 26, 2017
Cool, thanks Zach!
vstinner commentedon Nov 27, 2017
Bad news: the problem is not gone. Fail at commit 180372c (the commit after Zach's commit be1faab in the Python 2.7 branch):
http://buildbot.python.org/all/#/builders/70/builds/28
======================================================================
ERROR: test_use (test_tkinter.test_widgets.ToplevelTest)
----------------------------------------------------------------------
serhiy-storchaka commentedon Nov 27, 2017
It still uses Tcl/Tk 8.5.15.
vstinner commentedon Nov 27, 2017
Serhiy: "It still uses Tcl/Tk 8.5.15."
pythoninfo says:
---
tkinter.TCL_VERSION: 8.5
tkinter.TK_VERSION: 8.5
tkinter.info_patchlevel: 8.5.15
---
The compilation says:
---
Fetching external libraries...
(...)
tcl-8.5.19.0 already exists, skipping.
tk-8.5.19.0 already exists, skipping.
tix-8.4.3.5 already exists, skipping.
(...)
Project "D:\buildarea\2.7.ware-win81-release\build\PCbuild\_tkinter.vcxproj" (24) is building "D:\buildarea\2.7.ware-win81-release\build\PCbuild\tcl.vcxproj" (25) on node 1 (default targets).
(...)
cd /D "D:\buildarea\2.7.ware-win81-release\build\externals\tcl-8.5.19.0\win"
nmake -f makefile.vc MACHINE=AMD64 OPTS= INSTALLDIR="D:\buildarea\2.7.ware-win81-release\build\externals\tcltk64" INSTALL_DIR="D:\buildarea\2.7.ware-win81-release\build\externals\tcltk64" core shell dlls
nmake -f makefile.vc MACHINE=AMD64 OPTS= INSTALLDIR="D:\buildarea\2.7.ware-win81-release\build\externals\tcltk64" INSTALL_DIR="D:\buildarea\2.7.ware-win81-release\build\externals\tcltk64"
---
zware commentedon Jan 5, 2018
I manually cleared
externals\tcltk64on that bot some time ago, and it appears to be happy now.serhiy-storchaka commentedon Jan 5, 2018
Thank you Zachary! Can this issue be closed now?
zware commentedon Jan 5, 2018
I think so :)
vstinner commentedon Jan 5, 2018
Awesome, thanks!