Android Question Process has died

EvgenyB4A

Active Member
Licensed User
Longtime User
I need my application run 24/7.
But after some hours of running (4,5 or 6 hours) the application fails without any runtime error. I attach the unfiltered log.
Please help to find out any hint to the reason of app death.
The keyword to find in text: has died
 

Attachments

  • log of app died.txt
    131.3 KB · Views: 163

DonManfred

Expert
Licensed User
Longtime User
without any runtime error
wrong

for example:

and also


i did not look further....
 
Upvote 0

eps

Expert
Licensed User
Longtime User
Is this an Activity or a Service? Please can you provide a little more detail about what you're trying to achieve and how you're trying to achieve this please.
 
Upvote 0

EvgenyB4A

Active Member
Licensed User
Longtime User
Is this an Activity or a Service? Please can you provide a little more detail about what you're trying to achieve and how you're trying to achieve this please.
This is an Activity. It displays the panel with images. Each 65 sec the app send HTTP request to our server to inform the app lives.
 
Upvote 0

EvgenyB4A

Active Member
Licensed User
Longtime User
It is not clear why it crashed. See my answer here about the UI Cloud which is an app running on multiple devices for months: https://www.b4x.com/android/forum/t...do-i-have-a-memory-problem.50573/#post-316456
Usually I use the similar solution. I have a watchdog app that is installed as homescreen(launcher). Its service(not foreground) has UDP socket that receives packets from main app UDP socket every 1 second. If the packets will not arrive during 10 seconds the watchdog service restart all the Android.
Is it correct enough?

For now I uninstalled the watchdog to test where and why my main app crash.
 
Upvote 0

EvgenyB4A

Active Member
Licensed User
Longtime User
There are many warning messages in the attached log like: "Skipped xx frames! The application may be doing too much work on its main thread."
Is this something to pay special attention and need to care?
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…