hang

Python getpass.getpass() function call hangs

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-30 17:17:29
问题 I am trying to get a prompt that will ask for my password but when I try to call getpass.getpass() it just freezes. I am running on Windows 7 64 bit using Python 2.7 on Canopy. import sys import getpass p = getpass.getpass() print p 回答1: Python "effectively freezes because it can't receive the input from standard input". See https://support.enthought.com/entries/22157050-Canopy-Python-prompt-QtConsole-Can-t-run-getpass-or-interactive-OS-shell-commands-or-Windows-process The fix is to use a

ASP.NET Hang - Generic Dictionary concurrency issues causes GC deadlock

给你一囗甜甜゛ 提交于 2019-11-30 06:29:35
In the last month our ASP.NET web app has stopped responding to requests and we have had to reset the app pool to get it back up. We are having trouble identifying the exact cause of the issue, as there are no errors in the server's event log. The site simply stops responding. So we have been using WinDbg to try and analyse a memory dump taken when the site was not responding with the help of Tess Ferrandez's blog entries: GC Hangs & High CPU Hang By running !threadpool I can see the following: CPU utilization: 81% Worker Thread: Total: 10 Running: 8 Idle: 2 MaxLimit: 400 MinLimit: 160 Work

Win32 ReadFile hangs when reading from pipe

泄露秘密 提交于 2019-11-30 05:01:43
问题 I am creating a child process, and reading its output. My code works fine when the child process creates output ( cmd /c echo Hello World ), however ReadFile will hang if process does not create output ( cmd /c echo Hello World > output.txt ). I am only reading after the process has terminated. Am I doing something horribly wrong? Is there anyway to do this with synchronous mode, or do I have to use asynchronous mode? All of this is happening in a seperate thread, so I dont think asynchronous

Visual Studio regularly freezes running Microsoft.VisualStudio.Web.Host.exe

无人久伴 提交于 2019-11-30 04:52:53
Background I maintain several web sites that are Visual Studio "Web Site Projects". Problem I've found that with a couple of these projects, Visual Studio regularly freezes while I'm working on the code. This doesn't happen for some of the web site projects, and I haven't seen it happen on any Web Application projects. Symptoms Each time it freezes, it takes about half a minute before I can use it again. During a freeze, Windows Task Manager reports that Microsoft.VisualStudio.Web.Host.exe is maxing out one of the CPU cores. Steps to Reproduce Open a .cs file under the App_Code directory. Make

Why does “docker attach” hang?

依然范特西╮ 提交于 2019-11-30 02:38:26
I can run an ubuntu container successfully: # docker run -it -d ubuntu 3aef6e642327ce7d19c7381eb145f3ad10291f1f2393af16a6327ee78d7c60bb # docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 3aef6e642327 ubuntu "/bin/bash" 3 seconds ago Up 2 seconds condescending_sammet But executing docker attach hangs: # docker attach 3aef6e642327 Until I press any key, such as Enter : # docker attach 3aef6e642327 root@3aef6e642327:/# root@3aef6e642327:/# ls bin boot dev etc home lib lib64 media mnt opt proc root run sbin srv sys tmp usr var Why does docker attach hang? Update : After reading the

How do I debug my program when it hangs?

六月ゝ 毕业季﹏ 提交于 2019-11-29 23:19:17
问题 I have an application which takes measurements every second (I am running it in demo mode & generating random data, so the problem is not to do with reading from devices attached to the serial port). After 5 or 6 minutes it hangs. I have added try // entire body of procedure/function goes here except on E: Exception do begin MessageDlg('Internal coding error in <function name>()', mtError, [mbOK], 0); end; end; to every single function (and Application.Run() in the project file), but I don't

StandardOutput.EndOfStream Hangs

。_饼干妹妹 提交于 2019-11-29 15:03:01
I'm starting a process within my C# application which runs a console application. I've redirected standard input and output, and am able to read a few lines via StandardOutput.ReadLine(). I'm convinced I have the ProcessStartInfo configured correctly. The console application, when started, outputs a few lines (ending with a "marker" line) and then waits for input. After receiving the input, it again outputs a few lines (ending again with a "marker" line), and so on. My intention is to read lines from it until I receive the "marker" line, at which point I know to send the appropriate input

Python won't exit when called with absolute path from cron or subshell

我的梦境 提交于 2019-11-29 12:08:55
I have some python scripts that run via cron, and they no longer exit correctly when the script is called with an absolute path. They will hang until the process is terminated. I believe it happened after I moved /var and /home to a different partition. I checked into the environment variables and couldn't see anything obviously wrong, this happens either when run with cron or a bash subshell, but not when run directly. If I run it as a subshell it hangs until I kill it (ctrl-c) and then gives me the output. [wotstats@rock test]$ echo 'assert 0==1, "fails"' > test.py [wotstats@rock test]$ /bin

How to interrupt MATLAB IDE when it hangs on displaying very large array?

最后都变了- 提交于 2019-11-29 12:07:24
Suppose I'm using the MATLAB IDE and happen to have some very large objects in my workspace (e.g. arrays of 500k+ elements). Now, suppose that I stupidly and accidentally double click on one of these very large variables, which triggers a load to the array editor. Unfortunately, with arrays this big, MATLAB just hangs. I've tried CTRL+C, CTRL+BREAK, CTRL+D, but none seem able to interrupt the behavior of the IDE. I know I can force matlab to quit, but reading all of those variables into the workspace in the first place takes a lot of time, and I may have unsaved changes in an editor window,

ASP.NET Hang - Generic Dictionary concurrency issues causes GC deadlock

淺唱寂寞╮ 提交于 2019-11-29 07:12:29
问题 In the last month our ASP.NET web app has stopped responding to requests and we have had to reset the app pool to get it back up. We are having trouble identifying the exact cause of the issue, as there are no errors in the server's event log. The site simply stops responding. So we have been using WinDbg to try and analyse a memory dump taken when the site was not responding with the help of Tess Ferrandez's blog entries: GC Hangs & High CPU Hang By running !threadpool I can see the