You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
The fix is theorycrafted by reasoning about the code - I was not able to actually reproduce this. The callstack suggests a nullptr exception, indicating that the Find() in AssetDataCache failed. The AssetDataToFetch container is populated in two places: - AddAssetInformationEntry() - OnUpdateHistoryComplete() The AddAssetInformationEntry() method populates the AssetDataCache and optionally the AssetDataToFetch container. The OnUpdateHistoryComplete() assumes the entry in AssetDataCache exists and populates the AssetDataToFetch container. The ClearPendingTasks() removes pending entries from the AssetDataCache container. However, it doesn't wait for any pending FUpdateStatus task to be finished. Thus, if the ClearPendingTasks() method is called after GetFileHistory() queues an FUpdateStatus operation but before that operation returns, the OnUpdateHistoryComplete() would queue an entry in AssetDataToFetch while there is no accompanying entry in AssetDataCache. This will result in the crash. The ClearPendingTasks() is called on shutdown, when the source control provider changes or when the source control dialog is shown - the latter being the most likely thing to have happened. #rb luc.eygasier, manuel.lang [CL 32014349 by wouter burgers in ue5-main branch]
9.4 KiB
9.4 KiB