0

我正在使用 flutter_webview 显示带有一些 javascript 画布元素的 URL。

该 URL 在任何浏览器中都可以正常查看,但从 Android Studio 3.6 显示到 Pixel 3 (Android 10) 我在运行页面后大约 4/5 秒发生崩溃 - 带有以下控制台消息:


W/Adreno-GSL(10848): <gsl_ldd_control:549>: ioctl fd 61 code 0x400c0907 (IOCTL_KGSL_DEVICE_WAITTIMESTAMP_CTXTID) failed: errno 35 Resource deadlock would occur
W/Adreno-GSL(10848): <log_gpu_snapshot:458>: panel.gpuSnapshotPath is not set.not generating user snapshot
E/chromium(10848): [ERROR:gles2_cmd_decoder.cc(17410)] Offscreen context lost via ARB/EXT_robustness. Reset status = GL_UNKNOWN_CONTEXT_RESET_KHR
E/chromium(10848): [ERROR:gles2_cmd_decoder.cc(4851)]   GLES2DecoderImpl: Context reset detected after MakeCurrent.
W/Adreno-GSL(10848): <gsl_ldd_control:549>: ioctl fd 61 code 0xc040094a (IOCTL_KGSL_GPU_COMMAND) failed: errno 35 Resource deadlock would occur
W/Adreno-GSL(10848): <log_gpu_snapshot:458>: panel.gpuSnapshotPath is not set.not generating user snapshot
W/Adreno-GSL(10848): <gsl_ldd_control:549>: ioctl fd 61 code 0xc0200933 (IOCTL_KGSL_TIMESTAMP_EVENT) failed: errno 22 Invalid argument
W/Adreno-GSL(10848): <ioctl_kgsl_syncobj_create:4402>: (3e, 25, 46478) fail 22 Invalid argument
W/Adreno-GSL(10848): <gsl_ldd_control:549>: ioctl fd 61 code 0xc0200933 (IOCTL_KGSL_TIMESTAMP_EVENT) failed: errno 22 Invalid argument
W/Adreno-GSL(10848): <ioctl_kgsl_syncobj_create:4402>: (3e, 25, 46478) fail 22 Invalid argument
W/Adreno-GSL(10848): <gsl_ldd_control:549>: ioctl fd 61 code 0xc0200933 (IOCTL_KGSL_TIMESTAMP_EVENT) failed: errno 22 Invalid argument
W/Adreno-GSL(10848): <ioctl_kgsl_syncobj_create:4402>: (3e, 25, 46478) fail 22 Invalid argument
Lost connection to device.

我检查了开发控制台中的 Web URL,看看是否存在内存泄漏。通过浏览器显示时没有。

有谁知道可能是什么原因?

谢谢 CW

4

1 回答 1

1

I met the same issue. You should check your WebGL code to make sure that you has to init the context before the WebView is visible to the user.

于 2020-11-24T02:55:57.150 回答