hang

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

不羁的心 提交于 2019-11-28 05:32:08
问题 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

Control.Invoke is hanging

扶醉桌前 提交于 2019-11-28 01:41:41
I've seen a ton of post regarding the problem of control.Invoke hanging applications but they mostly seemed to be restricted to those running on .NET 1.1. I've also seen suggestions to use .BeginInvoke instead which I have tried but to no avail. .BeginInvoke doesn't hang but it also doesn't call the delegate. My main concern is that I have used .Invoke for years with no issues and I have a major application in the field that uses it extensively and I'm worried that this problem will crop up there. I am doing nothing differently as far as I can tell between my working code and the code that

IIS: Web Application hangs periodically needs system reboot

牧云@^-^@ 提交于 2019-11-27 21:40:12
问题 Once every 18-24 hours my IIS stops responding on a particular website. We have upgraded our web application a week ago and this seems to have started it. When it happens: Any request to the asp.net application hangs for ever Restarting the application pool gives the error 0x80070425 (The service cannot accept control message at this time) I cannot even log off from the computer, Log Off hangs. The only way is to restart the machine Sometimes it gets triggered with some unhandled ado.net

Plot window not responding

喜欢而已 提交于 2019-11-27 17:12:08
I'm using Windows 7 64 bit. Each time, I'm using plot function, plot windows will shows and draws successfully, but after that it stops responding and must shut down it. For example : x = linspace(0,1,10) y = x.^2 plot(x,y); Strangely, when plot windows freeze and I must close octave windows, they will be unresponsive too. This will not happen if I don't use plot function. I don't know why. Does it because I'm using 64 bit version? Please tell me how to fix this. The problem is likely to be the graphics toolkit which your installation of Octave is using. To check this, type graphics_toolkit in

Is there a way to not wait for a system() command to finish? (in c) [duplicate]

馋奶兔 提交于 2019-11-27 14:35:06
Similar to: program not executing anything after a call to system() I am fairly new to using C but basically, I want to execute the following line: int a = system("python -m plotter"); which will launch a python module I developed. However, I want the rest of my c program to keep running instead of waiting for the command to finish executing (the python app is on an infinite loop so it wont close automatically). Is there any way to do this using C/C++? Update: the solution was: int a = system("start python -m plotter &"); system() simply passes its argument to the shell (on Unix-like systems,

Git push hangs when pushing to Github?

北城以北 提交于 2019-11-27 10:14:50
问题 Git push hangs everytime I try to push to github. I am using Cygwin and Windows 7. Git functions fine locally tracking branches, providing status, setting global user.name and user.email and allowing commits. I'm still new and learning. I enter git push , git push origin master or git push -u origin master and I get nothing but a blank line requiring me to ctl-c to get the prompt back. ssh-keygen -t rsa -C "me@example.com" asks me for a file name and hangs git push heroku master hangs $ git

Visual Studio 2010 hangs when I debug method AttachThreadInput()

旧街凉风 提交于 2019-11-27 06:24:18
问题 I have Visual Studio 2010 Ultimate SP1 and my project is based on MFC. When I debuging next code of my project Visual Studio is hangs: CWnd* _window = CWnd::FromHandle(_hwnd_); if (_window) { DWORD nForeThread, nAppThread; nForeThread = ::GetWindowThreadProcessId(::GetForegroundWindow(), 0); nAppThread = GetCurrentThreadId(); if (nForeThread != nAppThread) { AttachThreadInput(nForeThread, nAppThread, TRUE); _window->BringWindowToTop(); _window->ShowWindow(SW_RESTORE); AttachThreadInput

Android GoogleAnalytics getInstance

做~自己de王妃 提交于 2019-11-27 02:05:18
问题 in Application class, in create method I call GoogleAnalytics.getInstance(this) and application just freezes...on any device Worked fine with google play services 6.1, now it's 6.5 and I have no idea what could cause this.... Any ideas? public class BaseApplication extends Application { private static Tracker mTracker; private MyProfile mMyProfile; public BaseApplication() { super(); } private void initTracker() { if (mTracker == null) { GoogleAnalytics analytics = GoogleAnalytics.getInstance

StandardOutput.ReadToEnd() hangs [duplicate]

好久不见. 提交于 2019-11-26 22:10:24
This question already has an answer here: ProcessStartInfo hanging on “WaitForExit”? Why? 20 answers I have a program that frequently uses an external program and reads its outputs. It works pretty well using your usual process redirect output, but one specific argument for some reason hangs when I try to read it, no error message - no exception, it just 'stops' when it reaches that line. I of course use a centralized function to call and read output from the program, which is this: public string ADBShell(string adbInput) { try { //Create Empty values string result = string.Empty; string error

Control.Invoke is hanging

此生再无相见时 提交于 2019-11-26 22:01:36
问题 I've seen a ton of post regarding the problem of control.Invoke hanging applications but they mostly seemed to be restricted to those running on .NET 1.1. I've also seen suggestions to use .BeginInvoke instead which I have tried but to no avail. .BeginInvoke doesn't hang but it also doesn't call the delegate. My main concern is that I have used .Invoke for years with no issues and I have a major application in the field that uses it extensively and I'm worried that this problem will crop up