Description

The Strip on Cook option seems to strip even necessary data.

Steps to Reproduce
  1. Create a geometry collection from a static mesh
  2. Place the geometry collection in a level
  3. Open the Geometry Collection asset
  4. Check Strip On Cook option
  5. Uncheck Enable Nanite option
  6. Save the asset
  7. Package project for windows
  8. Launch the packaged game

Result:

The cooked game crashes with the log : 

Assertion failed: (Index >= 0) & (Index < ArrayNum) [File:D:\dev\UnrealEngine-5.2.0\Engine\Source\Runtime\Core\Public\Containers\Array.h] [Line: 752] 

 

Callstack
UnrealGame.exe!FDebug::CheckVerifyFailedImpl(const char * Expr, const char * File, int Line, void * ProgramCounter, const wchar_t * Format, ...) Line 594	C++
[Inline Frame] UnrealGame.exe!TArray<UE::Math::TBox<double>,TSizedDefaultAllocator<32>>::RangeCheck::__l9::<lambda_f0deecbcddcee8848c705c0948f375a2>::operator()(const wchar_t[59] &) Line 752	C++
UnrealGame.exe!DispatchCheckVerify<void,<lambda_f0deecbcddcee8848c705c0948f375a2>,wchar_t [59],__int64,__int64>(TArray<UE::Math::TBox<double>,TSizedDefaultAllocator<32>>::RangeCheck::__l9::<lambda_f0deecbcddcee8848c705c0948f375a2> && Inner, const wchar_t[59] & <Args_0>, const __int64 & <Args_1>, const __int64 & <Args_2>) Line 189	C++
[Inline Frame] UnrealGame.exe!TArray<UE::Math::TBox<double>,TSizedDefaultAllocator<32>>::RangeCheck(int) Line 752	C++
[Inline Frame] UnrealGame.exe!TArray<UE::Math::TBox<double>,TSizedDefaultAllocator<32>>::operator[](int) Line 820	C++
[Inline Frame] UnrealGame.exe!TManagedArrayBase<UE::Math::TBox<double>>::operator[](int) Line 435	C++
UnrealGame.exe!UGeometryCollectionComponent::ComputeBounds(const UE::Math::TMatrix<double> & LocalToWorldWithScale) Line 531	C++
UnrealGame.exe!UGeometryCollectionComponent::CalculateLocalBounds() Line 3740	C++
UnrealGame.exe!UGeometryCollectionComponent::ResetDynamicCollection() Line 2456	C++
UnrealGame.exe!UGeometryCollectionComponent::OnRegister() Line 2376	C++
UnrealGame.exe!UActorComponent::ExecuteRegisterEvents(FRegisterComponentContext * Context) Line 1680	C++
UnrealGame.exe!UActorComponent::RegisterComponentWithWorld(UWorld * InWorld, FRegisterComponentContext * Context) Line 1352	C++
UnrealGame.exe!AActor::IncrementalRegisterComponents(int NumComponentsToRegister, FRegisterComponentContext * Context) Line 5342	C++
[Inline Frame] UnrealGame.exe!ULevel::IncrementalRegisterComponents(bool) Line 1701	C++
UnrealGame.exe!ULevel::IncrementalUpdateComponents(int NumComponentsToUpdate, bool bRerunConstructionScripts, FRegisterComponentContext * Context) Line 1636	C++
UnrealGame.exe!UWorld::UpdateWorldComponents(bool bRerunConstructionScripts, bool bCurrentLevelOnly, FRegisterComponentContext * Context) Line 2308	C++
UnrealGame.exe!UWorld::InitializeActorsForPlay(const FURL & InURL, bool bResetTime, FRegisterComponentContext * Context) Line 4705	C++
UnrealGame.exe!UEngine::LoadMap(FWorldContext & WorldContext, FURL URL, UPendingNetGame * Pending, FString & Error) Line 14913	C++
UnrealGame.exe!UEngine::Browse(FWorldContext & WorldContext, FURL URL, FString & Error) Line 14108	C++
UnrealGame.exe!UGameInstance::StartGameInstance() Line 645	C++
UnrealGame.exe!UGameEngine::Start() Line 1213	C++
UnrealGame.exe!FEngineLoop::Init() Line 4821	C++
[Inline Frame] UnrealGame.exe!EngineInit() Line 51	C++
UnrealGame.exe!GuardedMain(const wchar_t * CmdLine) Line 168	C++
UnrealGame.exe!GuardedMainWrapper(const wchar_t * CmdLine) Line 107	C++
UnrealGame.exe!LaunchWindowsStartup(HINSTANCE__ * hInInstance, HINSTANCE__ * hPrevInstance, char * __formal, int nCmdShow, const wchar_t * CmdLine) Line 244	C++
UnrealGame.exe!WinMain(HINSTANCE__ * hInInstance, HINSTANCE__ * hPrevInstance, char * pCmdLine, int nCmdShow) Line 285	C++
[Inline Frame] UnrealGame.exe!invoke_main() Line 102	C++
UnrealGame.exe!__scrt_common_main_seh() Line 288	C++
kernel32.dll!00007ffd66b37614()	Unknown
ntdll.dll!00007ffd688026f1()	Unknown

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-188924 in the post.

4
Login to Vote

Fixed
ComponentUE - Simulation - Physics - Destruction
Affects Versions5.2
Target Fix5.5
Fix Commit36439765
CreatedJun 16, 2023
ResolvedSep 21, 2024
UpdatedSep 30, 2024
View Jira Issue