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

Modal crash #15720

Closed
AnyGong opened this issue Aug 31, 2017 · 0 comments
Closed

Modal crash #15720

AnyGong opened this issue Aug 31, 2017 · 0 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@AnyGong
Copy link

AnyGong commented Aug 31, 2017

Is this a bug report?

Yes

Have you read the Contributing Guidelines?

A small module that is integrated in the native. Which page has an asynchronous request operation, time-consuming longer, after the success of the request, will use Modal pop window prompts to inform the user. In the request process, such as by pressing the return key to return to the original level of the interface, then click on the entrance to enter the module, the crash.

Environment

  1. react-native -v0.43.3:
  2. node -v8.2.1:
  3. npm -v5.3.0:
  4. yarn --0.27.5:

Then, specify:

  • Target Platform:
  • Development Operating System:
  • Build tools:

Steps to Reproduce

(Write your steps here:)

Expected Behavior

(Write what you thought would happen.)

Actual Behavior

: android.view.WindowManager$BadTokenException: Unable to add window -- token android.os.BinderProxy@bd9f6e5 is not valid; is your activity running? 08-30 14:35:32.957 18464-18464/? W/System.err: at android.view.ViewRootImpl.setView(ViewRootImpl.java:579) 08-30 14:35:32.957 18464-18464/? W/System.err: at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:313) 08-30 14:35:32.957 18464-18464/? W/System.err: at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:86) 08-30 14:35:32.957 18464-18464/? W/System.err: at android.app.Dialog.show(Dialog.java:322) 08-30 14:35:32.957 18464-18464/? W/System.err: at com.facebook.react.views.modal.ReactModalHostView.showOrUpdate(ReactModalHostView.java:250) 08-30 14:35:32.957 18464-18464/? W/System.err: at com.facebook.react.views.modal.ReactModalHostManager.onAfterUpdateTransaction(ReactModalHostManager.java:107) 08-30 14:35:32.957 18464-18464/? W/System.err: at com.facebook.react.views.modal.ReactModalHostManager.onAfterUpdateTransaction(ReactModalHostManager.java:28) 08-30 14:35:32.957 18464-18464/? W/System.err: at com.facebook.react.uimanager.ViewManager.updateProperties(ViewManager.java:37) 08-30 14:35:32.957 18464-18464/? W/System.err: at com.facebook.react.uimanager.NativeViewHierarchyManager.createView(NativeViewHierarchyManager.java:227) 08-30 14:35:32.957 18464-18464/? W/System.err: at com.facebook.react.uimanager.UIViewOperationQueue$CreateViewOperation.execute(UIViewOperationQueue.java:152) 08-30 14:35:32.957 18464-18464/? W/System.err: at com.facebook.react.uimanager.UIViewOperationQueue$2.run(UIViewOperationQueue.java:781) 08-30 14:35:32.957 18464-18464/? W/System.err: at com.facebook.react.uimanager.UIViewOperationQueue.flushPendingBatches(UIViewOperationQueue.java:843) 08-30 14:35:32.958 18464-18464/? W/System.err: at com.facebook.react.uimanager.UIViewOperationQueue.access$1600(UIViewOperationQueue.java:48) 08-30 14:35:32.958 18464-18464/? W/System.err: at com.facebook.react.uimanager.UIViewOperationQueue$3.runGuarded(UIViewOperationQueue.java:815) 08-30 14:35:32.958 18464-18464/? W/System.err: at com.facebook.react.bridge.GuardedRunnable.run(GuardedRunnable.java:21) 08-30 14:35:32.958 18464-18464/? W/System.err: at android.os.Handler.handleCallback(Handler.java:739) 08-30 14:35:32.958 18464-18464/? W/System.err: at android.os.Handler.dispatchMessage(Handler.java:95) 08-30 14:35:32.958 18464-18464/? W/System.err: at android.os.Looper.loop(Looper.java:148) 08-30 14:35:32.958 18464-18464/? W/System.err: at android.app.ActivityThread.main(ActivityThread.java:5438) 08-30 14:35:32.958 18464-18464/? W/System.err: at java.lang.reflect.Method.invoke(Native Method) 08-30 14:35:32.958 18464-18464/? W/System.err: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:739) 08-30 14:35:32.958 18464-18464/? W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:629) 08-30 14:35:32.966 2054-2070/? W/ActivityManager: Unable to start service Intent { cmp=com.kamenwang.app.android/.download.DownloadService } U=0: not found

(Write what happened. Add screenshots!)

Reproducible Demo

(Paste the link to an example project and exact instructions to reproduce the issue.)

@hramos hramos closed this as completed Aug 31, 2017
@facebook facebook locked as resolved and limited conversation to collaborators Aug 31, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Aug 31, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

3 participants