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

Fatal Exception: java.lang.AssertionError: Pausing an activity that is not the current activity, this is incorrect! #25861

Closed
Andoridswordsman opened this issue Jul 29, 2019 · 8 comments
Labels
Bug Stale There has been a lack of activity on this issue and it may be closed soon.

Comments

@Andoridswordsman
Copy link

Fatal Exception: java.lang.AssertionError: Pausing an activity that is not the current activity, this is incorrect! Current activity: GSReactActivity Paused activity: GSReactActivity
at com.facebook.infer.annotation.Assertions.assertCondition + 72(Assertions.java:72)
at com.facebook.react.ReactInstanceManager.onHostPause + 511(ReactInstanceManager.java:511)
at com.facebook.react.ReactActivityDelegate.onPause + 94(ReactActivityDelegate.java:94)
at com.gsbaselib.base.rn.GSReactActivityDelegate.onPause + 79(GSReactActivityDelegate.java:79)
at com.gsbaselib.base.rn.GSBaseReactActivity.onPause + 80(GSBaseReactActivity.java:80)
at android.app.Activity.performPause + 7663(Activity.java:7663)
at android.app.Instrumentation.callActivityOnPause + 1536(Instrumentation.java:1536)
at com.qiyukf.unicorn.i.a.callActivityOnPause(a.java:2)
at android.app.ActivityThread.performPauseActivityIfNeeded + 4726(ActivityThread.java:4726)
at android.app.ActivityThread.performPauseActivity + 4691(ActivityThread.java:4691)
at android.app.ActivityThread.handlePauseActivity + 4626(ActivityThread.java:4626)
at android.app.servertransaction.PauseActivityItem.execute + 45(PauseActivityItem.java:45)
at android.app.servertransaction.TransactionExecutor.executeLifecycleState + 145(TransactionExecutor.java:145)
at android.app.servertransaction.TransactionExecutor.execute + 70(TransactionExecutor.java:70)
at android.app.ActivityThread$H.handleMessage + 2199(ActivityThread.java:2199)
at android.os.Handler.dispatchMessage + 112(Handler.java:112)
at android.os.Looper.loop + 216(Looper.java:216)
at android.app.ActivityThread.main + 7625(ActivityThread.java:7625)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run + 524(RuntimeInit.java:524)
at com.android.internal.os.ZygoteInit.main + 987(ZygoteInit.java:987)

React Native version:
0.59.9

Describe what you expected to happen:
image

Snack, code example, screenshot, or link to a repository:

@Andoridswordsman
Copy link
Author

anybody here?

@chakrihacker
Copy link
Contributor

Can you provide more details about GSReactActivity??

@Andoridswordsman
Copy link
Author

Can you provide more details about GSReactActivity??

There are many such problem, it' s nothing to do with GSReactActivity

@dimlksin2
Copy link

phone_model: SM-J600F
android_version: 9

java.lang.AssertionError: Pausing an activity that is not the current activity, this is incorrect! Current activity: MainActivity Paused activity: MainActivity
at com.facebook.infer.annotation.Assertions.assertCondition(Assertions.java:72)
at com.facebook.react.ReactInstanceManager.onHostPause(ReactInstanceManager.java:511)
at com.facebook.react.ReactActivityDelegate.onPause(ReactActivityDelegate.java:94)
at com.facebook.react.ReactActivity.onPause(ReactActivity.java:58)
at android.app.Activity.performPause(Activity.java:7619)
at android.app.Instrumentation.callActivityOnPause(Instrumentation.java:1469)
at android.app.ActivityThread.performPauseActivityIfNeeded(ActivityThread.java:4257)
at android.app.ActivityThread.performPauseActivity(ActivityThread.java:4222)
at android.app.ActivityThread.handlePauseActivity(ActivityThread.java:4174)
at android.app.servertransaction.TransactionExecutor.performLifecycleSequence(TransactionExecutor.java:187)
at android.app.servertransaction.TransactionExecutor.cycleToPath(TransactionExecutor.java:165)
at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:142)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:70)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1960)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7076)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:494)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:965)

@HelloJack0
Copy link

Huawei HUAWEI P30 lite (HWMAR), Android 9
java.lang.AssertionError:
at com.facebook.infer.annotation.Assertions.assertCondition (Assertions.java:72)
at com.facebook.react.ReactInstanceManager.onHostPause (ReactInstanceManager.java:511)
at com.facebook.react.ReactActivityDelegate.onPause (ReactActivityDelegate.java:94)
at com.facebook.react.ReactActivity.onPause (ReactActivity.java:58)
at com.alpha.app.MainActivity.onPause (MainActivity.java:75)
at android.app.Activity.performPause (Activity.java:7646)
at android.app.Instrumentation.callActivityOnPause (Instrumentation.java:1536)
at android.app.ActivityThread.performPauseActivityIfNeeded (ActivityThread.java:4650)
at android.app.ActivityThread.performPauseActivity (ActivityThread.java:4615)
at android.app.ActivityThread.handlePauseActivity (ActivityThread.java:4550)
at android.app.servertransaction.PauseActivityItem.execute (PauseActivityItem.java:45)
at android.app.servertransaction.TransactionExecutor.executeLifecycleState (TransactionExecutor.java:145)
at android.app.servertransaction.TransactionExecutor.execute (TransactionExecutor.java:70)
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:2155)
at android.os.Handler.dispatchMessage (Handler.java:109)
at android.os.Looper.loop (Looper.java:207)
at android.app.ActivityThread.main (ActivityThread.java:7539)
at java.lang.reflect.Method.invoke (Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:524)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:958)

@Grom-S
Copy link

Grom-S commented Oct 10, 2019

What are the steps to reproduce this issue? I am getting the same crash reports, but not sure how to reproduce it locally?

@stale
Copy link

stale bot commented Jan 8, 2020

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions.

@stale stale bot added the Stale There has been a lack of activity on this issue and it may be closed soon. label Jan 8, 2020
@stale
Copy link

stale bot commented Jan 15, 2020

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.

@stale stale bot closed this as completed Jan 15, 2020
@facebook facebook locked as resolved and limited conversation to collaborators Jan 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Stale There has been a lack of activity on this issue and it may be closed soon.
Projects
None yet
Development

No branches or pull requests

5 participants