hang

IOS semaphore_wait_trap on main thread causing hang in UI

半腔热情 提交于 2019-11-29 05:28:43
I have a long running function inside an asynchronous (serial) worker queue. I know that sometimes this function hangs inside a particular openCV call. For some reason this hang is also causing the main thread to hang. When pausing and entering debug mode I see that there is a call to semaphore_wait_trap() on the main thread (Queue) I can suspend the hanging thread (My worker queue) in debug mode and then this trap goes away and the GUI becomes responsive once again on the phone. After unpausing the worker thread the GUI is responsive for 1-2 seconds (I suspect until this thread is activated

sys.stdin.readlines() hangs Python script

江枫思渺然 提交于 2019-11-29 03:51:56
Everytime I'm executing my Python script, it appears to hang on this line: lines = sys.stdin.readlines() What should I do to fix/avoid this? EDIT Here's what I'm doing with lines : lines = sys.stdin.readlines() updates = [line.split() for line in lines] EDIT 2 I'm running this script from a git hook so is there anyway around the EOF? This depends a lot on what you are trying to accomplish. You might be able do: for line in sys.stdin: #do something with line Of course, with this idiom as well as the readlines() method you are using, you need to somehow send the EOF character to your script so

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

谁说胖子不能爱 提交于 2019-11-29 02:26:04
问题 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

Why does “docker attach” hang?

瘦欲@ 提交于 2019-11-28 21:57:28
问题 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

Git push hangs when pushing to Github?

非 Y 不嫁゛ 提交于 2019-11-28 17:23:36
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 status returns On branch master nothing to commit, working directory clean $ git pull returns Already up

Emulator screen hangs when trying to run android application

青春壹個敷衍的年華 提交于 2019-11-28 14:41:34
I am trying for last 2 days but can not find any solution.My emulator screen hangs when trying to run android application with error message in error log as below: No command output when running: 'am start -n com.ss.hello/com.ss.hello.MainActivity -a android.intent.action.MAIN -c Exception stack trace: com.android.ddmlib.ShellCommandUnresponsiveException at com.android.ddmlib.AdbHelper.executeRemoteCommand(AdbHelper.java:408) at com.android.ddmlib.Device.executeShellCommand(Device.java:435) at com.android.ide.eclipse.adt.internal.launch.ActivityLaunchAction.doLaunchAction(ActivityLaunchAction

StandardOutput.EndOfStream Hangs

半世苍凉 提交于 2019-11-28 08:28:53
问题 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

Android GoogleAnalytics getInstance

大城市里の小女人 提交于 2019-11-28 08:07:50
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(this); mTracker = analytics.newTracker(R.xml.global_tracker); mTracker.enableAdvertisingIdCollection

Is it possible to have multiple PyPlot windows? Or am I limited to subplots?

帅比萌擦擦* 提交于 2019-11-28 08:07:46
I'm not sure how to word my question more clearly. Basically, is PyPlot limited to one instance/window? Any hack or workaround I try either causes my program to freeze or for the second pyplot window to be queued until the first one is closed. Joe Kington Sure, just open a new figure: import matplotlib.pyplot as plt plt.plot(range(10)) plt.figure() plt.plot(range(10), 'ro-') plt.figure(), plt.plot(...) plt.show() # only do this once, at the end If you're running this in the default python interpreter, this won't work, as each figure needs to enter the gui's mainloop. If you want to run things

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

為{幸葍}努か 提交于 2019-11-28 05:43:39
问题 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