Skip to content

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

Closed
@Andoridswordsman

Description

@Andoridswordsman

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugStaleThere has been a lack of activity on this issue and it may be closed soon.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions