Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash at EndPlay Attempting to call an unbound TFunction! #28

Open
Bortronx opened this issue May 30, 2023 · 2 comments
Open

Crash at EndPlay Attempting to call an unbound TFunction! #28

Bortronx opened this issue May 30, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@Bortronx
Copy link

Bortronx commented May 30, 2023

I'm receiving the following crash when using GES in Unreal 5.1.1 only on EndPlay

Assertion failed: Callable [File:\EpicGames\UE_5.1\Engine\Source\Runtime\Core\Public\Templates\Function.h] [Line: 596] Attempting to call an unbound TFunction!

UnrealEditor_GlobalEventSystem!UE::Core::Private::Function::TFunctionRefBase<UE::Core::Private::Function::TFunctionStorage<0>,void __cdecl(void)>::operator()() [\EpicGames\UE_5.1\Engine\Source\Runtime\Core\Public\Templates\Function.h:601]
UnrealEditor_GlobalEventSystem!AGESWorldListenerActor::EndPlay() [\Plugins\GlobalEventSystem-Unreal\Source\GlobalEventSystem\Private\GESWorldListenerActor.cpp:24]
UnrealEditor_Engine
UnrealEditor_UnrealEd
UnrealEditor_UnrealEd
UnrealEditor_UnrealEd
UnrealEditor_UnrealEd
UnrealEditor
UnrealEditor
UnrealEditor
UnrealEditor
UnrealEditor
UnrealEditor
kernel32
ntdll
@getnamo
Copy link
Owner

getnamo commented Jun 1, 2023

Do you call use GESUnbind All Events for Context to balance your bind calls? https://github.com/getnamo/GlobalEventSystem-Unreal#unbinding

While technically optional, there are some cases that can slip past the auto-unbinding system and cause crashes like this so I recommend using unbind calls to balance your bind calls on endplay callbacks.

@Bortronx
Copy link
Author

Bortronx commented Jun 1, 2023

@getnamo Thanks that's how I fixed it.

@getnamo getnamo added the bug Something isn't working label Jun 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants