Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android - Process Has Died Issue

Application simply crashes and finishes the activity without much info.

04-01 13:30:43.739: W/AudioService(180): setMode() client died
04-01 13:30:43.739: W/GpsLocationProvider(180): Unneeded remove listener for uid 1000
04-01 13:30:43.739: D/libloc(180): loc_eng_stop called
04-01 13:30:43.739: I/ActivityManager(180): Process com.company.android (pid 2590)has died.
04-01 13:30:43.739: W/ActivityManager(180): Scheduling restart of crashed service com.company.android/.utilities.OurGPSService in 80000ms

Log retrieved is much less, it simply shows that the process just died and causes our GPS Service to restart. Is it some ndk crash or something related to MediaPlayer? Please help in identifying the issue.

like image 998
xydev Avatar asked Apr 17 '13 05:04

xydev


1 Answers

I found 2 different answers to similar questions:

  • ActivityManager Process has died issue
    • references an Android bug report with reusing bitmaps from different threads
  • Android process produces logcat “has died” message very often.
    • claims that this can just be normal behaviour in some cases

To add to this, I was chasing a crash where the ApplicationManager throws a ClassCastException from within the Android framework. Its only because I know I did a certain hack that I was able to determine that part of the trace was for my app.

The lesson I learnt is that sometimes the crash log has no evidence of your app's name. (The other lesson is that hacks always come back to bite the hacker...)

like image 95
Richard Le Mesurier Avatar answered Nov 04 '22 05:11

Richard Le Mesurier