# USD Export crashes when sub level holds level instance 

**URL:** <https://forums.unrealengine.com/t/usd-export-crashes-when-sub-level-holds-level-instance/2720292>\
**Category:** Pipeline & Plugins\
**Tags:** Epic-Pro-Support, unreal-engine, question\
**Created:** [March 20, 2026, 1:44pm UTC](https://forums.unrealengine.com/t/usd-export-crashes-when-sub-level-holds-level-instance/2720292 "2026-03-20T13:44:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [March 20, 2026, 1:44pm UTC](https://forums.unrealengine.com/t/usd-export-crashes-when-sub-level-holds-level-instance/2720292/1 "2026-03-20T13:44:38Z")

</div>

The engine is crashing when the user tries to export from a persistent level with a sub level that contains a level instance.

Here is part of the crash log, steps to reproduce the error are bellow:

```auto
LoginId:259853d34a1b238f3326f38ea0e2d93e
 
Fatal error: [File:E:\stash\UE57\github-unrealengine\Engine\Source\Runtime\CoreUObject\Private\Templates\Casts.cpp] [Line: 10] 
Cast of nullptr to Actor failed
 
 
 
 
UnrealEditor_CoreUObject!CastLogError() [E:\stash\UE57\github-unrealengine\Engine\Source\Runtime\CoreUObject\Private\Templates\Casts.cpp:10]
UnrealEditor_Engine!CastChecked<AActor,ILevelInstanceInterface>() [E:\stash\UE57\github-unrealengine\Engine\Source\Runtime\CoreUObject\Public\Templates\Casts.h:209]
UnrealEditor_Engine!ALevelInstanceEditorInstanceActor::Create() [E:\stash\UE57\github-unrealengine\Engine\Source\Runtime\Engine\Private\LevelInstance\LevelInstanceEditorInstanceActor.cpp:49]
UnrealEditor_Engine!ULevelStreamingLevelInstance::OnCurrentStateChanged() [E:\stash\UE57\github-unrealengine\Engine\Source\Runtime\Engine\Private\LevelInstance\LevelInstanceLevelStreaming.cpp:477]
UnrealEditor_Engine!ULevelStreaming::SetCurrentState() [E:\stash\UE57\github-unrealengine\Engine\Source\Runtime\Engine\Private\LevelStreaming.cpp:608]
UnrealEditor_Engine!ULevelStreaming::UpdateStreamingState() [E:\stash\UE57\github-unrealengine\Engine\Source\Runtime\Engine\Private\LevelStreaming.cpp:1237]
UnrealEditor_Engine!UWorld::UpdateLevelStreaming() [E:\stash\UE57\github-unrealengine\Engine\Source\Runtime\Engine\Private\World.cpp:5045]
UnrealEditor_Engine!UWorld::FlushLevelStreaming() [E:\stash\UE57\github-unrealengine\Engine\Source\Runtime\Engine\Private\World.cpp:5313]
UnrealEditor_USDExporter!UE::UsdConversionBlueprintLibrary::Private::StreamInLevels() [E:\stash\UE57\github-unrealengine\Engine\Plugins\Importers\USDImporter\Source\USDExporter\Private\USDConversionBlueprintLibrary.cpp:162]
UnrealEditor_USDExporter!UUsdConversionBlueprintLibrary::execStreamInRequiredLevels() [E:\stash\UE57\github-unrealengine\Engine\Plugins\Importers\USDImporter\Intermediate\Build\Win64\UnrealEditor\Inc\USDExporter\UHT\USDConversionBlueprintLibrary.gen.cpp:2724]
UnrealEditor_CoreUObject!UFunction::Invoke() [E:\stash\UE57\github-unrealengine\Engine\Source\Runtime\CoreUObject\Private\UObject\Class.cpp:7570]
UnrealEditor_CoreUObject!UObject::ProcessEvent() [E:\stash\UE57\github-unrealengine\Engine\Source\Runtime\CoreUObject\Private\UObject\ScriptCore.cpp:2194]
UnrealEditor_PythonScriptPlugin!PyUtil::InvokeFunctionCall() [E:\stash\UE57\github-unrealengine\Engine\Plugins\Experimental\PythonScriptPlugin\Source\PythonScriptPlugin\Private\PyUtil.cpp:578]
UnrealEditor_PythonScriptPlugin!FPyWrapperObject::CallFunction_Impl() [E:\stash\UE57\github-unrealengine\Engine\Plugins\Experimental\PythonScriptPlugin\Source\PythonScriptPlugin\Private\PyWrapperObject.cpp:314]
UnrealEditor_PythonScriptPlugin!FPyWrapperObject::CallClassMethodWithArgs_Impl() [E:\stash\UE57\github-unrealengine\Engine\Plugins\Experimental\PythonScriptPlugin\Source\PythonScriptPlugin\Private\PyWrapperObject.cpp:333]
....

```

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [March 20, 2026, 1:44pm UTC](https://forums.unrealengine.com/t/usd-export-crashes-when-sub-level-holds-level-instance/2720292/2 "2026-03-20T13:44:43Z")

</div>

**Steps to Reproduce**

1. Create 3 Levels named:
  1. L\_LevelInstance
  2. L\_LevelHoldingInstance
  3. L\_PersistentLevel

2. In the L\_LevelInstance level create a light inside of it
3. Open the L\_LevelHoldingInstance and create a level instance of the L\_LevelInstance
4. Open the L\_PersistentLevel and add the L\_LevelHoldingInstance as a sub level
5. Try to export all from “File\>Export All” as .usda

---

<div class="post-metadata">

**Author:** ![Jean-Luc.C](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jean-Luc.C](https://forums.unrealengine.com/u/Jean-Luc.C)\
**Post date:** [April 6, 2026, 6:08pm UTC](https://forums.unrealengine.com/t/usd-export-crashes-when-sub-level-holds-level-instance/2720292/3 "2026-04-06T18:08:59Z")

</div>

Hi Manuel,

Sorry for the late reply.

Thanks for reporting this issue, I created a JIRA , [UE-371841](https://issues.unrealengine.com/issue/UE-371841), that you could track.

Sorry for the inconvenience.

Regards,

Jean-Luc
