Skip to content

Setting markerSize: 0 with large GeoJSON files causes Cesium to crash.  #6307

Open
@arelenglish

Description

@arelenglish

I've tested this on a MacBook Air with 8GB of memory and a MacBook Pro with 16GB of memory and experienced the issue. A Cesium forum user was unable to recreate the issue on her computer.

When adding a largish GeoJSON file (2,837 unique markers and polylines) to a map and setting the markerSize : 0 Cesium hangs and crashes WebGL after about 30 seconds of trying to render the map. Leaving markerSize its default size, or setting the color to transparent solves the issue, so my assumption is that setting markerSize uses a lot of memory. When the dataset is smaller, even up to 1,500 markers, Cesium doesn't crash or hang. Additionally, when I don't add the polylines Cesium has no issue when setting markerSize, but I don't know what would happen with extremely large datasets.

Here is a sandcastle where you can see the issue. I set markerSize : 0 on line 9. If you switch this to markerColor: Cesium.Color.fromHsl(0, 0, 0, 0) or just remove the line, the scene will render fine.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions