ActorComponent in Actor is crashing UE4 in standalone and on editor opening

I have created an Actor component which does not do much, is inherits from one Interface and is has one function of the interface implemented and then set’s the custom time dilation of it’s owner.

But if I add this Actor Component to one of my Actors and try to run the game in standalone, the standalone process crashes with this log

The Error is:

Assertion failed: !HasAnyFlags(RF_NeedLoad|RF_NeedPostLoad) [File:D:\BuildFarm\buildmachine_++depot+UE4-Releases+4.8\Engine\Source\Runtime\CoreUObject\Private\UObject\UObjectLinker.cpp] [Line: 96] 
Detaching from existing linker for I:/Unreal Projects/Projekte/Strategy 4.8/Content/Assets/Characters/Civilian.uasset while object PauseComponent_C /Game/Assets/Characters/Civilian.Civilian_C:PauseComponentBD49C2AB4053139B89950CAE76A89DF9 needs loaded

And even worse, it’s even crashing the editor on opening. I noticed this by accident, actually I wanted to get into the “Saved” folder to access the logs, but I “missclicked” and instead double clicked the uproject file so that my project loaded, and then I saw it does not even load, it just crashes. This really was luck, if I would not have noticed it I would not be able to open my project again the next time I have closed it (I would have had to replace the Civilian.uasset with an autosave). Now I had the possibility to look into the log and see that the ActorComponent is causing this and I have removed it, so I can open my project again. The whole time the editor itself stayed opened and did not crash, neither on compile of any blueprint nor on save.

Hello,

Have you tried deleting the intermediate, config and saved folders from your project file? If so, did that allow your project to open? Could you also try to move those assets to a blank project and see if you receive the same crash or not? I’m curious whether or not the asset is corrupted, or if the blueprint is set up incorrectly. What happens if you take those assets out of your project temporarily, do you still run into issues with your project?

Looking forward to hearing back from you, thanks!

Thanks, but I don’t have any problems with my project now because I removed the ActorComponent from the Actor while the editor was still running. If I add it and save I can’t open the project, if I remove it and save I can open it. If I remove the ActorComponent completely of course I can’t run into any issues because it’s not there :stuck_out_tongue: It will for sure also happen in a blank project, just set the ActorComponent up as I descriped and it will crash. I guess it’s just some bug with the CustomTimeDilation Node with the owner as the target.

Hey John,

Could you please zip your project with the asset included, or simply provide us the actor that’s causing this issue so that we can investigate this crash further? I’ve entered a bug report to our developers, which is listed as: UE-17388.

Thank you, and I’m so glad that removing the actor from your project fixed the issue.

Thanks! I have tried to reproduce it in a clean project but I have not get it to crash there, so I migrated the Component into a new project with the files it references and removed some stuff inside there to make it as small as possible, I will send you a download link to this in a PM in the forums! The project crashes on startup, so you won’t be able to see much there. Thanks again! :slight_smile:

Hey John,

Thanks for providing us with the actor component that’s causing this crash. I have provided the project to our developers so they can look into this further. If you have any further questions on this topic, or would like to check up on this bug in the future, do not hesitate to reply back.

Have a great week!

Hi Samantha, could you give me any info on whether anything was done in regarding this bug yet or if your devs might have a workaround for this? Thanks!

Hey John,

This bug is considered critical and is assigned to a developer at this time. Unfortunately, it’s still unresolved at this time. Hopefully they will be able to fix it for 4.9 release, but I can’t guarantee at this time.

Feel free to check back in the next week or two. Have a wonderful day. :smiley:

Hi John,

This has been fixed with this commit: https://github.com/EpicGames/UnrealEngine/commit/7259ef4fd26e4f4c10c3ba0cce0e17650abc74c1

You had some really gnarly cyclical dependencies in there.

Hi Mike, great to hear, thanks!

Do you know whether there will be a 4.8.3 or will I have to wait for 4.9 to have this fix?

Hey John,

Looking over the UE-17388 bug report, it looks as if it’ll be fixed in 4.9.