View Issue Details

IDProjectCategoryView StatusLast Update
0000460Medieval EngineersBugpublic2023-04-21 16:23
Reporterequinox Assigned Toequinox  
PrioritynormalSeverityminorReproducibilityhave not tried
Status resolvedResolutionfixed 
Target Version0.7.4 (unreleased)Fixed in Version0.7.4 (unreleased) 
Summary0000460: Multi-scheduled updates may be orphaned when entity is removed from scene

When an entity is removed from the scene all its scheduled updates also get removed via MyComponentFactory.RemoveUpdates. However when a single update is registered multiple times (usually as a result of a bug) this only removes a single one of those registrations, causing the component to tick after it is unloaded.

When cleaning up components during component unloading every update of those components should be removed, not just the first one. Note this will also require changing the tracking of scheduled updates in m_scheduledUpdateMap to be able to keep track of multi-scheduled items. Alternatively, MyComponentBase.RemoveScheduledUpdate could possibly be modified to always remove every scheduled update instead of just the first one.

TagsNo tags attached.


There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2023-03-07 19:41 equinox New Issue
2023-03-10 22:08 equinox Assigned To => equinox
2023-03-10 22:08 equinox Status new => in progress
2023-04-21 16:23 equinox Status in progress => resolved
2023-04-21 16:23 equinox Resolution open => fixed
2023-04-21 16:23 equinox Fixed in Version => 0.7.4 (unreleased)