- David Jefferies
- Posts: 27
- Joined:
Crash using DataEventTriggers in Unreal
I'm trying to get DataEventTriggers working in Unreal and everything is working as expected in the editor
However, when I run a standalone build it exits immediately with an error that the data event delegates are breaking Disregard for GC assumptions.
I've tried using the sample code from the docs but get the same result:
Here's the log:
However, when I run a standalone build it exits immediately with an error that the data event delegates are breaking Disregard for GC assumptions.
I've tried using the sample code from the docs but get the same result:
Code: Select all
DECLARE_DYNAMIC_MULTICAST_DELEGATE(FNativeDynamicMultiCastDelegate);
UCLASS(Blueprintable)
class MY_API UMyViewModel : public UBaseViewModel
{
GENERATED_BODY()
public:
UPROPERTY(BlueprintAssignable, BlueprintCallable)
FNativeDynamicMultiCastDelegate HideWorld;
}
Code: Select all
[2023.10.13-13.55.24:099][ 63]LogLoadingScreen: Hiding loading screen when 'IsShowingInitialLoadingScreen()' is false.
[2023.10.13-13.55.24:099][ 63]LogLoadingScreen: (nothing wants to show it anymore)
[2023.10.13-13.55.24:099][ 63]LogLoadingScreen: Garbage Collecting before dropping load screen
[2023.10.13-13.55.24:099][ 63]LogRHI: ShaderPipelineCache: Batch mode changed (0): Size: 50 -> 1, Time: 16.000000 -> 0.000000
[2023.10.13-13.55.24:099][ 63]LogCore: Display: Setting hang detector multiplier to 1.0000s. New hang duration: 0.0000s. New present duration: 0.0000s.
[2023.10.13-13.55.24:099][ 63]LogStreaming: Display: FlushAsyncLoading(325): 1 QueuedPackages, 0 AsyncPackages
[2023.10.13-13.55.24:101][ 63]LogLoadingScreen: LoadingScreen was visible for 5.18s
[2023.10.13-13.55.24:103][ 63]LogGarbage: Warning: Disregard for GC object None referencing Function /Script/CoreUObject.Object:NoesisDelegate_HideWorld which is not part of root set
[2023.10.13-13.55.24:106][ 63]LogOutputDevice: Warning:
Script Stack (0 frames) :
[2023.10.13-13.55.24:106][ 63]LogWindows: Error: appError called: Fatal error: [File:D:\MyCorp\MyGame\main\Engine\Source\Runtime\CoreUObject\Private\UObject\GarbageCollectionVerification.cpp] [Line: 155]
Encountered 1 object(s) breaking Disregard for GC assumptions. Please check log for details.
[2023.10.13-13.55.24:106][ 63]LogWindows: Windows GetLastError: The operation completed successfully. (0)
[2023.10.13-13.55.27:838][ 63]LogWwiseMonitor: Error: Voice Starvation
[2023.10.13-13.55.27:838][ 63]LogWindows: Error: === Critical error: ===
[2023.10.13-13.55.27:838][ 63]LogWindows: Error:
[2023.10.13-13.55.27:838][ 63]LogWindows: Error: Fatal error: [File:D:\MyCorp\MyGame\main\Engine\Source\Runtime\CoreUObject\Private\UObject\GarbageCollectionVerification.cpp] [Line: 155]
[2023.10.13-13.55.27:838][ 63]LogWindows: Error: Encountered 1 object(s) breaking Disregard for GC assumptions. Please check log for details.
[2023.10.13-13.55.27:838][ 63]LogWindows: Error:
[2023.10.13-13.55.27:838][ 63]LogWindows: Error:
[2023.10.13-13.55.27:838][ 63]LogWindows: Error: [Callstack] 0x00007ff6f060a749 MyGame.exe!VerifyGCAssumptions() [D:\MyCorp\MyGame\main\Engine\Source\Runtime\CoreUObject\Private\UObject\GarbageCollectionVerification.cpp:156]
[2023.10.13-13.55.27:838][ 63]LogWindows: Error: [Callstack] 0x00007ff6f04fdfdf MyGame.exe!UE::GC::CollectGarbageImpl<1>() [D:\MyCorp\MyGame\main\Engine\Source\Runtime\CoreUObject\Private\UObject\GarbageCollection.cpp:4647]
[2023.10.13-13.55.27:838][ 63]LogWindows: Error: [Callstack] 0x00007ff6f053e5fa MyGame.exe!UE::GC::CollectGarbageFull() [D:\MyCorp\MyGame\main\Engine\Source\Runtime\CoreUObject\Private\UObject\GarbageCollection.cpp:4539]
[2023.10.13-13.55.27:838][ 63]LogWindows: Error: [Callstack] 0x00007ff6f05c55f9 MyGame.exe!TryCollectGarbage() [D:\MyCorp\MyGame\main\Engine\Source\Runtime\CoreUObject\Private\UObject\GarbageCollection.cpp:4917]
[2023.10.13-13.55.27:838][ 63]LogWindows: Error: [Callstack] 0x00007ff6f65212e0 MyGame.exe!UEngine::ConditionalCollectGarbage() [D:\MyCorp\MyGame\main\Engine\Source\Runtime\Engine\Private\UnrealEngine.cpp:1774]
[2023.10.13-13.55.27:838][ 63]LogWindows: Error: [Callstack] 0x00007ff6f5a2cede MyGame.exe!UWorld::Tick() [D:\MyCorp\MyGame\main\Engine\Source\Runtime\Engine\Private\LevelTick.cpp:1721]
[2023.10.13-13.55.27:838][ 63]LogWindows: Error: [Callstack] 0x00007ff6f5791201 MyGame.exe!UGameEngine::Tick() [D:\MyCorp\MyGame\main\Engine\Source\Runtime\Engine\Private\GameEngine.cpp:1772]
[2023.10.13-13.55.27:838][ 63]LogWindows: Error: [Callstack] 0x00007ff6f6d62ee3 MyGame.exe!FEngineLoop::Tick() [D:\MyCorp\MyGame\main\Engine\Source\Runtime\Launch\Private\LaunchEngineLoop.cpp:5825]
[2023.10.13-13.55.27:838][ 63]LogWindows: Error: [Callstack] 0x00007ff6f6d7ac1c MyGame.exe!GuardedMain() [D:\MyCorp\MyGame\main\Engine\Source\Runtime\Launch\Private\Launch.cpp:188]
[2023.10.13-13.55.27:838][ 63]LogWindows: Error: [Callstack] 0x00007ff6f6d7acfa MyGame.exe!GuardedMainWrapper() [D:\MyCorp\MyGame\main\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:118]
[2023.10.13-13.55.27:838][ 63]LogWindows: Error: [Callstack] 0x00007ff6f6d7dba6 MyGame.exe!LaunchWindowsStartup() [D:\MyCorp\MyGame\main\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:258]
[2023.10.13-13.55.27:838][ 63]LogWindows: Error: [Callstack] 0x00007ff6f6d8d7a4 MyGame.exe!WinMain() [D:\MyCorp\MyGame\main\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:299]
[2023.10.13-13.55.27:838][ 63]LogWindows: Error: [Callstack] 0x00007ff6fd11e2de MyGame.exe!__scrt_common_main_seh() [D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288]
[2023.10.13-13.55.27:838][ 63]LogWindows: Error: [Callstack] 0x00007ff83e2e7344 KERNEL32.DLL!UnknownFunction []
[2023.10.13-13.55.27:838][ 63]LogWindows: Error:
[2023.10.13-13.55.27:855][ 63]LogExit: Executing StaticShutdownAfterError
[2023.10.13-13.55.27:857][ 63]LogWindows: FPlatformMisc::RequestExit(1, LaunchWindowsStartup.ExceptionHandler)
[2023.10.13-13.55.27:857][ 63]LogWindows: FPlatformMisc::RequestExitWithStatus(1, 3, LaunchWindowsStartup.ExceptionHandler)
[2023.10.13-13.55.27:857][ 63]LogCore: Engine exit requested (reason: Win RequestExit)
Re: Crash using DataEventTriggers in Unreal
Hi David,
Have you updated to 3.2.2? There was a fix for that issue in that release. I've attached a patch for this issue.
Please, let us know if this resolves the problem for you.
Thanks
Have you updated to 3.2.2? There was a fix for that issue in that release. I've attached a patch for this issue.
Please, let us know if this resolves the problem for you.
Thanks
- Attachments
-
- GCAssumptions.zip
- (427 Bytes) Downloaded 17 times
- David Jefferies
- Posts: 27
- Joined:
Re: Crash using DataEventTriggers in Unreal
yep that fixes it - thanks!
Who is online
Users browsing this forum: Ahrefs [Bot], Semrush [Bot] and 2 guests