Description

see repro steps: direct crash

the material comes from FAB model: 

[Link Removed]

Steps to Reproduce

using TM 2025.1 release or 2025.1.1

  • using the attached material: install it in the C:\Users\Username\Documents\Twinmotion2025.1_2025.1.1\UserLibrary
  • open TM
  • drag the material from the user lib to the scene

Result: crash with associated callstack

 

Callstack

LoginId:90edeeb74cdcaecaebd7d98956737e7b
EpicAccountId:8b560051adda4bd08226894f9085c127

Fatal error: [Link Removed] [Line: 69] 
Trying to set texture data with invalid mips in UE Editor

 

TwinmotionCookedEditor_Win64_Shipping!CImageTools::createAndSetTextureData() [D:\build\TM+202511\Sync\Twinmotion\Source\TwinmotionArchitectureBase\Private\Common\ImageTools.cpp:803]
TwinmotionCookedEditor_Win64_Shipping!TStorageProtoSerializerPolymorphic<UTexture2D>::readField() [D:\build\TM+202511\Sync\Twinmotion\Intermediate\Build\Win64\TwinmotionCookedEditor\Inc\TwinmotionStorageProto\UHT\TwinmotionStorageProtoGenerated.tmgeneratedsource.h:15650]
TwinmotionCookedEditor_Win64_Shipping!`FTwinmotionProjectContentSourceDatabase::GetFileReader'::`2'::<lambda_1>::operator()() [D:\build\TM+202511\Sync\Twinmotion\Intermediate\Build\Win64\TwinmotionCookedEditor\Inc\TwinmotionStorageProto\UHT\TwinmotionStorageProtoGenerated.tmgeneratedsource.h:16060]
TwinmotionCookedEditor_Win64_Shipping!CStorageProtoStructuredReader::readMessage<`TStorageProtoSerializer<TVariant<double,bool>,0,void>::read'::`2'::<lambda_1> >() [D:\build\TM+202511\Sync\Twinmotion\Source\TwinmotionStorageProto\Private\StorageProto\StructuredReader.h:290]
TwinmotionCookedEditor_Win64_Shipping!TStorageProtoSerializerRawObjectInline<UTexture2D,FTwinmotionStorageProtoPolymorphicFactory,void>::read() [D:\build\TM+202511\Sync\Twinmotion\Source\TwinmotionStorageProto\Private\StorageProto\DataSerializer\ObjectInline.h:83]
TwinmotionCookedEditor_Win64_Shipping!TStorageProtoFieldSerializerBase<UTexture2D * __ptr64,2>::readField() [D:\build\TM+202511\Sync\Twinmotion\Source\TwinmotionStorageProto\Private\StorageProto\FieldSerializer\SingleField.h:99]
TwinmotionCookedEditor_Win64_Shipping!TStorageProtoSerializer<FStorageProtoProxyManagedImageTextureEntry,0,void>::read() [D:\build\TM+202511\Sync\Twinmotion\Intermediate\Build\Win64\TwinmotionCookedEditor\Inc\TwinmotionStorageProto\UHT\TwinmotionStorageProtoGenerated.tmgeneratedsource.h:16750]
TwinmotionCookedEditor_Win64_Shipping!TStorageProtoSerializerPolymorphic<UManagedImageTextureEntry>::readField() [D:\build\TM+202511\Sync\Twinmotion\Intermediate\Build\Win64\TwinmotionCookedEditor\Inc\TwinmotionStorageProto\UHT\TwinmotionStorageProtoGenerated.tmgeneratedsource.h:5205]
TwinmotionCookedEditor_Win64_Shipping!`FTwinmotionProjectContentSourceDatabase::GetFileReader'::`2'::<lambda_1>::operator()() [D:\build\TM+202511\Sync\Twinmotion\Intermediate\Build\Win64\TwinmotionCookedEditor\Inc\TwinmotionStorageProto\UHT\TwinmotionStorageProtoGenerated.tmgeneratedsource.h:15916]
TwinmotionCookedEditor_Win64_Shipping!TStorageProtoFieldSerializerBase<UObject * __ptr64,2>::readField() [D:\build\TM+202511\Sync\Twinmotion\Source\TwinmotionStorageProto\Private\StorageProto\FieldSerializer\SingleField.h:99]
TwinmotionCookedEditor_Win64_Shipping!CStorageProtoBlobUtils::readPayload<FStorageProtoDataBlobContent>() [D:\build\TM+202511\Sync\Twinmotion\Source\TwinmotionStorageProto\Private\StorageProto\BlobUtils.h:94]
TwinmotionCookedEditor_Win64_Shipping!CStorageProtoAsyncReadBlobs::doLoadDataBlob() [D:\build\TM+202511\Sync\Twinmotion\Source\TwinmotionStorageProto\Private\StorageProto\FileOperations\AsyncReadBlobs.cpp:118]
TwinmotionCookedEditor_Win64_Shipping!StorageProto::readResourceFromFile() [D:\build\TM+202511\Sync\Twinmotion\Source\TwinmotionStorageProto\Private\StorageProto\FileOperations\ReadWriteLibraryItem.cpp:184]
TwinmotionCookedEditor_Win64_Shipping!CTwinmotionStorage::loadResourceFromFile() [D:\build\TM+202511\Sync\Twinmotion\Source\TwinmotionStorage\Private\TwinmotionStorage.cpp:1379]
TwinmotionCookedEditor_Win64_Shipping!FLibraryItemTmiStorageStrategy::Instantiate() [D:\build\TM+202511\Sync\Twinmotion\Source\TwinmotionCore\Private\Library\LibraryItemStorageStrategy.cpp:96]
TwinmotionCookedEditor_Win64_Shipping!ULibraryManager::instantiateLibraryItem() [D:\build\TM+202511\Sync\Twinmotion\Source\TwinmotionCore\Private\Library\LibraryManager.cpp:2280]
TwinmotionCookedEditor_Win64_Shipping!ULibraryManager::instantiateLibraryItem() [D:\build\TM+202511\Sync\Twinmotion\Source\TwinmotionCore\Private\Library\LibraryManager.cpp:2219]
TwinmotionCookedEditor_Win64_Shipping!UApplyMaterialDropHelper::startDrag() [D:\build\TM+202511\Sync\Twinmotion\Source\TwinmotionTools\Private\Resources\Task\ApplyMaterialDropHelper.cpp:104]
TwinmotionCookedEditor_Win64_Shipping!UModeDropMaterial::onMouseDragEnter_Legacy() [D:\build\TM+202511\Sync\Twinmotion\Source\TwinmotionTools\Private\Logic\ModeDropMaterial.cpp:101]
TwinmotionCookedEditor_Win64_Shipping!UModeManager::onMouseDragEnter() [D:\build\TM+202511\Sync\Twinmotion\Source\TwinmotionTools\Private\Logic\ModeManager.cpp:215]
TwinmotionCookedEditor_Win64_Shipping!CMouseDragEnterViewport::doSynchronize() [D:\build\TM+202511\Sync\Twinmotion\Source\TwinmotionTools\Private\Logic\Task\MouseCommand.cpp:103]
TwinmotionCookedEditor_Win64_Shipping!IMouseCommand::synchronize() [D:\build\TM+202511\Sync\Twinmotion\Source\TwinmotionTools\Private\Logic\Task\MouseCommand.cpp:26]
TwinmotionCookedEditor_Win64_Shipping!IBaseTask::update() [D:\build\TM+202511\Sync\Twinmotion\Source\TwinmotionCore\Private\Task\BaseTask.cpp:151]
TwinmotionCookedEditor_Win64_Shipping!CTaskManager::updateSync() [D:\build\TM+202511\Sync\Twinmotion\Source\TwinmotionCore\Private\Task\TaskManager.cpp:231]
TwinmotionCookedEditor_Win64_Shipping!ATwinmotionGameMode::Tick() [D:\build\TM+202511\Sync\Twinmotion\Source\Twinmotion\Private\TwinmotionGameMode.cpp:581]
TwinmotionCookedEditor_Win64_Shipping!AActor::TickActor() [D:\build\TM+202511\Sync\Engine\Source\Runtime\Engine\Private\Actor.cpp:1579]
TwinmotionCookedEditor_Win64_Shipping!FActorTickFunction::ExecuteTick() [D:\build\TM+202511\Sync\Engine\Source\Runtime\Engine\Private\Actor.cpp:287]
TwinmotionCookedEditor_Win64_Shipping!TGraphTask<FTickFunctionTask>::ExecuteTask() [D:\build\TM+202511\Sync\Engine\Source\Runtime\Core\Public\Async\TaskGraphInterfaces.h:634]
TwinmotionCookedEditor_Win64_Shipping!UE::Tasks::Private::FTaskBase::TryExecuteTask() [D:\build\TM+202511\Sync\Engine\Source\Runtime\Core\Public\Tasks\TaskPrivate.h:507]
TwinmotionCookedEditor_Win64_Shipping!FNamedTaskThread::ProcessTasksUntilQuit() [D:\build\TM+202511\Sync\Engine\Source\Runtime\Core\Private\Async\TaskGraph.cpp:667]
TwinmotionCookedEditor_Win64_Shipping!FTaskGraphCompatibilityImplementation::WaitUntilTasksComplete() [D:\build\TM+202511\Sync\Engine\Source\Runtime\Core\Private\Async\TaskGraph.cpp:1527]
TwinmotionCookedEditor_Win64_Shipping!FTickTaskSequencer::ReleaseTickGroup() [D:\build\TM+202511\Sync\Engine\Source\Runtime\Engine\Private\TickTaskManager.cpp:815]
TwinmotionCookedEditor_Win64_Shipping!FTickTaskManager::RunTickGroup() [D:\build\TM+202511\Sync\Engine\Source\Runtime\Engine\Private\TickTaskManager.cpp:1866]
TwinmotionCookedEditor_Win64_Shipping!UWorld::Tick() [D:\build\TM+202511\Sync\Engine\Source\Runtime\Engine\Private\LevelTick.cpp:1496]
TwinmotionCookedEditor_Win64_Shipping!UGameEngine::Tick() [D:\build\TM+202511\Sync\Engine\Source\Runtime\Engine\Private\GameEngine.cpp:1784]
TwinmotionCookedEditor_Win64_Shipping!FEngineLoop::Tick() [D:\build\TM+202511\Sync\Engine\Source\Runtime\Launch\Private\LaunchEngineLoop.cpp:5895]
TwinmotionCookedEditor_Win64_Shipping!GuardedMain() [D:\build\TM+202511\Sync\Engine\Source\Runtime\Launch\Private\Launch.cpp:188]
TwinmotionCookedEditor_Win64_Shipping!GuardedMainWrapper() [D:\build\TM+202511\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:123]
TwinmotionCookedEditor_Win64_Shipping!LaunchWindowsStartup() [D:\build\TM+202511\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:277]
TwinmotionCookedEditor_Win64_Shipping!WinMain() [D:\build\TM+202511\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:318]
TwinmotionCookedEditor_Win64_Shipping!__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 TM-19002 in the post.

0
Login to Vote

Unresolved
CreatedMar 3, 2025
UpdatedMar 28, 2025
View Jira Issue