[issue26744] print() function hangs on MS-Windows 10

2017-03-09 Thread Eryk Sun
Eryk Sun added the comment: > After enabling `QuickEdit Mode`, then click the console will > suspend the program. That's not suspending the entire process. It's blocking the thread that writes to the console. The user-mode WriteConsole function is implemented by a synchronous

[issue26744] print() function hangs on MS-Windows 10

2017-03-09 Thread Ma Lin
Ma Lin added the comment: This is an invalid issue, very sorry for waste your time! Especially apologize to Stinner. After enabling `QuickEdit Mode`, then click the console will suspend the program. -- resolution: -> not a bug stage: -> resolved status: open -> closed

[issue26744] print() function hangs on MS-Windows 10

2016-04-17 Thread Ma Lin
Ma Lin added the comment: faulthandler module caught a hang just now: Timeout (0:01:00)! Thread 0x0eb0 (most recent call first): File "D:\git\tz2txt\tz2txt\gui.py", line 262 in delfile File "C:\Python35\lib\tkinter\__init__.py", line 1549 in __call__ File

[issue26744] print() function hangs on MS-Windows 10

2016-04-15 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +terry.reedy ___ Python tracker ___ ___

[issue26744] print() function hangs on MS-Windows 10

2016-04-13 Thread Ma Lin
Ma Lin added the comment: I'm afraid not. If run it 1000 times, only about <5 times occurs, the others are quite fine. I have installed faulthandler, let's wait the hunting. -- ___ Python tracker

[issue26744] print() function hangs on MS-Windows 10

2016-04-13 Thread STINNER Victor
STINNER Victor added the comment: > In addition, the printed strings are Simplified Chinese, my system's language > is it as well. Maybe it's a factor? Ooh yes. The Windows Console sucks to display Unicode: see the very old issue #1602 which is not fixed yet and is 9 years old... Try to

[issue26744] print() function hangs on MS-Windows 10

2016-04-13 Thread Ma Lin
Ma Lin added the comment: >> It looks like a bug in your application. Can you provide a short script to >> reproduce the bug? It's hard to believe it, the code has no way to behavior like that. I think this is not reproducible, it's random hang. As my subjective feelings, I suspect it's a

[issue26744] print() function hangs on MS-Windows 10

2016-04-13 Thread STINNER Victor
STINNER Victor added the comment: > To be honest, I'm a bit suprise that almost no one complain it, maybe it's my > system's fault? I don't know. It looks like a bug in your application. Can you provide a short script to reproduce the bug? -- ___

[issue26744] print() function hangs on MS-Windows 10

2016-04-13 Thread Ma Lin
Ma Lin added the comment: ok, I will try faulthandler module. >> Are you running your program in the Windows console (cmd.exe)? In IDLE? In >> PowerShell? One runs in pure command line mode, cmd.exe. The other is a simple tkinter GUI with a console for output message. To be honest, I'm a bit

[issue26744] print() function hangs on MS-Windows 10

2016-04-13 Thread STINNER Victor
STINNER Victor added the comment: > I have two programs, they occasionally infinite hang. Can you please try the faulthandler module to try to get a traceback of all Python threads? I suggest to use the watchdog with a short timeout (ex: 60 seconds):

[issue26744] print() function hangs on MS-Windows 10

2016-04-13 Thread Ma Lin
Ma Lin added the comment: After my MS-Windows 10 updated to 10586.218 this day, it occurs again. It hung, the console cursor was flashing at the beginning of the current line. I pressed ENTER key on the console window, then it printed the supposed content and went on. I have read issue26624,

[issue26744] print() function hangs on MS-Windows 10

2016-04-12 Thread Ma Lin
New submission from Ma Lin: My OS is MS-Windows 10 X86-64 (Home edition), with the lastest update (now it's 10586.164). I have two programs, they occasionally infinite hang. After a few months observation, I provide these infomation: 1, print() function cause the infinite hang. 2, If it