Description

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

Steps to Reproduce

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

 

 

Callstack

LoginId:259853d34a1b238f3326f38ea0e2d93e

Fatal error: [Link Removed] [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() [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]
UnrealEditor_PythonScriptPlugin!FPyMethodWithClosureDef::Call() [E:\stash\UE57\github-unrealengine\Engine\Plugins\Experimental\PythonScriptPlugin\Source\PythonScriptPlugin\Private\PyMethodWithClosure.cpp:170]
python311
python311
python311
python311
python311
UnrealEditor_PythonScriptPlugin!FPythonScriptPlugin::EvalString() [E:\stash\UE57\github-unrealengine\Engine\Plugins\Experimental\PythonScriptPlugin\Source\PythonScriptPlugin\Private\PythonScriptPlugin.cpp:1737]
UnrealEditor_PythonScriptPlugin!FPythonScriptPlugin::RunString() [E:\stash\UE57\github-unrealengine\Engine\Plugins\Experimental\PythonScriptPlugin\Source\PythonScriptPlugin\Private\PythonScriptPlugin.cpp:1770]
UnrealEditor_PythonScriptPlugin!FPythonScriptPlugin::ExecPythonCommand() [E:\stash\UE57\github-unrealengine\Engine\Plugins\Experimental\PythonScriptPlugin\Source\PythonScriptPlugin\Private\PythonScriptPlugin.cpp:762]
UnrealEditor_USDExporter!ULevelExporterUSD::ExportBinary() [E:\stash\UE57\github-unrealengine\Engine\Plugins\Importers\USDImporter\Source\USDExporter\Private\LevelExporterUSD.cpp:78]
UnrealEditor_Engine!UExporter::RunAssetExportTask() [E:\stash\UE57\github-unrealengine\Engine\Source\Runtime\Engine\Private\UnrealExporter.cpp:396]
UnrealEditor_UnrealEd!UEditorEngine::ExportMap() [E:\stash\UE57\github-unrealengine\Engine\Source\Editor\UnrealEd\Private\EditorServer.cpp:2943]
UnrealEditor_UnrealEd!FEditorFileUtils::Export() [E:\stash\UE57\github-unrealengine\Engine\Source\Editor\UnrealEd\Private\FileHelpers.cpp:1906]
UnrealEditor_LevelEditor!TBaseStaticDelegateInstance::ExecuteIfSafe() [E:\stash\UE57\github-unrealengine\Engine\Source\Runtime\Core\Public\Delegates\DelegateInstancesImpl.h:827]
UnrealEditor_Slate!FUIAction::Execute() [E:\stash\UE57\github-unrealengine\Engine\Source\Runtime\Slate\Public\Framework\Commands\UIAction.h:139]
UnrealEditor_Slate!FUICommandList::ExecuteAction() [E:\stash\UE57\github-unrealengine\Engine\Source\Runtime\Slate\Private\Framework\Commands\UICommandList.cpp:117]
UnrealEditor_Slate!SMenuEntryBlock::OnClicked() [E:\stash\UE57\github-unrealengine\Engine\Source\Runtime\Slate\Private\Framework\MultiBox\SMenuEntryBlock.cpp:1188]
UnrealEditor_Slate!SMenuEntryBlock::OnMenuItemButtonClicked() [E:\stash\UE57\github-unrealengine\Engine\Source\Runtime\Slate\Private\Framework\MultiBox\SMenuEntryBlock.cpp:1148]
UnrealEditor_Slate!TBaseSPMethodDelegateInstance<0,SMenuEntryBlock,1,FReply __cdecl(void),FDefaultDelegateUserPolicy>::Execute() [E:\stash\UE57\github-unrealengine\Engine\Source\Runtime\Core\Public\Delegates\DelegateInstancesImpl.h:308]
UnrealEditor_Slate!SButton::ExecuteOnClick() [E:\stash\UE57\github-unrealengine\Engine\Source\Runtime\Slate\Private\Widgets\Input\SButton.cpp:574]
UnrealEditor_Slate!SButton::OnMouseButtonUp() [E:\stash\UE57\github-unrealengine\Engine\Source\Runtime\Slate\Private\Widgets\Input\SButton.cpp:442]
UnrealEditor_Slate!SMenuEntryButton::OnMouseButtonUp() [E:\stash\UE57\github-unrealengine\Engine\Source\Runtime\Slate\Private\Framework\MultiBox\SMenuEntryBlock.cpp:447]
UnrealEditor_Slate!FEventRouter::Route >() [E:\stash\UE57\github-unrealengine\Engine\Source\Runtime\Slate\Private\Framework\Application\SlateApplication.cpp:459]
UnrealEditor_Slate!FSlateApplication::RoutePointerUpEvent() [E:\stash\UE57\github-unrealengine\Engine\Source\Runtime\Slate\Private\Framework\Application\SlateApplication.cpp:5465]
UnrealEditor_Slate!FSlateApplication::ProcessMouseButtonUpEvent() [E:\stash\UE57\github-unrealengine\Engine\Source\Runtime\Slate\Private\Framework\Application\SlateApplication.cpp:6050]
UnrealEditor_Slate!FSlateApplication::OnMouseUp() [E:\stash\UE57\github-unrealengine\Engine\Source\Runtime\Slate\Private\Framework\Application\SlateApplication.cpp:6006]
UnrealEditor_ApplicationCore!FWindowsApplication::ProcessDeferredMessage() [E:\stash\UE57\github-unrealengine\Engine\Source\Runtime\ApplicationCore\Private\Windows\WindowsApplication.cpp:3423]
UnrealEditor_ApplicationCore!FWindowsApplication::DeferMessage() [E:\stash\UE57\github-unrealengine\Engine\Source\Runtime\ApplicationCore\Private\Windows\WindowsApplication.cpp:4120]
UnrealEditor_ApplicationCore!FWindowsApplication::ProcessMessage() [E:\stash\UE57\github-unrealengine\Engine\Source\Runtime\ApplicationCore\Private\Windows\WindowsApplication.cpp:2355]
UnrealEditor_ApplicationCore!FWindowsApplication::AppWndProc() [E:\stash\UE57\github-unrealengine\Engine\Source\Runtime\ApplicationCore\Private\Windows\WindowsApplication.cpp:2148]
user32
user32
UnrealEditor_ApplicationCore!FWindowsPlatformApplicationMisc::PumpMessages() [E:\stash\UE57\github-unrealengine\Engine\Source\Runtime\ApplicationCore\Private\Windows\WindowsPlatformApplicationMisc.cpp:153]
UnrealEditor!FEngineLoop::Tick() [E:\stash\UE57\github-unrealengine\Engine\Source\Runtime\Launch\Private\LaunchEngineLoop.cpp:5753]
UnrealEditor!GuardedMain() [E:\stash\UE57\github-unrealengine\Engine\Source\Runtime\Launch\Private\Launch.cpp:190]
UnrealEditor!GuardedMainWrapper() [E:\stash\UE57\github-unrealengine\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:123]
UnrealEditor!LaunchWindowsStartup() [E:\stash\UE57\github-unrealengine\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:277]
UnrealEditor!WinMain() [E:\stash\UE57\github-unrealengine\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:334]
UnrealEditor!__scrt_common_main_seh() [D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288]
kernel32
ntdll

Have Comments or More Details?

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

0
Login to Vote

Unresolved
ComponentUE - Editor - Content Pipeline - USD
Affects Versions5.7
Target Fixnone
CreatedMar 27, 2026
UpdatedJun 3, 2026
View Jira Issue