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

IllegalStateException after moving away from Pages #8401

Closed
daniloercoli opened this issue Oct 9, 2018 · 4 comments · Fixed by wordpress-mobile/WordPress-FluxC-Android#1434

Comments

@daniloercoli
Copy link
Contributor

I've got the crash reported below a couple of seconds after moved away from Pages.

I was on Pages, deleted a page, went back to main app screen, and the went to posts-> create new post. The crash happened while i was in the editor with a blank content (it should not be related to the editor though).

10-09 12:41:07.163 24498-24498/org.wordpress.android E/AndroidRuntime: FATAL EXCEPTION: main
    Process: org.wordpress.android, PID: 24498
    org.greenrobot.eventbus.EventBusException: Invoking subscriber failed
        at org.greenrobot.eventbus.EventBus.handleSubscriberException(EventBus.java:505)
        at org.greenrobot.eventbus.EventBus.invokeSubscriber(EventBus.java:487)
        at org.greenrobot.eventbus.EventBus.invokeSubscriber(EventBus.java:479)
        at org.greenrobot.eventbus.HandlerPoster.handleMessage(HandlerPoster.java:67)
        at android.os.Handler.dispatchMessage(Handler.java:106)
        at android.os.Looper.loop(Looper.java:164)
        at android.app.ActivityThread.main(ActivityThread.java:6494)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
     Caused by: java.lang.IllegalStateException: Already resumed
        at kotlin.coroutines.experimental.SafeContinuation.resume(SafeContinuationJvm.kt:49)
        at org.wordpress.android.fluxc.store.PageStore.onPostChanged(PageStore.kt:179)
        at java.lang.reflect.Method.invoke(Native Method)
        at org.greenrobot.eventbus.EventBus.invokeSubscriber(EventBus.java:485)
        at org.greenrobot.eventbus.EventBus.invokeSubscriber(EventBus.java:479) 
        at org.greenrobot.eventbus.HandlerPoster.handleMessage(HandlerPoster.java:67) 
        at android.os.Handler.dispatchMessage(Handler.java:106) 
        at android.os.Looper.loop(Looper.java:164) 
        at android.app.ActivityThread.main(ActivityThread.java:6494) 
        at java.lang.reflect.Method.invoke(Native Method) 
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438) 
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807) 
10-09 12:41:07.164 24498-24498/org.wordpress.android E/WordPress-EDITOR: HTML content of Aztec Editor before the crash:
10-09 12:41:07.173 24498-24498/org.wordpress.android D/WordPress-EDITOR: Below are the details of the content in the editor:
10-09 12:41:07.183 24498-24498/org.wordpress.android D/WordPress-EDITOR:   length = 0
    x        000 -> 000 : ChangeWatcher
    x        000 -> 000 : ChangeWatcher
    x        000 -> 000 : TextKeyListener
    x        000 -> 000 : SpanController
    <        000 -> 000 : START
    <        000 -> 000 : END
@daniloercoli daniloercoli added this to the 11.0 milestone Oct 9, 2018
@loremattei loremattei modified the milestones: 11.0, 11.1 Oct 23, 2018
@loremattei
Copy link
Contributor

Moving this to 11.1 since 11.0 has been released.

@loremattei loremattei modified the milestones: 11.1 ❄️, 11.2 Nov 5, 2018
@jtreanor jtreanor modified the milestones: 11.2 ❄️, 11.3 Nov 19, 2018
@jtreanor jtreanor modified the milestones: 11.3 ❄️, 11.4 Dec 3, 2018
@jkmassel jkmassel modified the milestones: 11.4 ❄️, 11.5 ❄️ Dec 18, 2018
@daniloercoli daniloercoli modified the milestones: 11.5, 11.6 Dec 21, 2018
@jtreanor jtreanor modified the milestones: 11.6, 11.7 Jan 25, 2019
@loremattei loremattei modified the milestones: 11.7 ❄️, 11.8, 11.8 ❄️, 11.9 Feb 11, 2019
@jtreanor jtreanor modified the milestones: 11.9 ❄️, 12.0 Mar 11, 2019
@jtreanor jtreanor modified the milestones: 12.0 ❄️, 12.1 Mar 25, 2019
@jtreanor jtreanor modified the milestones: 12.1 ❄️, 12.2 Apr 8, 2019
@loremattei loremattei removed this from the 12.2 ❄️ milestone Apr 23, 2019
@designsimply
Copy link
Contributor

I was on Pages, deleted a page, went back to main app screen, and the went to posts-> create new post. The crash happened while i was in the editor with a blank content.

I tried testing these steps using WPAndroid alpha-170 on Pixel 3 Android 9 and the app did not crash for me.

@daniloercoli because you only saw the issue happen one time and because it has not come up again for over 6 months from what I can see, would you agree we can close this issue for now and re-visit if it gets reported again or do you think it should be tested a bit more before closing?

@malinajirka
Copy link
Contributor

I've checked Sentry and it seems that this crash was fixed -> Closing.

@malinajirka
Copy link
Contributor

Sentry Issue: WORDPRESS-ANDROID-7G

IllegalStateException: Already resumed
    at org.wordpress.android.fluxc.store.PageStore.onPostChanged(PageStore.kt:230)
...
(7 additional frame(s) were not displayed)

EventBusException: Invoking subscriber failed
    at org.greenrobot.eventbus.EventBus.handleSubscriberException(EventBus.java:527)
    at org.greenrobot.eventbus.EventBus.invokeSubscriber(EventBus.java:509)
    at org.greenrobot.eventbus.EventBus.invokeSubscriber(EventBus.java:501)
    at org.greenrobot.eventbus.HandlerPoster.handleMessage(HandlerPoster.java:67)
    at android.os.Handler.dispatchMessage(Handler.java:105)
...
(5 additional frame(s) were not displayed)

Invoking subscriber failed

Note: Thank you @jd-alexander for noticing I created a duplicated issue.

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

Successfully merging a pull request may close this issue.

6 participants