Skip to content
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

Application crashes due to java.lang.IllegalArgumentException while creating the ApplicationShortcuts. #4166

Open
MohitMaliFtechiz opened this issue Jan 7, 2025 · 0 comments · May be fixed by #4167
Assignees
Labels
Milestone

Comments

@MohitMaliFtechiz
Copy link
Collaborator

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.

Screenshots
Image

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant