CesiumGS / CesiumGS/cesium-unity

WebGL crash when point clouds are enabled

Open
#688 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
C#
Stars
535
Forks
132
Avg merge
6h 45m
Merged PRs (30d)
1

Description

### What happened?

**Forum Post:** https://community.cesium.com/t/camera-main-access-at-cesiumforpointcloudrenderer/46110
**Category:** Cesium for Unity
**Reported by:** @myavuzselim

## Description

Issue 3 in the forum post

> On WebGL, we get a crash once we enable point clouds:
>
> `Invoking error handler due to TypeError: Cannot read properties of undefined (reading ‘explicitUniformLocations’), at WebGL.framework.js.gz`
>
> It is mentioned in [that blog post](https://unity.com/blog/cesium-for-unity-3d-geospatial-web) that point clouds are not supported for WebGL. However, I think it should not crash even if it does not render anything.
>
> I was hoping that enabling attenuation affects these bugs in a positive way, but I don’t know.

### Environment

Cesium for Unity version:
Unity Editor Version:
Operating System:

### Reproduction steps

1.
2.
3.
...

### Supporting evidence

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the linked forum post and reproducing a WebGL build with point clouds enabled. Inspect the reported TypeError involving WebGL.framework.js.gz and compare behavior with point clouds disabled. Done means enabling point clouds no longer crashes, even if point clouds remain unsupported or do not render.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, unity
Domain
computer-graphics, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.