carla icon indicating copy to clipboard operation
carla copied to clipboard

Unreal Engine Version 4.26.2 Crashes Upon Project Creation

Open doom6461 opened this issue 2 years ago • 16 comments

Hello, I am following the guide in the link below to build carla 0.9.13 for windows: https://carla.readthedocs.io/en/0.9.13/build_windows/

I have a Windows 10 PC with a NVIDIA Geforce RTX 2060 graphics card. I followed all the steps listed in the document above and cloned Unreal Engine from the following address (cloning from this address gives me UE_4.26.2): https://github.com/CarlaUnreal/UnrealEngine.git

I ran the Setup.bat and GenerateProjectFiles.bat scripts successfully. I opened up UE4.sln with Microsoft Visual Studio 2019 and selected the ‘Development Editor’, ‘Win64’ and ‘UnrealBuildTool’ options. I built the UE4 solution successfully.

Now that everything is complete, when I run UE4Editor.exe I can create a new project. But when the project opens, the editor suddenly crashes with the following message:

Fatal error: [File:C:/Users/123/Downloads/ue4/Engine/Source/Runtime/RenderCore/Private/RenderingThread.cpp] [Line: 907] Rendering thread exception: Assertion failed: ResourceTableFrameCounter == INDEX_NONE [File:C:/Users/123/Downloads/ue4/Engine/Source/Runtime/Windows/D3D11RHI/Private/D3D11Texture.cpp] [Line: 2260]

0x00007ff8c1bccd29 KERNELBASE.dll!UnknownFunction [] 0x00007ff85e3cac76 UE4Editor-Core.dll!ReportAssert() [C:\Users\123\Downloads\ue4\Engine\Source\Runtime\Core\Private\Windows\WindowsPlatformCrashContext.cpp:1616] 0x00007ff85e3ce428 UE4Editor-Core.dll!FWindowsErrorOutputDevice::Serialize() [C:\Users\123\Downloads\ue4\Engine\Source\Runtime\Core\Private\Windows\WindowsErrorOutputDevice.cpp:78] 0x00007ff85e0df31d UE4Editor-Core.dll!FOutputDevice::LogfImpl() [C:\Users\123\Downloads\ue4\Engine\Source\Runtime\Core\Private\Misc\OutputDevice.cpp:61] 0x00007ff85e075b55 UE4Editor-Core.dll!AssertFailedImplV() [C:\Users\123\Downloads\ue4\Engine\Source\Runtime\Core\Private\Misc\AssertionMacros.cpp:104] 0x00007ff85e077bf0 UE4Editor-Core.dll!FDebug::CheckVerifyFailedImpl() [C:\Users\123\Downloads\ue4\Engine\Source\Runtime\Core\Private\Misc\AssertionMacros.cpp:461] 0x00007ff8437397bf UE4Editor-D3D11RHI.dll!FD3D11DynamicRHI::RHIUpdateTextureReference() [C:\Users\123\Downloads\ue4\Engine\Source\Runtime\Windows\D3D11RHI\Private\D3D11Texture.cpp:2260] 0x00007ff85f70a6a2 UE4Editor-RHI.dll!FRHICommandListImmediate::UpdateTextureReference() [C:\Users\123\Downloads\ue4\Engine\Source\Runtime\RHI\Private\RHICommandList.cpp:2730] 0x00007ff84d86dac1 UE4Editor-Engine.dll!FStreamableTextureResource::InitRHI() [C:\Users\123\Downloads\ue4\Engine\Source\Runtime\Engine\Private\Rendering\StreamableTextureResource.cpp:183] 0x00007ff8600632cb UE4Editor-RenderCore.dll!FRenderResource::InitResource() [C:\Users\123\Downloads\ue4\Engine\Source\Runtime\RenderCore\Private\RenderResource.cpp:102] 0x00007ff8600bc65f UE4Editor-RenderCore.dll!TEnqueueUniqueRenderCommandType<BeginInitResource'::2’::InitCommandName,<lambda_62eddc873155d85469e17b1ba3893b43> >::DoTask() [C:\Users\123\Downloads\ue4\Engine\Source\Runtime\RenderCore\Public\RenderingThread.h:183] 0x00007ff8600cd4b0 UE4Editor-RenderCore.dll!TGraphTask<TEnqueueUniqueRenderCommandType<BeginInitResource'::2’::InitCommandName,<lambda_62eddc873155d85469e17b1ba3893b43> > >::ExecuteTask() [C:\Users\123\Downloads\ue4\Engine\Source\Runtime\Core\Public\Async\TaskGraphInterfaces.h:886] 0x00007ff85de8e3b4 UE4Editor-Core.dll!FNamedTaskThread::ProcessTasksNamedThread() [C:\Users\123\Downloads\ue4\Engine\Source\Runtime\Core\Private\Async\TaskGraph.cpp:709] 0x00007ff85de8e7be UE4Editor-Core.dll!FNamedTaskThread::ProcessTasksUntilQuit() [C:\Users\123\Downloads\ue4\Engine\Source\Runtime\Core\Private\Async\TaskGraph.cpp:601] 0x00007ff8600eb532 UE4Editor-RenderCore.dll!RenderingThreadMain() [C:\Users\123\Downloads\ue4\Engine\Source\Runtime\RenderCore\Private\RenderingThread.cpp:373] 0x00007ff8600f3c04 UE4Editor-RenderCore.dll!FRenderingThread::Run() [C:\Users\123\Downloads\ue4\Engine\Source\Runtime\RenderCore\Private\RenderingThread.cpp:509] 0x00007ff85e3e69bb UE4Editor-Core.dll!FRunnableThreadWin::Run() [C:\Users\123\Downloads\ue4\Engine\Source\Runtime\Core\Private\Windows\WindowsRunnableThread.cpp:86] 0x00007ff85e3df680 UE4Editor-Core.dll!FRunnableThreadWin::GuardedRun() [C:\Users\123\Downloads\ue4\Engine\Source\Runtime\Core\Private\Windows\WindowsRunnableThread.cpp:35] 0x00007ff8c3477614 KERNEL32.DLL!UnknownFunction [] 0x00007ff8c45026a1 ntdll.dll!UnknownFunction []

  1. I have tried rebuilding the solution multiple times with different options, including the "UE4" option.
  2. I installed the latest NVIDIA graphics driver (studio version).

