Anonymous Login
2019-11-12 11:10 UTC

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0001376OpenClonkEnginepublic2017-08-20 11:54
ReporterSven2 
Assigned To 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusnewResolutionopen 
PlatformVisual C++ 2008OSWindowsOS Version 
Product Version 
Target Version8.1Fixed in Version 
Summary0001376: Script callbacks on ClearPointers
DescriptionDuring 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.
TagsNo tags attached.
Attached Files

-Relationships
+Relationships

-Notes
There are no notes attached to this issue.
+Notes

-Issue History
Date Modified Username Field Change
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
+Issue History