This is a regression. Tested in //UE4/Release-4.27 CL#18319896

Fatal Error when setting S RGB to true on a Texture 2D from a Render Target Create Static Texture Editor Only node.

Steps to Reproduce
  1. Create or open any project
  2. Create a new Actor Blueprint(link in comments)
    1. Off the 'Event BeginPlay' node create a 'Create Render Target 2D' node
    2. Drag off the return value to create a 'Draw Material to Render Target' node
    3. Promote Material input pin to a variable
    4. Drag off the 'Create Render Target 2D' node's return value and create a 'Render Target Create Static Texture Editor Only' node that is placed after the 'Draw Material to Render Target' node
    5. Off the 'Render Target Create Static Texture Editor Only' node's Return Value output pin then create a 'Set S RGB' node
    6. Set it to true
    7. Compile, save, and close the blueprint
  3. Place the Blueprint Actor in the level
  4. Play in Editor

Expected Results:
No Crash when the SRGB is set to true

Actual Results:
Editor Crashes with a fatal error:

Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0x0000071a690e0000

Work Around:
Use an Editor Utilities Blueprint instead of a regular BP and then use the SetEditorProperty node to set the SRGB property of the texture.


Error: === Critical error: ===
Fatal error!Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0x0000071a690e0000[Callstack] 0x00007fff9110f8e1 UnrealEditor-Engine.dll!TConstSetBitIterator<FDefaultBitArrayAllocator>::FindFirstSetBit() [D:\build\++UE5\Sync\Engine\Source\Runtime\Core\Public\Containers\BitArray.h:1840]
[Callstack] 0x00007fff92ca8e68 UnrealEditor-Engine.dll!FTextureCompilingManager::ProcessTextures() [D:\build\++UE5\Sync\Engine\Source\Runtime\Engine\Private\TextureCompiler.cpp:559]
[Callstack] 0x00007fff92ca8334 UnrealEditor-Engine.dll!FTextureCompilingManager::ProcessAsyncTasks() [D:\build\++UE5\Sync\Engine\Source\Runtime\Engine\Private\TextureCompiler.cpp:686]
[Callstack] 0x00007fff914dd15c UnrealEditor-Engine.dll!FAssetCompilingManager::ProcessAsyncTasks() [D:\build\++UE5\Sync\Engine\Source\Runtime\Engine\Private\AssetCompilingManager.cpp:349]
[Callstack] 0x00007ff68dc38808 UnrealEditor.exe!FEngineLoop::Tick() [D:\build\++UE5\Sync\Engine\Source\Runtime\Launch\Private\LaunchEngineLoop.cpp:5257]
[Callstack] 0x00007ff68dc50d9c UnrealEditor.exe!GuardedMain() [D:\build\++UE5\Sync\Engine\Source\Runtime\Launch\Private\Launch.cpp:183]
[Callstack] 0x00007ff68dc50e8a UnrealEditor.exe!GuardedMainWrapper() [D:\build\++UE5\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:147]
[Callstack] 0x00007ff68dc53c4d UnrealEditor.exe!LaunchWindowsStartup() [D:\build\++UE5\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:283]
[Callstack] 0x00007ff68dc65564 UnrealEditor.exe!WinMain() [D:\build\++UE5\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:330]
[Callstack] 0x00007ff68dc68736 UnrealEditor.exe!__scrt_common_main_seh() [d:\a01\_work\6\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288]
[Callstack] 0x00007ff825587c24 KERNEL32.DLL!UnknownFunction []
[Callstack] 0x00007ff82654d721 ntdll.dll!UnknownFunction []

Have Comments or More Details?

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

Login to Vote

ComponentUE - Texture
Affects Versions5.1
Target Fix5.5
CreatedJun 6, 2022
UpdatedApr 21, 2023