Any help would be much appreciated. Thanks in advance.

doom6461 avatar Jan 02 '23 11:01 doom6461

Same exception. Help needed. 0.9.14 build from source NVIDIA RTX A6000 on Windows Server 2019 Standard with latest driver R525 U3 (528.02) (2023.1.5)

ushio2021 avatar Jan 19 '23 08:01 ushio2021

Not sure if this helps your problem but I downgraded to 0.9.9 with UE_4.24 (installed from epic games launcher) and its working fine.

doom6461 avatar Jan 21 '23 08:01 doom6461

Thanks but I had no problems from 0.9.13 source on the same machine

ushio2021 avatar Jan 25 '23 13:01 ushio2021

Thanks but I had no problems from 0.9.13 source on the same machine

Have you solved it ever? I encount the same issue now: Assertion failed: ResourceTableFrameCounter == INDEX_NONE[File:D:/UnrealEngine4.26/Engine/Source/Runtime/Windows/D3D11RHI/Private/D3D11Texture.cpp] [Line: 2260]. I'm using carla 0.9.13 build from source.

wx983 avatar Feb 02 '23 10:02 wx983

Thanks but I had no problems from 0.9.13 source on the same machine

Have you solved it ever? I encount the same issue now: Assertion failed: ResourceTableFrameCounter == INDEX_NONE[File:D:/UnrealEngine4.26/Engine/Source/Runtime/Windows/D3D11RHI/Private/D3D11Texture.cpp] [Line: 2260]. I'm using carla 0.9.13 build from source.

Hi, I only came across this exception until 0.9.14, and still have no idea.

ushio2021 avatar Feb 05 '23 16:02 ushio2021

It seems the problem fixed (both DX11 and DX12) by upgrading to Windows Server 2022

ushio2021 avatar May 30 '23 08:05 ushio2021

I faced the same problem on CARLA 0.9.14 built from source in Windows and couldn't find any solutions, despite the issue being reported in multiple places (link, #6201).

A hack I'm using that appears to work (so far at least) is to just comment out the line (l. 2260) that throws the error in D3D11Texture.cpp. Doing this I can now create projects and have seen no issues so far.

But again, this is a hack and not a solution. It would be great to get an actual solution.

andrejfsantos4 avatar Jul 06 '23 09:07 andrejfsantos4

I faced the same problem on CARLA 0.9.14 built from source in Windows and couldn't find any solutions, despite the issue being reported in multiple places (link, #6201).

