CesiumGS / cesium

An open-source JavaScript library for world-class 3D globes and maps :earth_americas:
https://cesium.com/cesiumjs/
Apache License 2.0
12.94k stars 3.49k forks source link

An error occurred while rendering. Rendering has stopped. #12179

Closed yanshanshu closed 1 day ago

yanshanshu commented 2 months ago

What happened?

DataCloneError: Failed to execute 'postMessage' on 'Worker': [object Array] could not be cloned.

Error: Failed to execute 'postMessage' on 'Worker': [object Array] could not be cloned. at runTask (http://localhost:8080/node_modules/.vite/deps/cesium.js?v=c5e0bc26:23699:21) at async scheduleTask (http://localhost:8080/node_modules/.vite/deps/cesium.js?v=c5e0bc26:23713:20)

Reproduction steps

地图绘制各种点线面,这是我的TS文件,每次初始化的时候可能出现该问题,并且手动绘制addPointAndDrawPolygon的时候有概率出现,出现概率和电脑有关,电脑越差越容易出现 新建文本文档.txt

Sandcastle example

No response

Environment

Browser: CesiumJS Version: Operating System:

ggetz commented 2 months ago

Hi @yanshanshu. Would you be able to include a Sandcastle example that replicates the issue? That would help us give us more context to determine the issue. Thanks!

AManWithoutADream commented 1 week ago

@yanshanshu 请问下有解决吗?我也遇到了同样的问题

ggetz commented 1 day ago

I'm closing this issue due to inactivity. If you believe this is still an issue, please feel free to re-open. Thanks!