This has probably been coming for a long while now, this project of mine has been giving me issues and crashing my editor for the past few months (more than once a day), but this is the worst it has gotten.
I can no longer open my game project from the unreal launcher. The editor crashes at 95% in the loading dialog. Here are the events that led up to this:
I had a struct defined in c++ code that was the following:
USTRUCT(BlueprintType)
struct FAxonDevice
{
GENERATED_USTRUCT_BODY()
AxonDevice ad;
};
Due to limitations imposed on struct functionality by Unreal, I needed to change this struct into a class:
UCLASS()
class UAxonDeviceClass : public UObject
{
GENERATED_BODY()
public:
AxonDevice ad;
};
I made the necessary changes to my code so that the build tool in Visual Studio compiled everything without errors. I then went into the unreal editor and pressed compile, fully understanding how many blueprint errors were about to appear since I had not removed references to the old struct throughout the 5 blueprints that used it. To my surprise the editor crashed during the code compile. This has happened to me dozens of times while working on this project (with a similar amount of crash reports submitted), so I simply restarted the editor. When the editor loaded up it said there was an error, saying that it could not find the old struct in my code. I simply pressed ‘ok’ hoping I could compile my code successfully and the issue would fix itself, so I tried to compile once more. The editor crashed again.
My next idea was pretty obvious, just add back the old code, but keep the new code. The data types were named differently so it shouldn’t cause any issues right? Well, I started the editor back up, ignored the error message, and tried to compile again. The editor still crashed. Well the error message should go away from startup right? I start up the editor, and it crashes before it even opens my project.
I have no idea how to proceed at this point, changes to my code don’t seem to fix the issue, I’ve tried rebuilding from visual studio using the unreal build tools, but nothing allows my project to open again. I would be willing to share any additional information about my situation, if you’d like crash logs just look at the one submitted by me at about 1:30 today.
How can I salvage my project? My company has invested months of my time working on this project, I need to fix this issue.
EDIT: Here is the crash log I’m getting http://pastebin.com/raw.php?i=cB5LLhjw
The line in my code that the first line refers to is the “GENERATED_BODY()” macro that I have inside of the blueprint function library class I created. This class has a dozen or so methods that all use my AxonDevice class. This code compiles fine in visual studio. Also here’s the launcher log: Launcher Log, and here’s the launcher log with debugging mode on : Google Drive: Sign-in
EDIT 2: I’ve traced the error’s root to my usage of my class extending UObject. I’ve determined that I probably cannot have two UCLASSes in the same file, seeing as each needs to include their own generated header file, and you can only include one per file. I have reverted every change I made to my source files, replacing all usages of my class with my struct once again. I have rebuilt my code, but the editor still crashes on startup. At this point, since the changes in my code have been completely undone, with no reference, declaration or definition for that class still existing, the only thing I can do now without access to the editor is delete files.
EDIT 3: Here is the call stack at the first exception thrown from debugging the Editor in VS2015: http://pastebin.com/raw.php?i=SsGfGL3C