Hi, the level sequence editor crashes a lot when moving around/copy pasting ak events.
Callstack:
[2020.05.06-09.02.54:458][274]LogWindows: Windows GetLastError: The operation completed successfully. (0)
[2020.05.06-09.02.56:944][274]LogWindows: Error: === Critical error: ===
[2020.05.06-09.02.56:944][274]LogWindows: Error:
[2020.05.06-09.02.56:944][274]LogWindows: Error: Fatal error: [File:P:/JH/workspace/XX/Engine/UE-XX/Engine/Source/Runtime/CoreUObject/Private/Templates/Casts.cpp] [Line: 10]
[2020.05.06-09.02.56:944][274]LogWindows: Error: Cast of SkeletalMeshComponent /Game/Maps/Game/Sectors/XXXX/XXXX.XXXX:PersistentLevel.XXXX_Cutscene_0.SkeletalMeshComponent0 to Actor failed
[2020.05.06-09.02.56:944][274]LogWindows: Error:
[2020.05.06-09.02.56:944][274]LogWindows: Error:
[2020.05.06-09.02.56:944][274]LogWindows: Error: [Callstack] 0x00007ff83ae3a799 KERNELBASE.dll!UnknownFunction []
[2020.05.06-09.02.56:944][274]LogWindows: Error: [Callstack] 0x00007ffff967a736 UE4Editor-Core.dll!ReportAssert() []
[2020.05.06-09.02.56:944][274]LogWindows: Error: [Callstack] 0x00007ffff967dbd8 UE4Editor-Core.dll!FWindowsErrorOutputDevice::Serialize() []
[2020.05.06-09.02.56:944][274]LogWindows: Error: [Callstack] 0x00007ffff9432bfd UE4Editor-Core.dll!FOutputDevice::LogfImpl() []
[2020.05.06-09.02.56:944][274]LogWindows: Error: [Callstack] 0x00007ffffdb0e363 UE4Editor-CoreUObject.dll!CastLogError() []
[2020.05.06-09.02.56:944][274]LogWindows: Error: [Callstack] 0x00007fffcf90ad1d UE4Editor-AkAudio.dll!CastChecked<AActor,UObject>() []
[2020.05.06-09.02.56:944][274]LogWindows: Error: [Callstack] 0x00007fffcfa4db1c UE4Editor-AkAudio.dll!WwiseEventTriggering::TriggerScrubSnippet() []
[2020.05.06-09.02.56:944][274]LogWindows: Error: [Callstack] 0x00007fffcf9fe67b UE4Editor-AkAudio.dll!FMovieSceneAkAudioEventSectionData::ObjectBindingScrub() []
[2020.05.06-09.02.56:944][274]LogWindows: Error: [Callstack] 0x00007fffcfa527a0 UE4Editor-AkAudio.dll!FMovieSceneAkAudioEventSectionData::Update() []
[2020.05.06-09.02.56:944][274]LogWindows: Error: [Callstack] 0x00007fffcf9bdc63 UE4Editor-AkAudio.dll!FAkAudioEventExecutionToken::Execute() []
[2020.05.06-09.02.56:944][274]LogWindows: Error: [Callstack] 0x00007ffff7ec22ed UE4Editor-MovieScene.dll!FMovieSceneExecutionTokens::Apply() []
[2020.05.06-09.02.56:945][274]LogWindows: Error: [Callstack] 0x00007ffff7edfb73 UE4Editor-MovieScene.dll!FMovieSceneRootEvaluationTemplateInstance::EvaluateGroup() []
[2020.05.06-09.02.56:945][274]LogWindows: Error: [Callstack] 0x00007ffff7edd3df UE4Editor-MovieScene.dll!FMovieSceneRootEvaluationTemplateInstance::Evaluate() []
[2020.05.06-09.02.56:945][274]LogWindows: Error: [Callstack] 0x00007fffdffbb078 UE4Editor-Sequencer.dll!FSequencer::EvaluateInternal() []
[2020.05.06-09.02.56:945][274]LogWindows: Error: [Callstack] 0x00007fffe0027b36 UE4Editor-Sequencer.dll!FSequencer::SetGlobalTime() []
[2020.05.06-09.02.56:945][274]LogWindows: Error: [Callstack] 0x00007fffdefdac93 UE4Editor-MovieSceneTools.dll!FCinematicShotTrackEditor::Tick() []
[2020.05.06-09.02.56:945][274]LogWindows: Error: [Callstack] 0x00007fffe003367e UE4Editor-Sequencer.dll!FSequencer::Tick() []
[2020.05.06-09.02.56:945][274]LogWindows: Error: [Callstack] 0x00007fffe408872d UE4Editor-UnrealEd.dll!FTickableEditorObject::TickObjects() []
[2020.05.06-09.02.56:945][274]LogWindows: Error: [Callstack] 0x00007fffe443a43d UE4Editor-UnrealEd.dll!UEditorEngine::Tick() []
[2020.05.06-09.02.56:945][274]LogWindows: Error: [Callstack] 0x00007fffe4c9ea66 UE4Editor-UnrealEd.dll!UUnrealEdEngine::Tick() []
[2020.05.06-09.02.56:945][274]LogWindows: Error: [Callstack] 0x00007ff674f67f62 UE4Editor.exe!FEngineLoop::Tick() []
[2020.05.06-09.02.56:945][274]LogWindows: Error: [Callstack] 0x00007ff674f7c3fc UE4Editor.exe!GuardedMain() []
[2020.05.06-09.02.56:945][274]LogWindows: Error: [Callstack] 0x00007ff674f7c4da UE4Editor.exe!GuardedMainWrapper() []
[2020.05.06-09.02.56:945][274]LogWindows: Error: [Callstack] 0x00007ff674f8ce99 UE4Editor.exe!WinMain() []
[2020.05.06-09.02.56:945][274]LogWindows: Error: [Callstack] 0x00007ff674f8fc9e UE4Editor.exe!__scrt_common_main_seh() []
[2020.05.06-09.02.56:945][274]LogWindows: Error: [Callstack] 0x00007ff83c7d7bd4 KERNEL32.DLL!UnknownFunction []
[2020.05.06-09.02.56:945][274]LogWindows: Error: [Callstack] 0x00007ff83db2ce51 ntdll.dll!UnknownFunction []
[2020.05.06-09.02.56:945][274]LogWindows: Error:
[2020.05.06-09.02.56:957][274]LogExit: Executing StaticShutdownAfterError
[2020.05.06-09.02.56:975][274]LogWindows: FPlatformMisc::RequestExit(1)
[2020.05.06-09.02.56:975][274]LogCore: Engine exit requested (reason: Win RequestExit)
[2020.05.06-09.02.56:985][274]Log file closed, 05/06/20 11:02:56
From looking at the code, this is a silly mistake:
TriggerScrubSnippet
auto Actor = CastChecked<AActor>(Object);
if (IsValid(Actor))
CastChecked crashes if the cast fails, and then the next line we check if it's valid.
Perhaps it should not cast checked?