Description

An assertion will occur when packaging if an Actor in level uses "Create Canvas 2D Render Target" 

Found in 4.20 CL# 4369336, 4.21 CL 4753647

Blocked for testing in main due to crash when placing Blueprint in level/selecting the viewport in the Blueprint Editor. 

Steps to Reproduce
  1. Open the Editor.
  2. Create an Actor Blueprint.
  3. In the Construction Script create a Canvas Render Target 2D and promote the return value to a variable.
  4. In the Event Graph create an "On Canvas Render Target Update" event for the Canvas Render Target 2D Variable, and then Draw Text with the Canvas as the target
  5. Compile and Save the actor then place it in the level
  6. Set the current level with the Actor in it as the default game map in Project Settings
  7. Package for Windows 64

Steps with attached project:

  1. Open attached project
  2. Package for Windows 64

Results:
Assertion will occur

Expected:
Packaging would finish successfully 

Callstack
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: begin: stack for UAT
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: === Critical error: ===
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error:
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: Assertion failed: RenderTarget [File:D:\Build\++UE4\Sync\Engine\Source\Runtime\Engine\Private\UserInterface\Canvas.cpp] [Line: 270]
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error:
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error:
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error:
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: [Callstack] 0x00007fffaef954d8 KERNELBASE.dll!UnknownFunction []
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: [Callstack] 0x00007fff88fb6850 UE4Editor-ApplicationCore.dll!FWindowsErrorOutputDevice::Serialize() [d:\build\++ue4\sync\engine\source\runtime\applicationcore\private\windows\windowserroroutputdevice.cpp:65]
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: [Callstack] 0x00007fff4e0262fc UE4Editor-Core.dll!FOutputDevice::LogfImpl() [d:\build\++ue4\sync\engine\source\runtime\core\private\misc\outputdevice.cpp:70]
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: [Callstack] 0x00007fff4dfb51db UE4Editor-Core.dll!FDebug::AssertFailed() [d:\build\++ue4\sync\engine\source\runtime\core\private\misc\assertionmacros.cpp:425]
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: [Callstack] 0x00007fff4c5dc4d1 UE4Editor-Engine.dll!FCanvas::Construct() [d:\build\++ue4\sync\engine\source\runtime\engine\private\userinterface\canvas.cpp:272]
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: [Callstack] 0x00007fff4c5bf6e8 UE4Editor-Engine.dll!FCanvas::FCanvas() [d:\build\++ue4\sync\engine\source\runtime\engine\private\userinterface\canvas.cpp:265]
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: [Callstack] 0x00007fff4b6627cc UE4Editor-Engine.dll!UCanvasRenderTarget2D::RepaintCanvas() [d:\build\++ue4\sync\engine\source\runtime\engine\private\canvasrendertarget2d.cpp:69]
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: [Callstack] 0x00007fff4b625741 UE4Editor-Engine.dll!UCanvasRenderTarget2D::CreateCanvasRenderTarget2D() [d:\build\++ue4\sync\engine\source\runtime\engine\private\canvasrendertarget2d.cpp:119]
PackagingResults: Error: begin: stack for UAT
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: [Callstack] 0x00007fff4b672f89 UE4Editor-Engine.dll!UCanvasRenderTarget2D::execCreateCanvasRenderTarget2D() [d:\build\++ue4\sync\engine\source\runtime\engine\classes\engine\canvasrendertarget2d.h:30]
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: [Callstack] 0x00007fff51436467 UE4Editor-CoreUObject.dll!UFunction::Invoke() [d:\build\++ue4\sync\engine\source\runtime\coreuobject\private\uobject\class.cpp:4728]
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: [Callstack] 0x00007fff516416ae UE4Editor-CoreUObject.dll!UObject::CallFunction() [d:\build\++ue4\sync\engine\source\runtime\coreuobject\private\uobject\scriptcore.cpp:772]
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: [Callstack] 0x00007fff5165f499 UE4Editor-CoreUObject.dll!UObject::ProcessContextOpcode() [d:\build\++ue4\sync\engine\source\runtime\coreuobject\private\uobject\scriptcore.cpp:2197]
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: [Callstack] 0x00007fff51692266 UE4Editor-CoreUObject.dll!UObject::execLetObj() [d:\build\++ue4\sync\engine\source\runtime\coreuobject\private\uobject\scriptcore.cpp:2019]
PackagingResults: Error: === Critical error: ===
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: [Callstack] 0x00007fff51661b96 UE4Editor-CoreUObject.dll!UObject::ProcessInternal() [d:\build\++ue4\sync\engine\source\runtime\coreuobject\private\uobject\scriptcore.cpp:984]
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: [Callstack] 0x00007fff51436467 UE4Editor-CoreUObject.dll!UFunction::Invoke() [d:\build\++ue4\sync\engine\source\runtime\coreuobject\private\uobject\class.cpp:4728]
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: [Callstack] 0x00007fff51661133 UE4Editor-CoreUObject.dll!UObject::ProcessEvent() [d:\build\++ue4\sync\engine\source\runtime\coreuobject\private\uobject\scriptcore.cpp:1344]
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: [Callstack] 0x00007fff4b348033 UE4Editor-Engine.dll!AActor::ProcessEvent() [d:\build\++ue4\sync\engine\source\runtime\engine\private\actor.cpp:724]
PackagingResults: Error: Assertion failed: RenderTarget [File:D:\Build\++UE4\Sync\Engine\Source\Runtime\Engine\Private\UserInterface\Canvas.cpp] [Line: 270]
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: [Callstack] 0x00007fff4b348133 UE4Editor-Engine.dll!AActor::ProcessUserConstructionScript() [d:\build\++ue4\sync\engine\source\runtime\engine\private\actorconstruction.cpp:849]
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: [Callstack] 0x00007fff4b32476f UE4Editor-Engine.dll!AActor::ExecuteConstruction() [d:\build\++ue4\sync\engine\source\runtime\engine\private\actorconstruction.cpp:765]
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: [Callstack] 0x00007fff4b3571f1 UE4Editor-Engine.dll!AActor::RerunConstructionScripts() [d:\build\++ue4\sync\engine\source\runtime\engine\private\actorconstruction.cpp:494]
PackagingResults: Error: [Callstack] 0x00007fffaef954d8 KERNELBASE.dll!UnknownFunction []
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: [Callstack] 0x00007fff4bbe1275 UE4Editor-Engine.dll!ULevel::IncrementalUpdateComponents() [d:\build\++ue4\sync\engine\source\runtime\engine\private\level.cpp:997]
PackagingResults: Error: [Callstack] 0x00007fff88fb6850 UE4Editor-ApplicationCore.dll!FWindowsErrorOutputDevice::Serialize() [d:\build\++ue4\sync\engine\source\runtime\applicationcore\private\windows\windowserroroutputdevice.cpp:65]
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: [Callstack] 0x00007fff4c6946e3 UE4Editor-Engine.dll!UWorld::UpdateWorldComponents() [d:\build\++ue4\sync\engine\source\runtime\engine\private\world.cpp:1666]
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: [Callstack] 0x00007fff48f9961c UE4Editor-UnrealEd.dll!UEditorEngine::InitializePhysicsSceneForSaveIfNecessary() [d:\build\++ue4\sync\engine\source\editor\unrealed\private\editorengine.cpp:4321]
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: [Callstack] 0x00007fff48faea84 UE4Editor-UnrealEd.dll!UEditorEngine::Save() [d:\build\++ue4\sync\engine\source\editor\unrealed\private\editorengine.cpp:4369]
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: [Callstack] 0x00007fff48e462f3 UE4Editor-UnrealEd.dll!UCookOnTheFlyServer::SaveCookedPackage() [d:\build\++ue4\sync\engine\source\editor\unrealed\private\cookontheflyserver.cpp:3496]
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: [Callstack] 0x00007fff48e483a8 UE4Editor-UnrealEd.dll!UCookOnTheFlyServer::SaveCookedPackages() [d:\build\++ue4\sync\engine\source\editor\unrealed\private\cookontheflyserver.cpp:2343]
PackagingResults: Error: [Callstack] 0x00007fff4e0262fc UE4Editor-Core.dll!FOutputDevice::LogfImpl() [d:\build\++ue4\sync\engine\source\runtime\core\private\misc\outputdevice.cpp:70]
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: [Callstack] 0x00007fff48e56648 UE4Editor-UnrealEd.dll!UCookOnTheFlyServer::TickCookOnTheSide() [d:\build\++ue4\sync\engine\source\editor\unrealed\private\cookontheflyserver.cpp:1805]
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: [Callstack] 0x00007fff48cc7a8d UE4Editor-UnrealEd.dll!UCookCommandlet::CookByTheBook() [d:\build\++ue4\sync\engine\source\editor\unrealed\private\commandlets\cookcommandlet.cpp:914]
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: [Callstack] 0x00007fff48cf88ff UE4Editor-UnrealEd.dll!UCookCommandlet::Main() [d:\build\++ue4\sync\engine\source\editor\unrealed\private\commandlets\cookcommandlet.cpp:585]
PackagingResults: Error: [Callstack] 0x00007fff4dfb51db UE4Editor-Core.dll!FDebug::AssertFailed() [d:\build\++ue4\sync\engine\source\runtime\core\private\misc\assertionmacros.cpp:425]
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: [Callstack] 0x00007ff61512e9c2 UE4Editor-Cmd.exe!FEngineLoop::PreInit() [d:\build\++ue4\sync\engine\source\runtime\launch\private\launchengineloop.cpp:2322]
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: [Callstack] 0x00007ff615125968 UE4Editor-Cmd.exe!GuardedMain() [d:\build\++ue4\sync\engine\source\runtime\launch\private\launch.cpp:127]
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: [Callstack] 0x00007ff615125bba UE4Editor-Cmd.exe!GuardedMainWrapper() [d:\build\++ue4\sync\engine\source\runtime\launch\private\windows\launchwindows.cpp:144]
PackagingResults: Error: [Callstack] 0x00007fff4c5dc4d1 UE4Editor-Engine.dll!FCanvas::Construct() [d:\build\++ue4\sync\engine\source\runtime\engine\private\userinterface\canvas.cpp:272]
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: [Callstack] 0x00007ff615133dac UE4Editor-Cmd.exe!WinMain() [d:\build\++ue4\sync\engine\source\runtime\launch\private\windows\launchwindows.cpp:223]
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: [Callstack] 0x00007ff615134ce6 UE4Editor-Cmd.exe!__scrt_common_main_seh() [f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl:283]
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: [Callstack] 0x00007fffb1e31fe4 KERNEL32.DLL!UnknownFunction []
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: [Callstack] 0x00007fffb1fccb81 ntdll.dll!UnknownFunction []
PackagingResults: Error: [Callstack] 0x00007fff4c5bf6e8 UE4Editor-Engine.dll!FCanvas::FCanvas() [d:\build\++ue4\sync\engine\source\runtime\engine\private\userinterface\canvas.cpp:265]
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error:
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: end: stack for UAT
PackagingResults: Error: [Callstack] 0x00007fff4b6627cc UE4Editor-Engine.dll!UCanvasRenderTarget2D::RepaintCanvas() [d:\build\++ue4\sync\engine\source\runtime\engine\private\canvasrendertarget2d.cpp:69]
PackagingResults: Error: [Callstack] 0x00007fff4b625741 UE4Editor-Engine.dll!UCanvasRenderTarget2D::CreateCanvasRenderTarget2D() [d:\build\++ue4\sync\engine\source\runtime\engine\private\canvasrendertarget2d.cpp:119]
PackagingResults: Error: [Callstack] 0x00007fff4b672f89 UE4Editor-Engine.dll!UCanvasRenderTarget2D::execCreateCanvasRenderTarget2D() [d:\build\++ue4\sync\engine\source\runtime\engine\classes\engine\canvasrendertarget2d.h:30]
PackagingResults: Error: [Callstack] 0x00007fff51436467 UE4Editor-CoreUObject.dll!UFunction::Invoke() [d:\build\++ue4\sync\engine\source\runtime\coreuobject\private\uobject\class.cpp:4728]
PackagingResults: Error: [Callstack] 0x00007fff516416ae UE4Editor-CoreUObject.dll!UObject::CallFunction() [d:\build\++ue4\sync\engine\source\runtime\coreuobject\private\uobject\scriptcore.cpp:772]
PackagingResults: Error: [Callstack] 0x00007fff5165f499 UE4Editor-CoreUObject.dll!UObject::ProcessContextOpcode() [d:\build\++ue4\sync\engine\source\runtime\coreuobject\private\uobject\scriptcore.cpp:2197]
PackagingResults: Error: [Callstack] 0x00007fff51692266 UE4Editor-CoreUObject.dll!UObject::execLetObj() [d:\build\++ue4\sync\engine\source\runtime\coreuobject\private\uobject\scriptcore.cpp:2019]
PackagingResults: Error: [Callstack] 0x00007fff51661b96 UE4Editor-CoreUObject.dll!UObject::ProcessInternal() [d:\build\++ue4\sync\engine\source\runtime\coreuobject\private\uobject\scriptcore.cpp:984]
PackagingResults: Error: [Callstack] 0x00007fff51436467 UE4Editor-CoreUObject.dll!UFunction::Invoke() [d:\build\++ue4\sync\engine\source\runtime\coreuobject\private\uobject\class.cpp:4728]
PackagingResults: Error: [Callstack] 0x00007fff51661133 UE4Editor-CoreUObject.dll!UObject::ProcessEvent() [d:\build\++ue4\sync\engine\source\runtime\coreuobject\private\uobject\scriptcore.cpp:1344]
PackagingResults: Error: [Callstack] 0x00007fff4b348033 UE4Editor-Engine.dll!AActor::ProcessEvent() [d:\build\++ue4\sync\engine\source\runtime\engine\private\actor.cpp:724]
PackagingResults: Error: [Callstack] 0x00007fff4b348133 UE4Editor-Engine.dll!AActor::ProcessUserConstructionScript() [d:\build\++ue4\sync\engine\source\runtime\engine\private\actorconstruction.cpp:849]
PackagingResults: Error: [Callstack] 0x00007fff4b32476f UE4Editor-Engine.dll!AActor::ExecuteConstruction() [d:\build\++ue4\sync\engine\source\runtime\engine\private\actorconstruction.cpp:765]
PackagingResults: Error: [Callstack] 0x00007fff4b3571f1 UE4Editor-Engine.dll!AActor::RerunConstructionScripts() [d:\build\++ue4\sync\engine\source\runtime\engine\private\actorconstruction.cpp:494]
PackagingResults: Error: [Callstack] 0x00007fff4bbe1275 UE4Editor-Engine.dll!ULevel::IncrementalUpdateComponents() [d:\build\++ue4\sync\engine\source\runtime\engine\private\level.cpp:997]
PackagingResults: Error: [Callstack] 0x00007fff4c6946e3 UE4Editor-Engine.dll!UWorld::UpdateWorldComponents() [d:\build\++ue4\sync\engine\source\runtime\engine\private\world.cpp:1666]
PackagingResults: Error: [Callstack] 0x00007fff48f9961c UE4Editor-UnrealEd.dll!UEditorEngine::InitializePhysicsSceneForSaveIfNecessary() [d:\build\++ue4\sync\engine\source\editor\unrealed\private\editorengine.cpp:4321]
PackagingResults: Error: [Callstack] 0x00007fff48faea84 UE4Editor-UnrealEd.dll!UEditorEngine::Save() [d:\build\++ue4\sync\engine\source\editor\unrealed\private\editorengine.cpp:4369]
PackagingResults: Error: [Callstack] 0x00007fff48e462f3 UE4Editor-UnrealEd.dll!UCookOnTheFlyServer::SaveCookedPackage() [d:\build\++ue4\sync\engine\source\editor\unrealed\private\cookontheflyserver.cpp:3496]
PackagingResults: Error: [Callstack] 0x00007fff48e483a8 UE4Editor-UnrealEd.dll!UCookOnTheFlyServer::SaveCookedPackages() [d:\build\++ue4\sync\engine\source\editor\unrealed\private\cookontheflyserver.cpp:2343]
PackagingResults: Error: [Callstack] 0x00007fff48e56648 UE4Editor-UnrealEd.dll!UCookOnTheFlyServer::TickCookOnTheSide() [d:\build\++ue4\sync\engine\source\editor\unrealed\private\cookontheflyserver.cpp:1805]
PackagingResults: Error: [Callstack] 0x00007fff48cc7a8d UE4Editor-UnrealEd.dll!UCookCommandlet::CookByTheBook() [d:\build\++ue4\sync\engine\source\editor\unrealed\private\commandlets\cookcommandlet.cpp:914]
PackagingResults: Error: [Callstack] 0x00007fff48cf88ff UE4Editor-UnrealEd.dll!UCookCommandlet::Main() [d:\build\++ue4\sync\engine\source\editor\unrealed\private\commandlets\cookcommandlet.cpp:585]
PackagingResults: Error: [Callstack] 0x00007ff61512e9c2 UE4Editor-Cmd.exe!FEngineLoop::PreInit() [d:\build\++ue4\sync\engine\source\runtime\launch\private\launchengineloop.cpp:2322]
PackagingResults: Error: [Callstack] 0x00007ff615125968 UE4Editor-Cmd.exe!GuardedMain() [d:\build\++ue4\sync\engine\source\runtime\launch\private\launch.cpp:127]
PackagingResults: Error: [Callstack] 0x00007ff615125bba UE4Editor-Cmd.exe!GuardedMainWrapper() [d:\build\++ue4\sync\engine\source\runtime\launch\private\windows\launchwindows.cpp:144]
PackagingResults: Error: [Callstack] 0x00007ff615133dac UE4Editor-Cmd.exe!WinMain() [d:\build\++ue4\sync\engine\source\runtime\launch\private\windows\launchwindows.cpp:223]
PackagingResults: Error: [Callstack] 0x00007ff615134ce6 UE4Editor-Cmd.exe!__scrt_common_main_seh() [f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl:283]
PackagingResults: Error: [Callstack] 0x00007fffb1e31fe4 KERNEL32.DLL!UnknownFunction []
PackagingResults: Error: [Callstack] 0x00007fffb1fccb81 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-68965 in the post.

4
Login to Vote

Fixed
ComponentUE - Graphics Features
Affects Versions4.204.21
Target Fix4.22
Fix Commit4937347
Main Commit4937348
Release Commit4937347
CreatedJan 23, 2019
ResolvedFeb 7, 2019
UpdatedFeb 25, 2019
View Jira Issue