Some settings on ellipsoids cause DeveloperError: All attribute lists must have the same number of attributes.
- Dominant language
- JavaScript
- Stars
- 15.7k
- Forks
- 3.9k
- Avg merge
- 4d 6h
- Merged PRs (30d)
- 34
Description
### What happened?
I found this error with an ellipsoid that stops the render of the viewer.
### Sandcastle example
I managed to reproduce it with different parameters on sandcastle [here](https://sandcastle.cesium.com/#c=7VTRatswFP2Vi5/cYGR7ZbRJ3TDIHlsGK2wvelHt2+RS+SpIcrJu9N8rWUmbkm3t3mcMsq7OOT5XR4j6tbEeJqAcLNDR0MOdNT3IrB1nMruQLLk17DxsCLdo4RIYtzu0+DbW8j1+YdgrYrQyO7nY86zqiAKtrtIzSkouS/hOfmUGD8SB8jXCCmitcivYhhXQhpfkhw6TqdNz8Abq+kwE8kRy8iOQPXlCJ1TX5b8kA7DqcRZ7iFK1zIpYXBsXYIZne+sLZX34UnwqovxnXFpEl0f9qoCPlahORiJqTWtnqJvBqA6podnhNrxo5Ta1cThEncTsiakP26RNe/9s5Fr5lfAm9q/Y5bvfBrD68Sb4vDoWN4x/hx+KvwmO8McwPsZAJ+Wr7N4Z3LQagzubiveG9uEfQ5tW/zM70n4J50991wXEN+nvQs6KrHH+QeM8Fj9RuiEGq3MhSo/9WqtAL2+H9h69aJ2L56Ip95Smow1Qd/mbGwFarZwLK3eD1jf0E2U2b8qAf0XTJjjm5ZcNWq0eImRVz69SUQjRlGF6zPLG6FtlDxSfAA).
And here is [an other example](https://sandcastle.cesium.com/#c=hZJdT8IwFIb/ysmuhhkdhGgUJzHBS40JJl71pm5HOKE7JW0HfoT/bruBYvBjWbb19H2f83Yt1StjPZyAcjBFR00Nz9bUIJOyHcnkUrLk0rDzsCbcoIUrYNzs1OKxraV7/dSwV8RoZdK73PusqoiC7XTQXZGY5zC1yi1gQ34B2vCcfFNh1314egHewPDsQnLXVCB78oROqKpK3yUDsKpxHIK2GJlksbYyLqgMj/fxpsr68KV4JCL5BucW0aWhQQb90UAMeq0PtaaVM1SNoWVDl3l8uNIvVNpOZnD4ipzOWRNTHf6ENuXyM8ed8gvhzSxIFbt01zaI1cu/4tHZ4JhuGH/T98+P8H+ozw/gxGHnZn+tfJhBvDv+Njy3cZuTLCmcf9U4ieVr6g5VY3UqRO6xXmkVAPlTUy7Ri9K5aCryvaWoaA1UXf1wiKDUyrkw89xo/UBvKJNJkQf9N5s2ITPP79dotXqNksVwctsVhRBFHobHLm+MflL2gPgB).
### Call stack :
```
DeveloperError: All attribute lists must have the same number of attributes.
Error
at new DeveloperError (https://sandcastle.cesium.com/Build/CesiumUnminified/Workers/chunk-JJZWDROM.js:36:11)
at Geometry.computeNumberOfVertices (https://sandcastle.cesium.com/Build/CesiumUnminified/Workers/chunk-ARYRHDEB.js:147:15)
at updateGeometryAfterSplit (https://sandcastle.cesium.com/Build/CesiumUnminified/Workers/chunk-TUZQG4RW.js:1700:45)
at updateInstanceAfterSplit (https://sandcastle.cesium.com/Build/CesiumUnminified/Workers/chunk-TUZQG4RW.js:1734:18)
at splitLongitudeTriangles (https://sandcastle.cesium.com/Build/CesiumUnminified/Workers/chunk-TUZQG4RW.js:2163:3)
at GeometryPipeline.splitLongitude (https://sandcastle.cesium.com/Build/CesiumUnminified/Workers/chunk-TUZQG4RW.js:2704:7)
at geometryPipeline (https://sandcastle.cesium.com/Build/CesiumUnminified/Workers/chunk-N6DVKXZD.js:219:34)
at PrimitivePipeline.combineGeometry (https://sandcastle.cesium.com/Build/CesiumUnminified/Workers/chunk-N6DVKXZD.js:373:18)
at combineGeometry (https://sandcastle.cesium.com/Build/CesiumUnminified/Workers/combineGeometry.js:54:45)
at onMessageHandler (https://sandcastle.cesium.com/Build/CesiumUnminified/Workers/chunk-LNTUIO55.js:60:28)
```
Browser: Chrome Version 141.0.7390.55
CesiumJS Version: 1.134.0
Contributor guide
Research direction
Start with the linked Sandcastle reproductions and trace the call stack through Geometry.computeNumberOfVertices, updateGeometryAfterSplit, and GeometryPipeline.splitLongitude. Confirm that the affected ellipsoid settings no longer trigger the attribute-count DeveloperError and that both examples render successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- computer-graphics
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 42/100