A hack I'm using that appears to work (so far at least) is to just comment out the line (l. 2260) that throws the error in D3D11Texture.cpp. Doing this I can now create projects and have seen no issues so far.

But again, this is a hack and not a solution. It would be great to get an actual solution.

Although still not sure which one, I highly suspect that it is due to some Windows compablility issues. I no longer have these issues since my last reply above.

ushio2021 avatar Jul 06 '23 14:07 ushio2021

I faced the same problem on CARLA 0.9.14 built from source in Windows and couldn't find any solutions, despite the issue being reported in multiple places (link, #6201).

A hack I'm using that appears to work (so far at least) is to just comment out the line (l. 2260) that throws the error in D3D11Texture.cpp. Doing this I can now create projects and have seen no issues so far.

But again, this is a hack and not a solution. It would be great to get an actual solution.

I faced the same problem on CARLA 0.9.14 built from source in Windows and couldn't find any solutions, despite the issue being reported in multiple places (link, #6201).

A hack I'm using that appears to work (so far at least) is to just comment out the line (l. 2260) that throws the error in D3D11Texture.cpp. Doing this I can now create projects and have seen no issues so far.

But again, this is a hack and not a solution. It would be great to get an actual solution.

it works for me. just comment out the line (l. 2260) that throws the error in D3D11Texture.cpp.

Gululu2231 avatar Jan 01 '24 11:01 Gululu2231

it works for me. just comment out the line (l. 2260) that throws the error in D3D11Texture.cpp.

Hi, the error still persists, even after I comment out the line. It gives me the same error, in the same line, even though the line shouldnt actually exist.

MTeuberItemis avatar Jan 15 '24 10:01 MTeuberItemis

Anyone found the solution for this? facing the same error

prabanjanKAN avatar Feb 11 '24 21:02 prabanjanKAN

Hello, I am having the same issue. Did someone manage to solve it? Commenting the line didn´t solve the problem in my case.

InigoAgirre avatar Feb 13 '24 08:02 InigoAgirre

Launching the UE4Editor.exe file with -dx12 argument (like: UnrealEngine\Engine\Binaries\Win64> .\UE4Editor.exe -dx12) resolved this error for me in windows 11.

If -dx12 argument doesn't work, try -dx11 or -vulkan or -opengl.

prabanjanKAN avatar Feb 13 '24 16:02 prabanjanKAN

Launching the UE4Editor.exe file with -dx12 argument (like: UnrealEngine\Engine\Binaries\Win64> .\UE4Editor.exe -dx12) resolved this error for me in windows 11.

If -dx12 argument doesn't work, try -dx11 or -vulkan or -opengl.

This method helped me solve the problem by adding a -dx12 to the file path, I tried rebuild and turning off the graphics driver, etc., but the problem was not solved until I tried this method

Bniultu avatar Mar 20 '24 23:03 Bniultu

Launching the UE4Editor.exe file with -dx12 argument (like: UnrealEngine\Engine\Binaries\Win64> .\UE4Editor.exe -dx12) resolved this error for me in windows 11. If -dx12 argument doesn't work, try -dx11 or -vulkan or -opengl.

This method helped me solve the problem by adding a -dx12 to the file path, I tried rebuild and turning off the graphics driver, etc., but the problem was not solved until I tried this method

Was your Carla make PythonAPI and make launch successful afterwards? I am aware that this could be the solution for creating a project, but I suspect that the make process might fail

evoevo07 avatar Mar 24 '24 13:03 evoevo07

Launching the UE4Editor.exe file with -dx12 argument (like: UnrealEngine\Engine\Binaries\Win64> .\UE4Editor.exe -dx12) resolved this error for me in windows 11. If -dx12 argument doesn't work, try -dx11 or -vulkan or -opengl.

This method helped me solve the problem by adding a -dx12 to the file path, I tried rebuild and turning off the graphics driver, etc., but the problem was not solved until I tried this method

Was your Carla make PythonAPI and make launch successful afterwards? I am aware that this could be the solution for creating a project, but I suspect that the make process might fail

Did your Carla make PythonAPI and make succeed after launching? I realize that this may be the solution to create the project, but I suspect that the make process may be missing

Yes, I've run both successfully and I've had no problems with the rest of the process.

Bniultu avatar Apr 02 '24 23:04 Bniultu

Any news on this have your problems been fixed?

Blyron avatar Jul 12 '24 10:07 Blyron