1

I have a 100% normal Samsung Galaxy A3 2015 (SM-A300FU) with Android 5.0.2. It is non rooted. I notice that every time I use an app using sound (this might be an effect, but not the cause):

  • WhatsApp phone call
  • Music Folder Player Full
  • a webradio app (that plays radio continuously)

the app crashes after ~ 15 minutes. It happens with no dialog box, it returns to desktop screen.

What could cause such a bug? How to solve this?

1
+50

The issue of applications constantly crashing in Android Lollipop may be attributed to bugs in this Android version or other reasons which are described below:

  1. Audio bug (possibly AudioFocusLost)

This bug is described by a user on this thread: Why are my music player apps crashing frequently since recent Android update.

This is an inherent flaw in Lollipop where apps crash constantly. You notice this with music apps as audio stops. Some apps stop restart where they left off, others don’t. With this bug when the app crashes, the audio just cuts out, there is no on-screen error message.

In addition, more information about this bug is revealed through an error logging of different audio apps by one user, and it produced this error:

Java.lang.Exception: AudioFocusLost

With some possible reasoning that;

this exception handling may have been broken across audio apps in Android Lollipop, or possibly an overly aggressive process causing this exception in other apps

Source: https://www.reddit.com/r/GalaxyS6/comments/34ipjr/music_players_pausing_andor_closing_when_playing/


  1. Over-utilisation of system resources (e.g RAM)

It is possible that with many applications running in the background, the system resource tends to become overconsumed by RAM and CPU hungry processes such as social media apps etc.

In this case the inbuilt task manager in Samsung devices tend to kill such processes unless explicitly turned off in Smart Manager settings to conserve power and memory to cores apps (known system apps to me include media scanner and DRM content storage –consume a lot of resources when apps accessing related media are in use).

That is, I why I think it’s a possible cause although certain android versions have more pronounced effects than others, possibly due to poor memory management in a certain Android version.


  1. Android System Webview bug

This component was also held responsible for causing app crashes due to a buggy update. Many apps using the feature (typically those rendering webpages internally) could also crash. Newer versions are based on chromium however. So uninstalling the buggy update could save app crashes.


This is not the whole list of bugs causing application crashes in Lollipop, but there may be more but with respect to the question I found these reasons to be more closely related to the issue in question.

Possible fixes

  1. Before going to any advanced operations, regular cleaning of application cache and closing recent application no longer needed is a good habit to preserve system resources.

  1. Prioritising the affected applications in system mangers (Smart Manager) and preventing be “killed” when RAM is too low.

If this is futile, then more advanced operations are required.


  1. Wiping cache partition

Follow these steps:

  • Turn off your device
  • Press and hold the combination of keys (press and hold Volume Down, Volume Up and the Power button)

  • Hold the buttons until the Recovery menu shows up

  • Use Volume buttons to navigate to Recovery mode (and select it using the Power button)

  • In the Recovery mode menu, navigate to Wipe cache partition and select it with the Power button

  • When this is completed, navigate to Reboot system


  1. Factory reset

    • If nothing seems to work, maybe your device needs a fresh start.

    • Factory data reset will wipe everything off, all the apps, settings, etc. Don’t forget to backup your files!

    • Go to Settings

    • Tap Backup & Reset

    • Next, tap Factory data reset

    • Tap Reset phone


  1. Upgrade Android version

    • Upgrading the OS version can be an important way to solve bugs as developers often fix bugs in subsequent OS versions. You can do this through Settings ≥>System updates and check for available updates. Alternatively downloading appropriate firmware files from manufacturers' website and flashing via Odin

References

0

@xavier_fakrat's useful answer provides many potential reasons that could have caused the crash. After more investigation, here is what caused the crashes: the Android app optimisation feature, that can be found in Settings > Battery > Optimisation.

The solution for me was to disable optimisation for Whatsapp and music player apps.

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.