Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

help debugging thread (AsyncTask) RuntimeException cause in Android/Eclipse

I have several AsyncTask worker threads, and during runtime one of them shows up in Eclipse as "exception RuntimeException." I am having trouble finding out the cause of the exception, or even what thread/code was running.

All I see is Thread 11, AsyncTask #2. Beneath, it says:

Thread.run() line: 1096
ThreadPoolExecutor$Worker.run() line: 561
ThreadPoolExecutor.runWorker(ThreadPoolExecutor$Worker) line: 1086

none of which give me hints what code caused the exception. I inspected the variables, but I also do not see any hints of this. I do not see anything about an exception in my LogCat either.

like image 632
gnychis Avatar asked Jul 20 '11 16:07

gnychis


1 Answers

I do not see anything about an exception in my LogCat either.

Chances are the program pauses itself and you are not resuming it with the Eclipse debugger. Only after that will the Exception be show in the console.

like image 55
Vincent Mimoun-Prat Avatar answered Oct 28 '22 10:10

Vincent Mimoun-Prat