You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/11/25 18:20:53 UTC

[GitHub] [cordova-android] brucejo75 edited a comment on issue #851: excludeFromRecents="true" causes app to be killed on Android 9

brucejo75 edited a comment on issue #851: excludeFromRecents="true" causes app to be killed on Android 9
URL: https://github.com/apache/cordova-android/issues/851#issuecomment-558274433
 
 
   Thanks @breautek, I was thinking that might be an issue myself.
   
   I removed the asynchronous call to my plugin.  All I do is a console.log and I still get the same throw:
   
   **Edit**: I also removed the asynchronous function calback and replaced with a synchronous function callback.
   
   ```
   === MyApp receives an onDestroy()
   11-25 10:04:07.890  4294  4294 D MyApp   : H:C:SE:E in onDestroy()
   11-25 10:04:07.891  4294  4294 D CordovaWebViewImpl: >>> loadUrl(about:blank)
   
   === Warning message is output
   11-25 10:04:07.893  4294  4294 W cr_AwContents: WebView.destroy() called while WebView is still attached to window.
   11-25 10:04:07.904  4294  4294 D ViewRootImpl@1b470c[MainActivity]: dispatchDetachedFromWindow
   11-25 10:04:07.912  4294  4294 D InputTransport: Input channel destroyed: fd=147
   
   === Chrome receives the onUnload MyApp logs the event to Chrome console
   11-25 10:04:07.913  4294  4294 I chromium: [INFO:CONSOLE(4456)] "[10:04:07:895]  WARN: MyApp: In onUnload unload$ (http://localhost:12848/__cordova/app.js?hash=406696345d4b8196e2b23fddea15d5566329517e:6547:27)  ", source: http://localhost:12848/__cordova/packages/myapp_base.js?hash=deae68068b750d5d115ea91e0aa2a6c6b8e3eaa6 (4456)
   
   === Receive throw
   11-25 10:04:07.915  4294  4294 W cr_AwContents: Application attempted to call on a destroyed WebView
   11-25 10:04:07.915  4294  4294 W cr_AwContents: java.lang.Throwable
   11-25 10:04:07.915  4294  4294 W cr_AwContents: 	at org.chromium.android_webview.AwContents.a(PG:132)
   11-25 10:04:07.915  4294  4294 W cr_AwContents: 	at tD0.loadingStateChanged(PG:2)
   11-25 10:04:07.915  4294  4294 W cr_AwContents: 	at android.os.MessageQueue.nativePollOnce(Native Method)
   11-25 10:04:07.915  4294  4294 W cr_AwContents: 	at android.os.MessageQueue.next(MessageQueue.java:326)
   11-25 10:04:07.915  4294  4294 W cr_AwContents: 	at android.os.Looper.loop(Looper.java:183)
   11-25 10:04:07.915  4294  4294 W cr_AwContents: 	at android.app.ActivityThread.main(ActivityThread.java:7266)
   11-25 10:04:07.915  4294  4294 W cr_AwContents: 	at java.lang.reflect.Method.invoke(Native Method)
   11-25 10:04:07.915  4294  4294 W cr_AwContents: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:494)
   11-25 10:04:07.915  4294  4294 W cr_AwContents: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:975)
   ```
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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