# Crash in Nanite with RayTracing and local 2 player mode

**URL:** <https://forums.unrealengine.com/t/crash-in-nanite-with-raytracing-and-local-2-player-mode/2873720>\
**Category:** Issues and Bug Reporting (Unreal Engine)\
**Tags:** unreal-engine, bug-report\
**Created:** [November 26, 2026, 11:48pm UTC](https://forums.unrealengine.com/t/crash-in-nanite-with-raytracing-and-local-2-player-mode/2873720 "2026-11-26T23:48:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SHR3DH3AD](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SHR3DH3AD](https://forums.unrealengine.com/u/SHR3DH3AD)\
**Post date:** [November 26, 2026, 11:48pm UTC](https://forums.unrealengine.com/t/crash-in-nanite-with-raytracing-and-local-2-player-mode/2873720/1 "2026-11-26T23:48:51Z")

</div>

### Summary

Crash in Nanite::FRayTracingManager::AddVisiblePrimitive with r.RayTracing.Nanite.Mode 1 and local split screen (2 players)

### What Type of Bug are you experiencing?

Rendering (Graphics / Niagara)

### Steps to Reproduce

Enable Support Hardware Ray Tracing in Project Settings.  
Set r.RayTracing.Nanite.Mode 1.  
Create a level containing Nanite static meshes.  
Start from a separate menu level. Select 2 players, which sets a GameInstance bool, then use Open Level to load the level from step 3.  
In that level’s GameMode BeginPlay, call Create Local Player (Controller Id 1) to enable split screen while the level is still loading.

### Expected Result

The level loads and renders in split screen without crashing.

### Observed Result

The editor or game crashes with an assertion on a background worker thread during or shortly after level load. Creating player 2 later, after loading has finished, makes the crash much less frequent.

### Affects Versions

5.8

### Platform(s)

Windows

### For crash reports, include your callstack

Assertion failed: !AllocationFlags[Index] [File:D:\build++UE5\Sync\Engine\Source\Runtime\Core\Public\Containers\SparseArray.h] [Line: 100]

UnrealEditor\_Core!FDebug::CheckVerifyFailedImpl2() [D:\build++UE5\Sync\Engine\Source\Runtime\Core\Private\Misc\AssertionMacros.cpp:797]  
UnrealEditor\_Renderer!TSparseArrayBase\<12,4,TSparseArrayAllocator\<TSizedDefaultAllocator\<32\>,FDefaultBitArrayAllocator\> \>::AllocateIndex() [D:\build++UE5\Sync\Engine\Source\Runtime\Core\Public\Containers\SparseArray.h:100]  
UnrealEditor\_Renderer!TSet\<unsigned int,DefaultKeyFuncs\<unsigned int,0\>,FDefaultSetAllocator\>::Emplace\<unsigned int const &\>() [D:\build++UE5\Sync\Engine\Source\Runtime\Core\Public\Containers\SparseSet.h.inl:545]  
UnrealEditor\_Renderer!Nanite::FRayTracingManager::AddVisiblePrimitive() [D:\build++UE5\Sync\Engine\Source\Runtime\Renderer\Private\Nanite\NaniteRayTracing.cpp:1273]  
UnrealEditor\_Renderer!RayTracing::GatherRelevantStaticPrimitives() [D:\build++UE5\Sync\Engine\Source\Runtime\Renderer\Private\RayTracing\RayTracing.cpp:1700]  
UnrealEditor\_Renderer!UE::Tasks::Private::TExecutableTaskBase\<`RayTracing::BeginGatherInstances'::`6’::\<lambda\_3\>,void,void\>::ExecuteTask() [D:\build++UE5\Sync\Engine\Source\Runtime\Core\Public\Tasks\TaskPrivate.h:873]  
UnrealEditor\_Renderer!UE::Tasks::Private::FTaskBase::TryExecuteTask() [D:\build++UE5\Sync\Engine\Source\Runtime\Core\Public\Tasks\TaskPrivate.h:524]  
UnrealEditor\_Renderer!LowLevelTasks::TTaskDelegate\<LowLevelTasks::FTask \* \_\_cdecl(bool),48\>::TTaskDelegateImpl\<`LowLevelTasks::FTask::Init<`UE::Tasks::Private::FTaskBase::Init’::`2'::<lambda_1> >'::`15’::\<lambda\_1\>,0\>::CallAndMove() [D:\build++UE5\Sync\Engine\Source\Runtime\Core\Public\Async\Fundamental\TaskDelegate.h:171]  
UnrealEditor\_Core!LowLevelTasks::FTask::ExecuteTask() [D:\build++UE5\Sync\Engine\Source\Runtime\Core\Public\Async\Fundamental\Task.h:623]  
UnrealEditor\_Core!LowLevelTasks::FScheduler::ExecuteTask() [D:\build++UE5\Sync\Engine\Source\Runtime\Core\Private\Async\Fundamental\Scheduler.cpp:403]  
UnrealEditor\_Core!LowLevelTasks::FScheduler::WorkerLoop() [D:\build++UE5\Sync\Engine\Source\Runtime\Core\Private\Async\Fundamental\Scheduler.cpp:802]  
UnrealEditor\_Core!`LowLevelTasks::FScheduler::CreateWorker'::`2’::\<lambda\_1\>::operator()() [D:\build++UE5\Sync\Engine\Source\Runtime\Core\Private\Async\Fundamental\Scheduler.cpp:223]  
UnrealEditor\_Core!FThreadImpl::Run() [D:\build++UE5\Sync\Engine\Source\Runtime\Core\Private\HAL\Thread.cpp:69]  
UnrealEditor\_Core!FRunnableThreadWin::Run() [D:\build++UE5\Sync\Engine\Source\Runtime\Core\Private\Windows\WindowsRunnableThread.cpp:167][Project example](https://drive.google.com/file/d/11fXgAHllmbAVPgrGG_4jBZP7W6svdddi/view?usp=drive_link)
