I can build and package my project, but when running the executable, nothing happens.
(Win 11, UE 5.5, VS 2022 17.11.5)
Running a “standalone game” or PIE works fine.
When I hit QUICK LAUNCH in the editor, this is the console result: Pasted log text from quick launch. The logs suggest to check Client.log for info, but no Client.log file is written:
The last lines of Log.text are here:
Stack trace log for client exit code 777006 in Log.txt
UAT: Client exited with error code: 777006
I have a working packaged version from a while ago - this problem happened some time after upgrading the project to 5.5, but I’m fairly sure it did build and run fine in 5.5 when I first imported the project. I did see this problem when I tried out 5.4 a while back, but just went back to my 100% working 5.3.2 version at that stage without chasing it up further.
The build and package process seemingly writes out all the correct files.
I loaded up the Build directory in VS and debugged the Faboratory.exe file. These are the results:
Log results from debugging broken packaged .exe file in VS
This problem with error code 777006 appears to have been mentioned only once before: This thread marked as solved - in that case, the OP found some problems with static variables, but didn’t explain how they reached that conclusion. I checked my project and have no uses of “global” and only a handful of static helper functions defined in a .h file (and no static properties). I checked uses of FStreamableManager but found nothing that I could see might cause a problem.
I don’t know how to proceed from here. I’m working on the assumption that my code is at fault, perhaps I’m using an engine native static reference somewhere inappropriately, but I don’t have enough knowledge to know where to continue looking. I spent yesterday interrogating chatgpt to try to coax some pointers out of it, but no success.
The [Solved] thread I linked to above indicates that this is likely a me problem - I can’t find any other sources where this problem has been mentioned. I can’t work out how to make the leap from this error to finding the offending code. It’s more confusing by the fact that I had it working just fine, then one day when I checked again, it wasn’t working. I can’t find anything in my git changes that I could see might affect this. I haven’t yet tried rolling back on git to see if I can narrow it down to some code change.
Thanks in advance for your help!