I’m going a bit crazy with trying to figure out just why my game keeps crashing when i try to load a level up. Its perfectly fine until it loads a level called “NewMarkRakeLevel”, which when it try to load it hangs on the loading screen and then crashes completely. I know it will load a level up as i’ve done it with Test levels instead of that one, so its for sure not the code itself
It talks of memory issues, but i dont see anywhere i’d be having memory problems. Its not big enough to make machines struggle with it, and their wont be any leaks in the code as its super basic stuff thats all in a EventPlay without any loops!
It is also saying there is a problem allocating memory… are you trying to open your project on another machine? (One with less memory) How much memory do you have?
Besides that, I found an issue with 4.21 which made one level I created to crash on it but no other previous releases up to 4.17. This bug in particular seems to crash when you start the editor with the default editor map containing any actor which tries to access a non-ready resource in the constructor of that said actor. If this is your case, follow these steps:
edit your config.ini and remove any default editor map written in there, left it blank
start editor again and you might now be able to open your level again
if all up to this point succeeds, you need to check each actor’s constructor at your level for that said non-ready resource being accessed
the best way to check if an actors is to blame, is to unlink the contructor graph on it, then set the default editor map to your level again, close the editor and open it again.
I hope this helps!
PS: the description is happens on editor and was happening on packaged aswel, so the check for actors part should stay the same. The issue might happen frequently on slower machines.
It is in 4.21, no bots or anything thought that might be causing problems. Most complex in their is the bog standard FPS character
The machine i’m opening it up on has 64gb of memory. Been watching the stats and when on the main menu, it never goes above 10%. The crash just as it gets to the level dosent show any spikes in demand either.
Created the project from scratch again in 4.20. Everything is working nicely now. Obviously a massive pain trying to do it all again, but it’s better than it not working! Thanks for the help everyone!