Randomly getting this GC related error

Mostly when stopping the game in the editor and sometimes just randomly the editor is crashing with this error:

LoginId:386b39f1636442b7a576a322507bf3a9-000003e8
EpicAccountId:

Caught signal 11 Segmentation fault

libUnrealEditor-CoreUObject.so!UGCObjectReferencer::VerifyGCObjectNames() [/media/pacapaw/Datos/Descargas/UnrealEngine-5.0.0-release/Engine/Source/./Runtime/CoreUObject/Private/Misc/GCObjectReferencer.cpp:203]
libUnrealEditor-CoreUObject.so!TBaseUObjectMethodDelegateInstance<false, UGCObjectReferencer, void (), FDefaultDelegateUserPolicy>::ExecuteIfSafe() const [/media/pacapaw/Datos/Descargas/UnrealEngine-5.0.0-release/Engine/Source/Runtime/Core/Public/Delegates/DelegateInstancesImpl.h:609]
libUnrealEditor-CoreUObject.so!TMulticastDelegate<void (), FDefaultDelegateUserPolicy>::Broadcast() const [/media/pacapaw/Datos/Descargas/UnrealEngine-5.0.0-release/Engine/Source/Runtime/Core/Public/Delegates/DelegateSignatureImpl.inl:967]
libUnrealEditor-CoreUObject.so!CollectGarbageInternal(EObjectFlags, bool) [/media/pacapaw/Datos/Descargas/UnrealEngine-5.0.0-release/Engine/Source/./Runtime/CoreUObject/Private/UObject/GarbageCollection.cpp:2232]
libUnrealEditor-CoreUObject.so!CollectGarbage(EObjectFlags, bool) [/media/pacapaw/Datos/Descargas/UnrealEngine-5.0.0-release/Engine/Source/./Runtime/CoreUObject/Private/UObject/GarbageCollection.cpp:2540]
libUnrealEditor-UnrealEd.so!UEditorEngine::EndPlayMap() [/media/pacapaw/Datos/Descargas/UnrealEngine-5.0.0-release/Engine/Source/./Editor/UnrealEd/Private/PlayLevel.cpp:411]
libUnrealEditor-UnrealEd.so!UEditorEngine::Tick(float, bool) [/media/pacapaw/Datos/Descargas/UnrealEngine-5.0.0-release/Engine/Source/./Editor/UnrealEd/Private/EditorEngine.cpp:2094]
libUnrealEditor-UnrealEd.so!UUnrealEdEngine::Tick(float, bool) [/media/pacapaw/Datos/Descargas/UnrealEngine-5.0.0-release/Engine/Source/./Editor/UnrealEd/Private/UnrealEdEngine.cpp:471]
UnrealEditor!FEngineLoop::Tick() [/media/pacapaw/Datos/Descargas/UnrealEngine-5.0.0-release/Engine/Source/./Runtime/Launch/Private/LaunchEngineLoop.cpp:5209]
UnrealEditor!GuardedMain(char16_t const*) [/media/pacapaw/Datos/Descargas/UnrealEngine-5.0.0-release/Engine/Source/./Runtime/Launch/Private/Launch.cpp:185]
libUnrealEditor-UnixCommonStartup.so!CommonUnixMain(int, char**, int (*)(char16_t const*), void (*)()) [/media/pacapaw/Datos/Descargas/UnrealEngine-5.0.0-release/Engine/Source/Runtime/Unix/UnixCommonStartup/Private/UnixCommonStartup.cpp:264]
libc.so.6!UnknownFunction(0x29d8f)
libc.so.6!__libc_start_main(+0x7f)
UnrealEditor!_start()

Do you guys know what this might be related to? I don’t know where to start digging to find the error.

Thanks.

Any hints? Anyone? :grin:
I’m on linux if that helps

A segfault is caused by accessing a memory address that is not allocated, so it looks like the garbage collector is trying to scan objects but is getting a dangling pointer to one that is already deallocated. Can you think of anything you’re doing in your game module that might cause this situation? Can you reproduce the error with an editor instance that is launched without your game module? Generally you would bisect this by removing half your game module and then trying to get the error, if not then add half back, if so remove another half, and so on until you can isolate the code that is causing this.

Thank you so much for the answer.
I’m currently inspecting every instanced AActor.
It’s an arduous work so that’s why I was asking here because maybe you guys can give me a hint on what does the VerifyGCObjectNames() function do, so I can guess better where could the problem be.

For example if would help if i could know exactly which is the object that the GC couldn’t verify it’s name.


From what I see here, it seems that every FGCObject has to override the GetReferencerName() function. Am I right?