简体   繁体   English

Cesium 渲染时出错。 渲染已停止

[英]Cesium An error occurred while rendering. Rendering has stopped

Today, I'm asking for help from the community because I have a problem with Cesium.今天,我向社区寻求帮助,因为我遇到了 Cesium 的问题。 When I run a command to display a path I get this error.当我运行命令以显示路径时,我收到此错误。 Whether it's Firefox, Chrome or even Edge, I get the same error.无论是 Firefox、Chrome 还是 Edge,我都会遇到同样的错误。 Firefox 88.0.1 (64 bits) Firefox 88.0.1(64位)

An error occurred while rendering.  Rendering has stopped.
RuntimeError: Vertex texture fetch support is required to render polylines. The maximum number of vertex texture image units must be greater than zero.
RuntimeError@http://localhost:4200/vendor.js:235274:11
./node_modules/cesium/Source/Scene/PolylineCollection.js/PolylineCollection.prototype.update@http://localhost:4200/vendor.js:393795:13
Error loading image for billboard: DeveloperError: Width must be less than or equal to the maximum texture size (0).  Check maximumTextureSize.
DeveloperError@http://localhost:4200/vendor.js:179691:11
Texture@http://localhost:4200/vendor.js:304841:11
resizeAtlas@http://localhost:4200/vendor.js:423958:29
addImage@http://localhost:4200/vendor.js:424063:16
./node_modules/cesium/Source/Scene/TextureAtlas.js/TextureAtlas.prototype.addImage/indexPromise<@http://localhost:4200/vendor.js:424120:13
fulfilled/p<@http://localhost:4200/vendor.js:476336:34
_then/<@http://localhost:4200/vendor.js:476437:13
processQueue@http://localhost:4200/vendor.js:476787:11
_resolve@http://localhost:4200/vendor.js:476473:16
promiseResolve@http://localhost:4200/vendor.js:476499:11

webgl1 webgl1

This was happening for my team while using Ubuntu 20.04 LTS in a VirtualBox VM.我的团队在 VirtualBox VM 中使用 Ubuntu 20.04 LTS 时发生了这种情况。 The error occurred in Google Chrome browser on, for example, this page: https://sandcastle.cesium.com/?src=3D%20Tiles%20Clipping%20Planes.html错误发生在谷歌浏览器上,例如这个页面: https://sandcastle.cesium.com/?src=3D%20Tiles%20Clipping%20Planes.html

In our case, this resolved the issue:在我们的例子中,这解决了这个问题:

  1. Shut down your VM.关闭你的虚拟机。
  2. Open the Virtualbox settings for the VM打开虚拟机的 Virtualbox 设置
  3. Un-check the box Display -> Enable 3D Acceleration取消选中框显示 -> 启用 3D 加速
  4. Once that setting is OFF then it should work for you as a CPU-only renderer.一旦该设置关闭,那么它应该适合您作为仅 CPU 的渲染器。
  5. Then, of course, start the machine back up.然后,当然,重新启动机器。

It's slower using CPU-only graphics, but it helped us with this testing issue.使用纯 CPU 图形会更慢,但它帮助我们解决了这个测试问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 轻量级渲染管道错误 - Lightweight Rendering Pipeline error W / CameraBase:连接到摄像机时发生错误:0 - W/CameraBase﹕ An error occurred while connecting to camera: 0 运行时错误:程序已停止响应 - Runtime error: program has stopped responding 处理您的请求时发生异常。 此外,执行自定义错误页面时发生另一个异常 - An exception occurred while processing your request. Additionally, another exception occurred while executing the custom error page 错误:验证时发生错误。 HRESULT =&#39;80070057&#39; - Error: An error occurred while validating. HRESULT = '80070057' Cloud Function 发生未知错误:GCP Python - An unknown error has occurred in Cloud Function: GCP Python 另一个用户的日志堆栈跟踪出现错误:不幸的是,应用程序已停止 - log stacktrace from another user with error: Unfortunately, Application has stopped 使用Firebase登录时“访问钥匙串时出错” - “An error occurred while accessing the keychain” when signing in using Firebase 我的应用程序现在出现错误,但是当我运行任何应用程序时,它显示应用程序名称已停止 - My app has now error but when i run any app it shows app name has stopped “建立数据库连接时出错”MariaDB 已停止工作 - Wordpress 由 Bitnami localhost 打包 - "Error establishing a database connection" MariaDB has stopped working - Wordpress Packaged by Bitnami localhost
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM