New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash on LG devices when using `killBackgroundProcesses` #748

Closed
d4rken opened this Issue Feb 15, 2017 · 2 comments

Comments

1 participant
@d4rken
Owner

d4rken commented Feb 15, 2017

There seems to be a ROM bug on LG devices (e.g. LG-H830 [NRD90U], LG-H850[NRD90U], LG-H918[NRD90M]) running Android 7.0 where the system call killBackgroundProcesses can throw an NPE, probably a race condition.

Some ASUS devices on Android 5.0 (K00E, K00Z, K016) also seem to exhibit this.

Not sure about fixing this yet, isn't really SD Maids fault.

java.lang.NullPointerException: Attempt to read from field 'java.lang.String com.android.server.am.ProcessRecord.processName' on a null object reference
        at android.os.Parcel.readException(Parcel.java:1689)
        at android.os.Parcel.readException(Parcel.java:1636)
        at android.app.ActivityManagerProxy.killBackgroundProcesses(ActivityManagerNative.java:5246)
        at android.app.ActivityManager.killBackgroundProcesses(ActivityManager.java:3132)
java.lang.NullPointerException: Attempt to invoke virtual method 'int android.util.SparseArray.size()' on a null object reference
        at android.os.Parcel.readException(Parcel.java:1546)
        at android.os.Parcel.readException(Parcel.java:1493)
        at android.app.ActivityManagerProxy.killBackgroundProcesses(ActivityManagerNative.java:4176)
        at android.app.ActivityManager.killBackgroundProcesses(ActivityManager.java:2294)

@d4rken d4rken modified the milestones: Next Tasks, v4.6.3 Feb 15, 2017

@d4rken

This comment has been minimized.

Owner

d4rken commented Feb 15, 2017

Alright let's throw LG users a bone here and catch this...

First thought this might be some custom ROM shenigans, but this looks like a legit ROM for those device.

LG 😦

@d4rken d4rken closed this Feb 15, 2017

@d4rken

This comment has been minimized.

Owner

d4rken commented Feb 16, 2017

lg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment