cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Filip Maj (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CB-13094) Showing splash screen crashes if the activity is in the process of finishing
Date Thu, 27 Jul 2017 00:11:00 GMT

     [ https://issues.apache.org/jira/browse/CB-13094?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Filip Maj resolved CB-13094.
----------------------------
    Resolution: Fixed
      Assignee: Filip Maj

> Showing splash screen crashes if the activity is in the process of finishing
> ----------------------------------------------------------------------------
>
>                 Key: CB-13094
>                 URL: https://issues.apache.org/jira/browse/CB-13094
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-plugin-splashscreen
>    Affects Versions: cordova@7.0.0
>            Reporter: Andrey Sharapov
>            Assignee: Filip Maj
>            Priority: Trivial
>              Labels: bug
>
> Showing of splash screen is attached to js event "onbeforeunload". When application being
closed by pressing "back" button, we gots:
> {quote}FATAL EXCEPTION: main
> Process: scat.su.calltaxi, PID: 16999
> android.view.WindowManager$BadTokenException: Unable to add window -- token android.os.BinderProxy@5d0142d
is not valid; is your activity running?
>        at android.view.ViewRootImpl.setView(ViewRootImpl.java:567)
>        at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:310)
>        at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:86)
>        at android.app.Dialog.show(Dialog.java:326)
>        at org.apache.cordova.splashscreen.SplashScreen$5.run(SplashScreen.java:318)
>        at android.app.Activity.runOnUiThread(Activity.java:5558)
>        at org.apache.cordova.splashscreen.SplashScreen.showSplashScreen(SplashScreen.java:281)
>        at org.apache.cordova.splashscreen.SplashScreen.onMessage(SplashScreen.java:189)
>        at org.apache.cordova.PluginManager.postMessage(PluginManager.java:312)
>        at org.apache.cordova.CordovaWebViewImpl.postMessage(CordovaWebViewImpl.java:377)
>        at org.apache.cordova.splashscreen.SplashScreen$3.run(SplashScreen.java:169)
>        at android.os.Handler.handleCallback(Handler.java:739)
>        at android.os.Handler.dispatchMessage(Handler.java:95)
>        at android.os.Looper.loop(Looper.java:148)
>        at android.app.ActivityThread.main(ActivityThread.java:5517)
>        at java.lang.reflect.Method.invoke(Native Method)
>        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
>        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616){quote}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message