-
-
Notifications
You must be signed in to change notification settings - Fork 489
Closed
Description
Describe the bug
The application crashes due to java.lang.IllegalArgumentException
while creating the ApplicationShortcuts. The Play Store reported this error, and 17 occurrences were reported for a specific user.
Expected behavior
The application should not crash.
Environment
- Version of Kiwix Android : 3.13.0
- Device : HONOR HNWDY-M (HONOR X6a)
- OS version : Android 14 (SDK 34)
Logs
Exception java.lang.RuntimeException:
at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:4610)
at android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:4806)
at android.app.servertransaction.LaunchActivityItem.execute (LaunchActivityItem.java:118)
at android.app.servertransaction.TransactionExecutor.executeCallbacks (TransactionExecutor.java:153)
at android.app.servertransaction.TransactionExecutor.execute (TransactionExecutor.java:104)
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:3067)
at android.os.Handler.dispatchMessage (Handler.java:117)
at android.os.Looper.loopOnce (Looper.java:210)
at android.os.Looper.loop (Looper.java:302)
at android.app.ActivityThread.main (ActivityThread.java:9652)
at java.lang.reflect.Method.invoke
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:601)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1062)
Caused by java.lang.IllegalArgumentException:
at android.os.Parcel.createExceptionOrNull (Parcel.java:3081)
at android.os.Parcel.createException (Parcel.java:3061)
at android.os.Parcel.readException (Parcel.java:3044)
at android.os.Parcel.readException (Parcel.java:2986)
at android.content.pm.IShortcutService$Stub$Proxy.setDynamicShortcuts (IShortcutService.java:615)
at android.content.pm.ShortcutManager.setDynamicShortcuts (ShortcutManager.java:153)
at org.kiwix.kiwixmobile.main.KiwixMainActivity.createApplicationShortcuts (KiwixMainActivity.java:249)
at org.kiwix.kiwixmobile.core.main.CoreMainActivity.onCreate (CoreMainActivity.java:249)
at org.kiwix.kiwixmobile.main.KiwixMainActivity.onCreate (KiwixMainActivity.java:119)
at android.app.Activity.performCreate (Activity.java:9037)
at android.app.Activity.performCreate (Activity.java:8996)
at android.app.Instrumentation.callActivityOnCreate (Instrumentation.java:1470)
at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:4592)
Caused by android.os.RemoteException: Remote stack trace:
at com.android.server.pm.ShortcutPackage.ensureNotImmutable (ShortcutPackage.java:310)
at com.android.server.pm.ShortcutPackage.ensureNotImmutable (ShortcutPackage.java:316)
at com.android.server.pm.ShortcutPackage.ensureImmutableShortcutsNotIncluded (ShortcutPackage.java:329)
at com.android.server.pm.ShortcutService.setDynamicShortcuts (ShortcutService.java:2075)
at android.content.pm.IShortcutService$Stub.onTransact (IShortcutService.java:275)