Game Crashes while running in Standalone Mode , and works fine in editor

my game works fine in editor but crashes after running as Standalone mode , and also in build ,

the error in call stack not pointing to any of my classes

the call stack :

there is no more infos about what happened
but log file mentioned one more thing – Fatal error

please help , thank you for any help

hi @liona
you should launch your game with visual studio attached to see where it crashes.
It should be linked to what you are doing in your project. The fact it crashes in standalone and not in the editor might point to some data that is not loaded yet (the editor loads more stuff than the standalone version)
You may have a crashlog too with a dump that you can use to pinpoint the crash in your Saved directory

hey @Jnat , I found that the error occurs in a custom struct of mine but the error is very weird and I have been Straggling with it and not fixed yet ,

the error is (call stack) :

and I print all string in FMyStruct before assigning it to other variables and it’s a Valid string ?

how can i fix this ? , is it a problem with my struct ? case unreal always points to one of my structs while an error occurs

and everything is fine in editor yet

how are the structs defined?

hey @eblade thanks for the feedback ,

.h
image

.cpp
image

is it a good practice ?

hi @liona ,
nothing catches my eye here.
Usually when I have a problem like this one I launch a debug session and trigger the crash so I can see the state of the memory program and where exactly it fails.
I might give you more info on why this struct is failing somehow.

@Jnat oh ,

the problem is it never happens in editor only crashes the game after building with an error message fatal error

do you have any source , link or video about this by any chance so i can take a look ?

thanks fror your help

hi !

go check this, install visual studio community and click on the “play” arrow so your game launches in debug mode (you can select the build configuration) Your data will probably need to be cooked.

I don’t use Code, so I can’t really tell how to launch a debug session on it ^^

@Jnat thank you my friend , I appreciate it

1 Like