Hi everyone, I was doing so well, but then this happened!
I have been working on UI for my game, and now when I load UE5, it loads my Main Map, but when I try to open any other level to work on it crashes. Oddly enough, when I choose to load a level while playing the game (from my Pause menu, or through a door in game) the new level loads just fine. I have logs if anyone is willing to help!
It says I have 2 memory leaks. No idea what to do from here. Thanks in advance!
Do they have a complex inheritance/dependence structure? I’ve encountered a random issue that breaks most widgets that have dependencies on each other. Apparently at some point (for some reason unknown to me) they don’t load the right dependencies at the right time.
In my case, this causes an error in the widget blueprint, and crashes when trying to compile any of them.
I never found a solution, but I had a backup.
And this problem continues to arise sometimes in projects where those widgets are used (they are unfortunately part of a system that generally works fine).
I spent some time making custom button widgets that could be used in separate widgets like the Main menu and the Pause menu, and had a few variables exposed to instances like font size and colour. Is this the type of thing you mean when you say inheritance structure? I deleted the event dispatchers I was using and simplified my UI, but am still getting crashes.
I find it odd that I can load the level in Play mode, but not in Editor mode. I can access and play the levels when accessed through the game, but I cannot open them to edit, because UE crashes.