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

Unable to start Gligar activity #14

Open
MKickelberg opened this issue Aug 17, 2020 · 2 comments
Open

Unable to start Gligar activity #14

MKickelberg opened this issue Aug 17, 2020 · 2 comments
Assignees

Comments

@MKickelberg
Copy link

MKickelberg commented Aug 17, 2020

Starting the image picker crashes on some devices sometimes. I dont know why. Any idea what the following is about:

Fatal Exception: java.lang.RuntimeException: Unable to start activity ComponentInfo{rstls.pdfbook/com.opensooq.supernova.gligar.ui.ImagePickerActivity}: java.lang.ClassCastException: java.lang.Boolean cannot be cast to java.lang.Integer
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3488)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3635)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:83)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2175)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:237)
at android.app.ActivityThread.main(ActivityThread.java:7860)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1075)

AND

Caused by java.lang.ClassCastException: java.lang.Boolean cannot be cast to java.lang.Integer
at com.opensooq.supernova.gligar.ui.PickerViewModel.loadSaveState$gligar_release(PickerViewModel.java:205)
at com.opensooq.supernova.gligar.ui.ImagePickerActivity.onCreate(ImagePickerActivity.java:118)
at android.app.Activity.performCreate(Activity.java:7955)
at android.app.Activity.performCreate(Activity.java:7944)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1307)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3463)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3635)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:83)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2175)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:237)
at android.app.ActivityThread.main(ActivityThread.java:7860)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1075)

This never happened on my test devices so I cannot give any more details. But this seems to constantly happen to about 2% of my users.

I am a beginner so this might be due to some fault of mine? I am confused because this happens only "sometimes" to "some users". Do I have to declare this activity in the AndroidManifest even if its imported or how does this work.

@hani-momanii
Copy link
Member

@MKickelberg can you provide the device model and android version?

@dastan1302
Copy link

@hani-momanii We also having this issue
image
image

Because we using "com.nbsp:materialfilepicker:1.9.1" from https://github.com/nbsp-team/MaterialFilePicker, which as found uses your library internally and causes crash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants