-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Fix intermittent geometry entity crash #6577
Conversation
@hpinkos, thanks for the pull request! Maintainers, we have a signed CLA from @hpinkos, so you can review this at any time. I am a bot who helps you make Cesium awesome! Contributions to my configuration are welcome. 🌍 🌎 🌏 |
@bflood-agi @nmschulte This should fix the crashes you reported in #3061 |
Awesome! Thanks @hpinkos! |
Unfortunately, I can still reproduce the problem in this branch. |
|
Dangit, really? I ran the thing forever and it didn't crash. Do you think I can just add a |
Wait, hold on. I think I screwed up. |
Sorry for the scare, I was actually running in the wrong tab and using cesiumjs.org instead of my local build 😄 |
Yep, this is definitely fixed. I'll merge when green. |
🎉 |
Fixes #3061
The crash was happening because setting
show
triggered a subscription that added the updater to anshowsUpdated
associative array and settingpolygon.material
removed the polygon from the batch but not fromshowsUpdated
. So whenBatch.updateShows
is called it iterates throughshowsUpdated
and was crashing because the instance no longer exists for the polygon that was removed.