【问题标题】:flutter_webview fails showing webpage with three.js renderflutter_webview 无法显示具有三个.js 渲染的网页
【发布时间】:2020-11-27 16:50:41
【问题描述】:

我正在使用 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,看看是否存在内存泄漏。通过浏览器显示时没有。

有人知道是什么原因吗?

谢谢 连续波

【问题讨论】:

    标签: flutter three.js flutterwebviewplugin


    【解决方案1】:

    我遇到了同样的问题。您应该检查您的 WebGL 代码,以确保您必须在 WebView 对用户可见之前初始化上下文。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2012-08-10
      • 2019-01-28
      • 2023-03-28
      • 2013-10-17
      • 2018-11-02
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多