Seems it want to write a file to disk⦠but the file name is not valid or the file does not exist
if (PlatformFile.MoveFile(*FinalFilename, *TempFilename))
{
// File is now available
Chunk->bFileAvailableInVTDDCDache = true;
}
else
{
// Failed to move file, was the final file somehow created by a different process?
PlatformFile.DeleteFile(*TempFilename);
Chunk->bFileAvailableInVTDDCDache = PlatformFile.FileExists(*FinalFilename);
check(Chunk->bFileAvailableInVTDDCDache);
}
I did find a temp file in my folder after it crashes - Projectfolder > DerivedDataCache > VT
I never had this issue in 5.4 I have a suspicion that it might be a plugin I am using that is causing this, I did a test of a new scene file with the plugin and it was getting the same crash, so I am currently trying to remove it from my main project and see if the crash stops.
Unfortunately turning off Virtual textures isnβt really an option.
And this folder has shaders and a lot of garbageβ¦
You can delete the files but do not the delete the folders. C:\Users\Admin\AppData\Local\UnrealEngine\Common\DerivedDataCache
Those VT settings are similar, but I have my Virtual textures on.
I think I am narrowing down on it. I have some City Sample Buildings in my scene, which I believe is the culprit. I noticed on Fab For the City Sample Buildings the UE version only goes up to 5.4.
Once I delete my VT folder in the Project Folder\ DerivedDataCache\VT - directory, it is stable. Then randomly, it writes a temp file in the folder and I get this crash.
After it happens it becomes very unstable, so I delete one type of the City Sample building and I just fly around my scene until I get the crash. Iβm not entirely sure how to trigger it though, so it is a bit of a slow process.
The engine should make assets compatible when upgradingβ¦
But it is also possible that the engine has done it wrong. (It wouldnβt be the first bug the engine has).
I donβt know if this will workβ¦ but if the problem is really that the file is created you can try this.
-Delete the file
-Change the permissions of the (DerivedDataCache\VT) directory to read-only
That should prevent files from being written to that directory.
If it works, maybe that will give you more time to find the real problem.
If you succeed, click on all the βStaticMeshActorβ (one by one)
If you find an invisible one, delete it.
Iβve encountered one like this a few timesβ¦ I probably deleted the asset but the reference didnβt get removed from the level.
I remember a post from someone who had a similar problem with city buildings
So changing the VT folder to read only totally stopped the crashing. Thanks for that tip!
I did go in and did some clean up I did have some questionable meshes I deleted. Sadly it didnβt fix my crashing when I change the folder back to read and write.
I did delete all my city sample stuff from the scene and the crashing is still happening.
I think at this point I am going to stick with 5.4 and when I am ready, I need to do a big optimize where I am going to merge objects and bake spline meshes to static meshes. I have a lot of optimizing stuff I need to do to my file anyways. I think after that I will give 5.5 another go.
Thanks for helping me to troubleshoot, though @Ivan3z