Last time this file was saved was a month ago in version 4.22.3 (source code). Then I upgraded to 4.23.1 (source code) the day after, and have been running it ever since without any other issues. I haven’t attempted to save the file since then so this may be due to the upgrade.
This only happens when saving a specific file (custom player state blueprint). No crash report window pops up, only this error message, which crashes the engine completely. It compiles fine with no warnings, and I can still package the project as well without any issues, but whenever I try to save that particular file, unreal freezes at 50% on the saving progress bar, then throws the error at me. Happens with 100% consistency. Restarting the engine or Windows has no effect.
Here’s a snippet from UObjectGlobals.cpp:
UObject* StaticConstructObject_Internal
(
UClass* InClass,
UObject* InOuter /*=GetTransientPackage()*/,
FName InName /*=NAME_None*/,
EObjectFlags InFlags /*=0*/,
EInternalObjectFlags InternalSetFlags /*=0*/,
UObject* InTemplate /*=NULL*/,
bool bCopyTransientsFromClassDefaults /*=false*/,
FObjectInstancingGraph* InInstanceGraph /*=NULL*/,
bool bAssumeTemplateIsArchetype /*=false*/
)
{
LLM_SCOPE(ELLMTag::UObject);
SCOPE_CYCLE_COUNTER(STAT_ConstructObject);
UObject* Result = NULL;
#if WITH_EDITORONLY_DATA
UE_CLOG(GIsSavingPackage && InOuter != GetTransientPackage(), LogUObjectGlobals, Fatal, TEXT("Illegal call to StaticConstructObject() while serializing object data! (Object will not be saved!)"));
Relevant lines from crash log:
[2019.12.15-23.07.56:953][365]Cmd: OBJ SAVEPACKAGE PACKAGE="/Game/Dynamic/Blueprints/Kernel/PS_Core" FILE="../../../../../repos/X/Content/Dynamic/Blueprints/Kernel/PS_Core.uasset" SILENT=true
[2019.12.15-23.07.57:090][365]LogOutputDevice: Warning:
Script Stack (0 frames):
[2019.12.15-23.07.57:090][365]LogWindows: Windows GetLastError: The operation completed successfully. (0)
As far as I know, every other file works and saves fine. I can’t share much as this is part of a large project. I have the option of back tracking in source control, but I’d be much more comfortable understanding and fixing the issue separately before resorting to that. Especially because the last time this file was saved was about a month ago, so this potentially could have been an issue ever since.
Any help in tracking down this issue would be greatly appreciated.
Thanks
Edit: Tried deleting the rebuildable content (.vs, binaries, DerivedDataCache, Intermediate, Saved, and the .sln). Rebuilt project, but no luck with the file.
Edit2: I have a couple of duplicate version of my project that I checked (both are running the standard engine version through Epic launcher, not the source code). The 4.22.3 duplicate project can save the file (which I believe is identical/ unchanged since upgrading), but the 4.23.1 one crashes same as the original project.