Crash during PIE
I have crash while playing in PIE. The c++ code compiles fine - I have browsed blueprints and did not find any major issues.
Other thing - how should I read this bug trace? I can see that in my SGameMode something wrong is with starting game. It points to line 72 but that is calling super method of StartMatch.
asked Jul 01 '18 at 04:25 PM in C++ Programming
Ok I upgraded to 4.20-preview and I noticed error in custom GameMode class in Init method where I had Native projection as some kind of hack .... removed that, rolled back to 4.19 and it works.
answered Jul 05 '18 at 05:45 AM
The access violation is usually because you have a null pointer somewhere in your code. Double check to make sure that you're not trying to get something that doesn't exist (or never initialized), or add checks in your code.You're going to have to do proper debugging to get to the bottom of the error.
Take a look at this answer on a similar issue, the selected answer has some great info on debugging this kind of error:
Also perhaps you're calling something in your code too early. Sometimes when you create a reference for something in the constructor and not BeginPlay, the thing you are referencing doesn't exist yet because it hasn't yet loaded into the world, since the constructor stuff is called first.
See the reference for this in the thread below:
If you really think that everything is correct in code, you might need to rebuild your project. Do this by deleting your Binaries and Intermediate folders, along with the .vs folder. After that, right-click the .uproject file and Generate Visual Studio Project files. This will repopulate some of the intermediates and remake the .sln. After that, open up the .sln and build the project. Then try it again.
Reference for this info:
I'm just shooting in the dark here since I can't see your code. But maybe this will lead you in the right direction.
answered Jul 02 '18 at 10:03 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here