Skip to content

PolylineCollection update instanceIndex is out of range #8321

@tinco

Description

@tinco

Browser: Chrome
Operating System: MacOS
Cesium version: 1.5.3

Hi, we have an app where we create and destroy a bunch of Polyline's. Basically the user cycles through different polylines, and every time they select a new one we delete the ones they were previously looking at and create the ones they're looking at now using.

The polylines also have a CallbackProperty on the positions property that updates the positions every frame.

We get an error from Cesium originating on this line:

https://github.com/AnalyticalGraphicsInc/cesium/blob/d26ccfea38dcf4623cf5da3faca141913c64cfe1/Source/Scene/PolylineCollection.js#L471

Quite reliably when we delete a set of polylines and then immediately render frames. If we remove the CallbackProperty the error does not occur.

Are we hitting some race condition bug where callback properties are setting a dirty flag on polylines that already have been deleted?

We're creating the polylines with viewer.entities.add and destroying them with viewer.entities.remove.

Screen Shot 2019-10-25 at 4 53 17 PM

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