|View Issue Details|
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0001376||OpenClonk||Engine||public||2015-09-03 21:14||2017-08-20 11:54|
|Priority||normal||Severity||minor||Reproducibility||have not tried|
|Platform||Visual C++ 2008||OS||Windows||OS Version|
|Target Version||8.1||Fixed in Version|
|Summary||0001376: Script callbacks on ClearPointers|
|Description||During game end, ClearPointers is called on all game objects prior to destruction. Because objects are partially destructed in a non-predictable order, ClearPointers should, if possible, not cause callbacks into script that may perform actions on these half-destructed objects.|
However, ClearPointers may cause a Close-callback on gui script menus when some of the GUI-related objects get destroyed. This caused crashes at game end since the controls branch merge.
The preferred method to handle this would be to either close menus as a reaction to object removal in AssignRemoval (if the object has some way to know that it is being used in a menu), or to close menus without any callbacks on ClearPointers.
Any solution to this problem should also regard what happens e.g. when an object is currently burning and removes itself while it is referenced in a menu.
|Tags||No tags attached.|
|2015-09-03 21:14||Sven2||New Issue|
|2015-09-03 21:16||Sven2||Description Updated||View Revisions|
|2015-10-16 00:33||Sven2||Target Version||=> 7.0|
|2015-12-06 22:50||Clonkonaut||Target Version||7.0 => 8.0|
|2015-12-06 22:50||Clonkonaut||Target Version||8.0 => 7.1 (Bugfix update)|
|2017-08-05 09:06||Maikel||Target Version||7.1 (Bugfix update) => 8.0|
|2017-08-20 11:54||Zapper||Target Version||8.0 => 8.1|