hang

App hangs for 20 secs on exit after TcpClient BeginConnect

北城余情 提交于 2019-12-08 07:10:38
问题 I have problem with strange behavior of TcpClient.BeginConnect() and TcpClient.EndConnect() methods. I use BeginConnect() to add timeout to Connect() method (see extension method code below). If I get connected I call EndConnect() and every thing is ok, but If I get timeout I can't call EndConnect() because it will block for about 20 seconds, so I just call this non-blocking code: result.AsyncWaitHandle.Close(); result.AsyncWaitHandle.Dispose(); client.Close(); Problem is when I close the

BitmapFactory.decodeFile and ImageView strange thing in Android

China☆狼群 提交于 2019-12-08 05:22:23
问题 I have strange problem - it occurs on xperia (android 4.0.3) but not on samsung S plus (2.3.6). In application i'm using google maps APIv2 with support library (in another activity. Not sure if matters). I think i have narrowed problem to: private Bitmap bitmap; private String st; private static final String PHOTO_DIR = "photodir"; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); [...] st = Environment.getExternalStorageDirectory().toString()

cl.exe hangs indefinitely while being invoked via MSBuild

那年仲夏 提交于 2019-12-07 10:58:38
问题 I am trying to run MSBuild on my (mostly C++) projects (imagine a really humongous code base). Visual Studio 2015 is the toolset in question ( Windows 7 SP1 and VS 2015 Update 2 ). Even with /m:1 (and thereby forcing it to use only one processor) I am finding some completely random project constantly hanging at the compile phase. For example, when this issue happens, if I look at the offending project and the files it comprises of, I can see that the .obj files have been created successfully

LWJGL grabbed mouse - debug if application hangs or when breakpoint hits with grabbed mouse

若如初见. 提交于 2019-12-07 07:25:16
问题 I have a LWJGL program (LWJGL 2.9.0) that sometimes randomly hangs. The problem with debugging it is that mouse is always grabbed. On Windows it's possible to get mouse back without any issues, but on linux (I use linux Kubuntu) the only way I know to get mouse back is to stop the application. The same issue happens when a breakpoint hits when mouse is grabbed. Using netbeans debug mode I can pause application and get some information at any time, but when the application hangs mouse no

Youtube embedded in UIWebView causes crash on iPad when entering full screen

徘徊边缘 提交于 2019-12-07 06:54:53
问题 I'm trying to embed a Youtube video using a mixture of this technique, and this Youtube SDK blog post in a universal app. The iPhone version, using the same code, works fine. On the iPad the video does embed, and it plays fine in it's embedded form, but as soon as you tap the full screen button the app crashes (buttons do not respond, the device does not rotate). The music from the Youtube video keeps playing. There is no error message logged but the app does register as 'Paused' or hung in

Play Framework Hanging when hitting app in browser

牧云@^-^@ 提交于 2019-12-07 05:19:33
问题 I am running an app in Play using activator run , and maybe 3 out of 5 times, it will just hang, when I go to http://localhost:9000/ , it just sits there spinning forever. I'm seeing a lot of promise timed out errors also. Where should I look for this issue? I turned up logging with logLevel := Level.Debug , but I see nothing amiss. While the app is spinning, I see no logging at all. If I just let it sit and spin for a long time (~5 min) it will eventually give this error: [info] play.api

Eclipse Luna Hanging when Loading Debug Configuration

≡放荡痞女 提交于 2019-12-07 05:15:06
问题 Having a problem with Eclipse (Luna) IDE, while running the program I encountered a never ending loop so had to terminate the program. After which every-time I try to re-run the program it just hangs when loading the Debug Configuration. I am trying to create a Eclipse Plug-in to retrieve a file name and add comments to it. I don't believe there's an error with the program as it was working fine before. I have tested a simple helloWorld program in another workspace to see if there were any

How to find which method 'hangs' with async/await?

人盡茶涼 提交于 2019-12-07 05:00:21
问题 In the 'old' times it was very easy to track which method is hanging: just go to debugger, hit 'pause' button and go through stack traces. Now however, if the problem is in the async method, this approach does not work - since the next piece of code to execute is buried somewhere in the continuation tasks (technically it does not even hang)... Is there a way for such easy debugging with tasks? UPD. Example: public partial class MainWindow : Window { public MainWindow() { InitializeComponent()

BitmapFactory.decodeFile and ImageView strange thing in Android

断了今生、忘了曾经 提交于 2019-12-07 04:09:27
I have strange problem - it occurs on xperia (android 4.0.3) but not on samsung S plus (2.3.6). In application i'm using google maps APIv2 with support library (in another activity. Not sure if matters). I think i have narrowed problem to: private Bitmap bitmap; private String st; private static final String PHOTO_DIR = "photodir"; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); [...] st = Environment.getExternalStorageDirectory().toString() + "/" + PHOTO_DIR + "/test.jpg"; bitmap = BitmapFactory.decodeFile(st); ImageView im = (ImageView)

SQL Server 2017 installation is stuck

荒凉一梦 提交于 2019-12-07 03:19:14
问题 For some reason I can't get SQL Server 2017 installed on my Windows 10 machine. First thing to do with this buggy installer is that I had to uninstall VCRuntime 2017 in order for the installer to work. And now, the installer is stuck at this point exactly every time I try to install it: What I've tried so far: Killing msiexec process Running the setup with additional parameter as mentioned here Setup.exe /SkipInstallerRunCheck Restarting ... reinstalling ... turning off anti-virus ... [Solved