-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changing a polygon-Entity's material and show members crashes StaticGeometryColorBatch under certain conditions #3061
Comments
More information: when This is a textual copy of the error:
|
material
and show
members crashes StaticGeometryColorBatch
under certain conditionsEntity
's material
and show
members crashes StaticGeometryColorBatch
under certain conditions
@nmschulte Sorry no one responded when you reported this Does this still crash for you? When I ran the sandcastle example you posted, it caused the polygon to flicker and change colors, but it never caused a crash. Thanks! |
@hpinkos I just ran the test-case again and Cesium still crashes after a short run (just a few minutes). In Chromium (Google Chrome), I receive the same error as before. I tested in Iceweasel (Mozilla Firefox), and I receive this error after a short while: |
okay, thanks for checking! |
Entity
's material
and show
members crashes StaticGeometryColorBatch
under certain conditions
Greetings! Did anyone ever follow up on this? I don't have the exact same use case, but I am triggering this error in an app where hovering over items in a legend triggers the setting of a material property on a large number of entities. |
@nmschulte I can not reproduce this bug with the sampled code provided in the latest version of Cesium, I'm going to close this because we have definitely fixed a similar issue since 1.14 we released. If you are still having problems, please reopen this with some additional details on reproducing. @adventurist I'm not sure your problem is the same as @nmschulte. If you have a reproducible test case that we can use to debug your issue, please open a new issue. Otherwise, I would recommend asking on the forum first and seeing if anyone there can help. |
@mramato I'm unable to reproduce the issue with my given test case (I no longer have access to the private use-case). However, I did notice some funky behavior when using the "focus"/"inspect" tool; I managed to get things into a state such that, if the code above hid the object, Cesium would render some other fixed representation (like, it had cached one of the states and would always show that). I can make a new bug report with a video of this if you like. |
If it's easily reproducible and clearly incorrect, then yes, a new issue would be great. Thanks. |
Hi all, We have a widget for editing a polyline, and I've just encountered this same error message, except that, instead of originating from I'm working on creating a reproducible example, as the part of our code this is happening in is a tangled mess. Hopefully that in itself will uncover some clues, but in the meantime, any direction on how I might continue my search would be much appreciated. Thanks! |
I just ran my sample code again in the Geometries sandcastle demo and received the same |
Thanks @bflood-agi @nmschulte, we'll try to look into this soon |
@bflood-agi @nmschulte I was able to reproduce the crash locally and I'll try to look into it in the next week or two |
(Found in v1.12, exists in v1.14.)
While working on a project that integrates Cesium and Angular, I ran across this interesting issue that was causing Cesium to crash. I've created a use-case that reproduces the error, though as the issue appears to be a race condition internally to Cesium I am uncertain exactly the conditions.
Regardless, the error is reproducible 100% in my private use-case, and given enough time the example use-case reproduces the error too. I had lost hope in creating an example use-case, and right as I was going to close the browser and lose the work, it crashed:
I know for certain that polygon
Entity
s are affected, but perhaps others are as well; I didn't test them.The issue appears to stem from some interaction with updating the
show
member and thematerial
member ofEntitiy
s (*Graphic
s'Property
s) in the render loop.Of note is that I am updating the
heirarchy
member at the same time as thematerial
(and in fact, in my real use case, these three properties (heirarchy
,material
,show
) are always all updated at the same time (in the same JS tick/turn)); I kept it here because it was in my private use-case and may be important.As well, my private use-case fails only when the 'material' ("fillColor") changes (I set the member every time, but it isn't always a new value like in the example use-case).
Finally, in my private use-case, it fails with this output from the following code (look at the timing; this is poked by Angular/$digest, but I believe it is all in a single JS tick/turn):
This is the code I added to the Polygon Sandcastle (http://cesiumjs.org/Cesium/Apps/Sandcastle/index.html?src=Polygon.html&label=Geometries)
The text was updated successfully, but these errors were encountered: