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

Sometimes PEKO fails with exception: java.lang.IllegalStateException #29

Open
psk7 opened this issue Oct 26, 2023 · 9 comments
Open

Sometimes PEKO fails with exception: java.lang.IllegalStateException #29

psk7 opened this issue Oct 26, 2023 · 9 comments

Comments

@psk7
Copy link

psk7 commented Oct 26, 2023

Used version: implementation 'com.markodevcic:peko:3.0.3'

Some Google play report:
Device: samsung dm1q (Galaxy S23)
Android: Android 13 (SDK 33)
compileSdkVersion: 33
targetSdkVersion: 33
minSdkVersion: 24

Sometimes PEKO fails with exception:

Exception java.lang.IllegalStateException:
  at com.markodevcic.peko.PekoActivity.onPostCreate (PekoActivity.kt:35)
  at android.app.Instrumentation.callActivityOnPostCreate (Instrumentation.java:1458)
  at android.app.ActivityThread.handleStartActivity (ActivityThread.java:4231)
  at android.app.servertransaction.TransactionExecutor.performLifecycleSequence (TransactionExecutor.java:221)
  at android.app.servertransaction.TransactionExecutor.cycleToPath (TransactionExecutor.java:201)
  at android.app.servertransaction.TransactionExecutor.executeLifecycleState (TransactionExecutor.java:173)
  at android.app.servertransaction.TransactionExecutor.execute (TransactionExecutor.java:97)
  at android.app.ActivityThread$H.handleMessage (ActivityThread.java:2574)
  at android.os.Handler.dispatchMessage (Handler.java:106)
  at android.os.Looper.loopOnce (Looper.java:226)
  at android.os.Looper.loop (Looper.java:313)
  at android.app.ActivityThread.main (ActivityThread.java:8757)
  at java.lang.reflect.Method.invoke
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:604)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1067)
@deva666
Copy link
Owner

deva666 commented Oct 27, 2023

Looking into it, thanks for reporting!

@deva666
Copy link
Owner

deva666 commented Oct 30, 2023

Although I could not reproduce it, I refactor that part of the code. New release v3.0.4 should fix it

@psk7
Copy link
Author

psk7 commented Oct 30, 2023

I can't to intentionally reproduce this behavior too. It seems to require some specific conditions. According to the documentation, there should be no problems, but Crashlytics shows that it sometimes happens. In an application with an audience of about 1000 users, this happens once every few weeks.
But, thanks you for fixing, anyway.

@sherbaev
Copy link

Issue is still reproducible with latest version of peko library 3.0.4. Can you please check it ? Screenshot 2024-01-15 at 15 44 08

@deva666
Copy link
Owner

deva666 commented Jan 15, 2024

Thanks for letting me know, looking into it

@deva666
Copy link
Owner

deva666 commented Jan 19, 2024

@sherbaev can you please show me an example how you call the library? I am trying to reproduce this

@psk7
Copy link
Author

psk7 commented Jan 19, 2024

Issue is still reproducible with latest version of peko library 3.0.4. Can you please check it ?

Confirm.
изображение

изображение

@deva666
Copy link
Owner

deva666 commented Apr 9, 2024

Can you please try the latest version (v3.0.5)?

@sherbaev
Copy link

sherbaev commented Apr 9, 2024

Can you please try the latest version (v3.0.5)?
I will try to update in upcoming releases and will let you know. Thank you for the awesome lib

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