hang

AdvertisingIdClient getAdvertisingIdInfo hangs forever

戏子无情 提交于 2019-12-05 16:57:33
问题 I'm trying to get advertising ID from Google Play services API. Here is a sample code: ... import com.google.android.gms.ads.identifier.AdvertisingIdClient; import com.google.android.gms.common.GooglePlayServicesNotAvailableException; import com.google.android.gms.common.GooglePlayServicesRepairableException; ... public class MyActivity extends Activity { @Override protected void onStart() { super.onStart(); Thread thr = new Thread(new Runnable() { @Override public void run() { try { Context

cl.exe hangs indefinitely while being invoked via MSBuild

早过忘川 提交于 2019-12-05 16:54:07
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 for every translation unit. However the system just never moves on to the link phase. I see two

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

冷暖自知 提交于 2019-12-05 14:43:09
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 longer works (there is no cursor). Is it possible to get the mouse back without stopping the application or

Play Framework Hanging when hitting app in browser

让人想犯罪 __ 提交于 2019-12-05 11:23:00
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.http.HttpErrorHandlerExceptions$$anon$1: Execution exception[[PrivilegedActionException: null]] [info] at

Eclipse Luna Hanging when Loading Debug Configuration

倖福魔咒の 提交于 2019-12-05 10:36:27
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 problems but that program works fine. From what I have read it could be something to do with the metadata

mpi4py hangs when trying to send large data

久未见 提交于 2019-12-05 09:55:00
i've recently encountered a problem trying to share large data among several processors using the command 'send' from the mpi4py-library. Even a 1000x3 numpy float array is too large to be sent. Any ideas how to overcome this problem? thx in advance. I've found a simple solution. Divide data into small enough chunks... I encountered this same problem with Isend (not with Send ). It appears that the problem was due to the sending process terminating before the receiver had received the data. I fixed this by including a comm.barrier() call at the end of each of the processes. Point-to-point send

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

匆匆过客 提交于 2019-12-05 09:03:41
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(); } private async void MainWindow_OnLoaded(object sender, RoutedEventArgs e) { await DoHolyWar();

Program hangs after leaving screen saver or locking computer

烂漫一生 提交于 2019-12-04 18:39:17
问题 Our program works fine, until someone locks the computer or the screen-saver pops up (but not ctrl+alt+delete) . Once the computer is unlocked/the screen saver is closed, the application stops drawing everything except the title bar, and stops responding to input - it displays a mostly-white window which can't be moved or closed. (Example of application freezing - the mountains are from my desktop background) If we let it sit for about 5~10 minutes, it comes back to life, and doesn't hang

Why does me use HttpClients.createDefault() as HttpClient singleton instance execute third request always hang

杀马特。学长 韩版系。学妹 提交于 2019-12-04 15:55:15
All , I create : public static final HttpClient DEFAULT_HTTPCLIENT = HttpClients .createDefault(); for(int i=0 ; i<5; i++){ DEFAULT_HTTPCLIENT.execute(requests[i]); } But when loop is to i =2 , that means just execute first two request , till third request , the client will hang and seems dead loop . I refer some materials , I got may be caused by Http Thread Pool configuration limited . But I know what is standard solutions for this issue ? Since I want to send any request any times, but I don't want each time to create new HttpClient . So Do you have any good and standard suggestions for

Java Thread hanging without deadlocks

坚强是说给别人听的谎言 提交于 2019-12-04 15:36:53
I am currently having some trouble with a process that is hanging. First of all, the below thread dump shows no deadlock. Another interesting thing is that the process is hanging at java.lang.System.identityHashCode method. The currently CPU usage of that process is 0%, sometimes peaks at 1%... normally the process uses 100%. It is using 1.7GB of RAM (which is normal for this process). The machine has plenty of CPUs, disk space and RAM available. Attaching to process ID 4146, please wait... Debugger attached successfully. Server compiler detected. JVM version is 23.7-b01 Deadlock Detection: No