Launcher crashes and shows deadsystemexception error
Description
The launcher crashes randomly and sometimes the pre-installed launcher crashes too even though it's not in use.
Strack trace
java.lang.RuntimeException: android.os.DeadSystemException
at android.app.ApplicationPackageManager.queryIntentActivitiesAsUser(ApplicationPackageManager.java:1280)
at android.app.ApplicationPackageManager.queryIntentActivities(ApplicationPackageManager.java:1261)
at de.mm20.launcher2.music.MusicServiceImpl$getInstalledPlayerPackages$2.invokeSuspend(MusicService.kt:27)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:9)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:111)
at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:4)
at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:3)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:96)
Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@60ef0b9, Dispatchers.Default]
Caused by: android.os.DeadSystemException
... 8 more
Device info
APP.VERSION : 1.29.1
APP.VERSIONCODE : 2024022100
APP.SIGNATURE : rx1fSnL7r5/OMoFC0e1KPqTndXQ=
LAUNCHER.APP : de.mm20.launcher2.release
TIMEZONE : Asia/Kolkata
VERSION.RELEASE : 12
VERSION.INCREMENTAL : 1591b-5bf47
VERSION.SDK.NUMBER : 31
BOARD : hanoip
BOOTLOADER : MBM-3.0-hanoip_retail-9522caba9cf-230725
BRAND : motorola
CPU_ABI : arm64-v8a
CPU_ABI2 :
DISPLAY : S2RI32.32-20-9-9-2
FINGERPRINT : motorola/hanoip_retail/hanoip:12/S2RI32.32-20-9-9-2/1591b-5bf47:user/release-keys
HARDWARE : qcom
HOST : ilclbld186
ID : S2RI32.32-20-9-9-2
MANUFACTURER : motorola
MODEL : moto g(40) fusion
PRODUCT : hanoip_retail
TAGS : release-keys
TIME : 1690301047000
TYPE : user
A quick websearch reveals:
The core Android system has died and is going through a runtime restart. All running apps will be promptly killed.
This suggests that it is not an issue of Kvaesitso. It also explains why your default launcher crashes.
https://developer.android.com/reference/android/os/DeadSystemException.html
:skull: