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

Crash on Android with hidden = true #25

Open
dapetcu21 opened this issue Dec 24, 2020 · 0 comments
Open

Crash on Android with hidden = true #25

dapetcu21 opened this issue Dec 24, 2020 · 0 comments

Comments

@dapetcu21
Copy link
Contributor

This happens when I call webview.open(webview_id, url, { hidden = true }) on my phone. hidden = false doesn't crash.

OnePlus One on Android 6.0.1
WebView with Chrome/44.0.2403.119

12-24 16:33:37.175   259   999 D audio_hw_primary: out_standby: enter: stream (0xb6076d40) usecase(1: low-latency-playback)
12-24 16:33:37.238   259   999 D hardware_info: hw_info_append_hw_type : device_name = speaker
12-24 16:33:38.658 18845 18877 V threaded_app: New input event: type=2
12-24 16:33:38.685 18845 18877 V threaded_app: New input event: type=2
12-24 16:33:38.713 18845 18845 I WebViewFactory: Loading com.android.webview version 44.0.2403.119 (code 246011900)
12-24 16:33:38.825 18845 18845 W System  : ClassLoader referenced unknown path: /system/app/webview/lib/arm
12-24 16:33:38.849 18845 18845 I LibraryLoader: Time to load native libraries: 19 ms (timestamps 9743-9762)
12-24 16:33:38.849 18845 18845 I LibraryLoader: Expected native library version number "",actual native library version number ""
12-24 16:33:38.907 18845 18845 V WebViewChromiumFactoryProvider: Binding Chromium to main looper Looper (main, tid 1) {2b0c78b}
12-24 16:33:38.907 18845 18845 I LibraryLoader: Expected native library version number "",actual native library version number ""
12-24 16:33:38.908 18845 18845 I chromium: [INFO:library_loader_hooks.cc(120)] Chromium logging enabled: level = 0, default verbosity = 0
12-24 16:33:38.931 18845 18845 I BrowserStartupController: Initializing chromium process, singleProcess=true
12-24 16:33:38.932 18845 18845 W art     : Attempt to remove non-JNI local reference, dumping thread
12-24 16:33:38.934 18845 18845 E SysUtils: ApplicationContext is null in ApplicationStatus
12-24 16:33:38.964 18845 18845 W chromium: [WARNING:resource_bundle.cc(285)] locale_file_path.empty()
12-24 16:33:38.969 18845 18845 E libEGL  : validate_display:255 error 3008 (EGL_BAD_DISPLAY)
12-24 16:33:38.969 18845 18845 E libEGL  : validate_display:255 error 3008 (EGL_BAD_DISPLAY)
12-24 16:33:39.080 18845 18845 E DataReductionProxySettingListener: No DRP key due to exception:java.lang.ClassNotFoundException: com.android.webview.chromium.Drp
12-24 16:33:39.082 18845 18952 W AudioManagerAndroid: Requires BLUETOOTH permission
12-24 16:33:39.133 18845 18845 W art     : Attempt to remove non-JNI local reference, dumping thread
12-24 16:33:39.152 18845 18845 W AwContents: onDetachedFromWindow called when already detached. Ignoring
12-24 16:33:39.157 18845 18845 W art     : Attempt to remove non-JNI local reference, dumping thread
12-24 16:33:39.157 18845 18845 W art     : Attempt to remove non-JNI local reference, dumping thread
12-24 16:33:39.161   247   247 E SELinux : avc:  denied  { find } for service=batterymanager scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:battery_service:s0 tclass=service_manager
12-24 16:33:39.204 18845 18950 W chromium: [WARNING:data_reduction_proxy_config.cc(423)] SPDY proxy OFF at startup
12-24 16:33:39.324 18845 18878 D defold  : DEBUG:SCRIPT: Error showing page:	nil
12-24 16:33:39.324 18845 18845 D AndroidRuntime: Shutting down VM
12-24 16:33:39.325 18845 18845 E AndroidRuntime: FATAL EXCEPTION: main
12-24 16:33:39.325 18845 18845 E AndroidRuntime: Process: org.rethinkplatform.rethink, PID: 18845
12-24 16:33:39.325 18845 18845 E AndroidRuntime: Theme: themes:{}
12-24 16:33:39.325 18845 18845 E AndroidRuntime: java.lang.IllegalArgumentException: View=android.widget.LinearLayout{b9e065f G.E...... ......I. 0,0-0,0} not attached to window manager
12-24 16:33:39.325 18845 18845 E AndroidRuntime: 	at android.view.WindowManagerGlobal.findViewLocked(WindowManagerGlobal.java:424)
12-24 16:33:39.325 18845 18845 E AndroidRuntime: 	at android.view.WindowManagerGlobal.removeView(WindowManagerGlobal.java:350)
12-24 16:33:39.325 18845 18845 E AndroidRuntime: 	at android.view.WindowManagerImpl.removeView(WindowManagerImpl.java:113)
12-24 16:33:39.325 18845 18845 E AndroidRuntime: 	at com.defold.webview.WebViewJNI$2.run(WebViewJNI.java:360)
12-24 16:33:39.325 18845 18845 E AndroidRuntime: 	at android.os.Handler.handleCallback(Handler.java:739)
12-24 16:33:39.325 18845 18845 E AndroidRuntime: 	at android.os.Handler.dispatchMessage(Handler.java:95)
12-24 16:33:39.325 18845 18845 E AndroidRuntime: 	at android.os.Looper.loop(Looper.java:148)
12-24 16:33:39.325 18845 18845 E AndroidRuntime: 	at android.app.ActivityThread.main(ActivityThread.java:5461)
12-24 16:33:39.325 18845 18845 E AndroidRuntime: 	at java.lang.reflect.Method.invoke(Native Method)
12-24 16:33:39.325 18845 18845 E AndroidRuntime: 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
12-24 16:33:39.325 18845 18845 E AndroidRuntime: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
12-24 16:33:39.329   748  2089 W ActivityManager:   Force finishing activity org.rethinkplatform.rethink/com.dynamo.android.DefoldActivity
12-24 16:33:39.390   748 10344 I OpenGLRenderer: Initialized EGL, version 1.4
12-24 16:33:39.479   748   758 I art     : Background partial concurrent mark sweep GC freed 6678(466KB) AllocSpace objects, 2(48KB) LOS objects, 33% free, 30MB/45MB, paused 1.623ms total 132.903ms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant