Description

When adding a child actor component to a Blueprint with the Parent Class set to one of the new Water classes and then placing it in the world, the project will crash on open. This was tested with the WaterBodyCustom and WaterBodyRiver classes and both caused the project to crash, so I believe it is all WaterBody classes that cause the issue.

The Water system doesn't exist in 4.25.4 or earlier, so not marking as a Regression.

Steps to Reproduce
  1. Create a new project
  2. Enable the Water Plugin
  3. Restart the editor
  4. Create a Blueprint with Water Body Custom as the parent class (BP 1)
  5. Create an Actor Blueprint (BP 2)
  6. Open BP 2 and drag BP 1 into it
  7. Place BP 2 into a level
  8. Save and quit UE4
  9. Reopen the project

RESULT:

The project crashes on launch with Assertion: WaterBodyIndex == INDEX_NONE

EXPECTED:

The project opens successfully

Callstack
=== Critical error: ===

Assertion failed: WaterBodyIndex == INDEX_NONE [File:D:/Build/++UE4/Sync/Engine/Plugins/Experimental/Water/Source/Runtime/Private/WaterBodyActor.cpp] [Line: 1386] 



[Callstack] 0x00007ffefb903b19 KERNELBASE.dll!UnknownFunction []
[Callstack] 0x00007ffe8380d066 UE4Editor-Core.dll!ReportAssert() [D:\Build\++UE4\Sync\Engine\Source\Runtime\Core\Private\Windows\WindowsPlatformCrashContext.cpp:1616]
[Callstack] 0x00007ffe838107a8 UE4Editor-Core.dll!FWindowsErrorOutputDevice::Serialize() [D:\Build\++UE4\Sync\Engine\Source\Runtime\Core\Private\Windows\WindowsErrorOutputDevice.cpp:78]
[Callstack] 0x00007ffe8351e8cd UE4Editor-Core.dll!FOutputDevice::LogfImpl() [D:\Build\++UE4\Sync\Engine\Source\Runtime\Core\Private\Misc\OutputDevice.cpp:61]
[Callstack] 0x00007ffe834b5575 UE4Editor-Core.dll!AssertFailedImplV() [D:\Build\++UE4\Sync\Engine\Source\Runtime\Core\Private\Misc\AssertionMacros.cpp:104]
[Callstack] 0x00007ffe834b7620 UE4Editor-Core.dll!FDebug::CheckVerifyFailedImpl() [D:\Build\++UE4\Sync\Engine\Source\Runtime\Core\Private\Misc\AssertionMacros.cpp:461]
[Callstack] 0x00007ffe5fe87f72 UE4Editor-Water.dll!AWaterBody::PostRegisterAllComponents() [D:\Build\++UE4\Sync\Engine\Plugins\Experimental\Water\Source\Runtime\Private\WaterBodyActor.cpp:1386]
[Callstack] 0x00007ffe803af725 UE4Editor-Engine.dll!AActor::IncrementalRegisterComponents() [D:\Build\++UE4\Sync\Engine\Source\Runtime\Engine\Private\Actor.cpp:4632]
[Callstack] 0x00007ffe80cb06ef UE4Editor-Engine.dll!ULevel::IncrementalUpdateComponents() [D:\Build\++UE4\Sync\Engine\Source\Runtime\Engine\Private\Level.cpp:1097]
[Callstack] 0x00007ffe81765b00 UE4Editor-Engine.dll!UWorld::UpdateWorldComponents() [D:\Build\++UE4\Sync\Engine\Source\Runtime\Engine\Private\World.cpp:1970]
[Callstack] 0x00007ffe7ec525f0 UE4Editor-UnrealEd.dll!UEditorEngine::Map_Load() [D:\Build\++UE4\Sync\Engine\Source\Editor\UnrealEd\Private\EditorServer.cpp:2771]
[Callstack] 0x00007ffe7ec41abf UE4Editor-UnrealEd.dll!UEditorEngine::HandleMapCommand() [D:\Build\++UE4\Sync\Engine\Source\Editor\UnrealEd\Private\EditorServer.cpp:6204]
[Callstack] 0x00007ffe7ec2ae7f UE4Editor-UnrealEd.dll!UEditorEngine::Exec() [D:\Build\++UE4\Sync\Engine\Source\Editor\UnrealEd\Private\EditorServer.cpp:5705]
[Callstack] 0x00007ffe7f4adb77 UE4Editor-UnrealEd.dll!UUnrealEdEngine::Exec() [D:\Build\++UE4\Sync\Engine\Source\Editor\UnrealEd\Private\UnrealEdSrv.cpp:697]
[Callstack] 0x00007ffe7ef2f7f9 UE4Editor-UnrealEd.dll!FEditorFileUtils::LoadMap() [D:\Build\++UE4\Sync\Engine\Source\Editor\UnrealEd\Private\FileHelpers.cpp:2554]
[Callstack] 0x00007ffe7ef2f608 UE4Editor-UnrealEd.dll!FEditorFileUtils::LoadDefaultMapAtStartup() [D:\Build\++UE4\Sync\Engine\Source\Editor\UnrealEd\Private\FileHelpers.cpp:4043]
[Callstack] 0x00007ffe7f4ea640 UE4Editor-UnrealEd.dll!FUnrealEdMisc::OnInit() [D:\Build\++UE4\Sync\Engine\Source\Editor\UnrealEd\Private\UnrealEdMisc.cpp:359]
[Callstack] 0x00007ffe7f4a9653 UE4Editor-UnrealEd.dll!EditorInit() [D:\Build\++UE4\Sync\Engine\Source\Editor\UnrealEd\Private\UnrealEdGlobals.cpp:115]
[Callstack] 0x00007ff7d4fa0ffb UE4Editor.exe!GuardedMain() [D:\Build\++UE4\Sync\Engine\Source\Runtime\Launch\Private\Launch.cpp:149]
[Callstack] 0x00007ff7d4fa125a UE4Editor.exe!GuardedMainWrapper() [D:\Build\++UE4\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:137]
[Callstack] 0x00007ff7d4fb52bd UE4Editor.exe!WinMain() [D:\Build\++UE4\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:268]
[Callstack] 0x00007ff7d4fb7fea UE4Editor.exe!__scrt_common_main_seh() [d:\agent\_work\5\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288]
[Callstack] 0x00007ffefdd37c24 KERNEL32.DLL!UnknownFunction []
[Callstack] 0x00007ffefdf2d721 ntdll.dll!UnknownFunction []

Have Comments or More Details?

There's no existing public thread on this issue, so head over to AnswerHub just mention UE-114642 in the post.

1
Login to Vote

Fixed
ComponentRendering
Affects Versions4.26.2
Target Fix4.27
Fix Commit16220359
Main Commit16219609
Release Commit16220359
CreatedApr 29, 2021
ResolvedMay 6, 2021
UpdatedMay 18, 2021