Closed CDufour909 closed 5 years ago
I noticed nobody replied to the pull request here, but an internal ticket has been created to investigate pulling this back into mainline. Thanks again :)
Priority 1 FYI we had similar issue in this file as well. There was a pull request https://github.com/aws/lumberyard/pull/318 with another version of the fix some time ago
Hey all,
We found there to be quite a few complexities related to this and were unable to take it as is consequently. We'll be examining this further on our end. Thanks again for the submission!
Fixes a freeze when a slice instantiation is cancelled on a callback from another slice instantiation
This change fixes a freeze when a slice instantiation is cancelled on a callback from another slice instantiation. So the problematic case is when a behavior cancels slice instantiation while the callback from a newly ready asset is being processed. The problematic case is the following:
To fix this issue, I'm proposing to queue CancelSliceInstantiation to tickbus thus ensuring that it will not be processed in an OnAssetReady callback.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.