[Bug Report]:create a box and plane manually Cause an error

i create a box and plane by click two button.
the button code is below:
addPlane
addBox
the addPlane()、addBox() codes all is from cesium sandcastle.
function addBox() {
var redBox = viewer.entities.add({
name: “Red box with black outline”,
position: Cesium.Cartesian3.fromDegrees(-107.0, 40.0, 300000.0),
box: {
dimensions: new Cesium.Cartesian3(400000.0, 300000.0, 500000.0),
material: Cesium.Color.RED.withAlpha(0.5),
outline: true,
outlineColor: Cesium.Color.BLACK,
},
});
}

function addPlane() {
var redPlane = viewer.entities.add({
name: “Red plane with black outline”,
position: Cesium.Cartesian3.fromDegrees(-107.0, 40.0, 300000.0),
plane: {
plane: new Cesium.Plane(Cesium.Cartesian3.UNIT_Y, 0.0),
dimensions: new Cesium.Cartesian2(400000.0, 300000.0),
material: Cesium.Color.RED.withAlpha(0.5),
outline: true,
outlineColor: Cesium.Color.BLACK,
},
});
}

when i first click addBox button,and then click addPlane button
attention:click addBox first
then cause a error below

@zxc1987

Thank you for bringing this to our attention! Could you please share a sandcastle demo that showcases this issue?

As always, feel free to add your issue to the “issues” section of our CesiumJS GitHub repository.

This is the best way to get CesiumJS related bugs resolved. :grinning: :rocket:

-Sam

@sam.rothstein
this is the sandcastle demo

it’s very strange that only this two entity cause error.
if i change to another box,there is no error.
if i first click addPlane,there is no error too.

@zxc1987

Thank you for sharing this! Can you please write up an issue on GitHub outlining the bug? I will look over the post and add details as necessary.

-Sam

i’m pleasure to issues this on CesiumJS GitHub repository
below is my issue

@zxc1987

Great! Thank you so much - reviewing now.

-Sam