CarlaUE4 sometimes crashes randomly with message "Fatal Error!"
JonasDoubleU opened this issue · 5 comments
CARLA version: 0.9.14
Platform/OS: Windows 10
I am using PyTorch and DQN to implement an autonomous vehicle, and while running the learning program, CarlaUE4 sometimes crashes seemingly at random with the message "Fatal Error!". I have received two different crash notes from this:
LowLevelFatalError [File:Unknown] [Line: 160]
MallocBinned2 Corruption Canary was 0x3941, should be 0x17eaCrash in runnable thread TaskGraphThreadNP 0
Fatal error!
Unhandled Exception: 0xe06d7363
0x00007ffbe51fcd29 KERNELBASE.dll!UnknownFunction []
0x00007ffbcb5266c0 VCRUNTIME140.dll!UnknownFunction []
0x00007ff6070ddb2f CarlaUE4-Win64-Shipping.exe!std::_Throw_bad_weak_ptr() []
0x00007ff6070f1b1b CarlaUE4-Win64-Shipping.exe!carla::BufferPool::Pop() []
0x00007ff607114912 CarlaUE4-Win64-Shipping.exe!carla::streaming::detail::StreamStateBase::MakeBuffer() []
0x00007ff604694b2c CarlaUE4-Win64-Shipping.exe!<lambda_79473c5254a2e33ebdc5063dba0b6f4f>::operator()() [C:\jenkins\workspace\carla_0.9.14\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Sensor\PixelReader.h:131]
0x00007ff6046aea30 CarlaUE4-Win64-Shipping.exe!<lambda_c891cc9fab0e9a02ac08430d1d840c63>::operator()() [C:\jenkins\workspace\carla_0.9.14\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\Sensor\PixelReader.cpp:95]
0x00007ff604d3d4c7 CarlaUE4-Win64-Shipping.exe!TGraphTask::ExecuteTask() [C:\UE_4.26\Engine\Source\Runtime\Core\Public\Async\TaskGraphInterfaces.h:887]
0x00007ff604d4984a CarlaUE4-Win64-Shipping.exe!FTaskThreadAnyThread::ProcessTasks() [C:\UE_4.26\Engine\Source\Runtime\Core\Private\Async\TaskGraph.cpp:1066]
0x00007ff604d4a4e8 CarlaUE4-Win64-Shipping.exe!FTaskThreadAnyThread::ProcessTasksUntilQuit() [C:\UE_4.26\Engine\Source\Runtime\Core\Private\Async\TaskGraph.cpp:888]
0x00007ff604d4c66c CarlaUE4-Win64-Shipping.exe!FTaskThreadBase::Run() [C:\UE_4.26\Engine\Source\Runtime\Core\Private\Async\TaskGraph.cpp:541]
0x00007ff604ee985b CarlaUE4-Win64-Shipping.exe!FRunnableThreadWin::Run() [C:\UE_4.26\Engine\Source\Runtime\Core\Private\Windows\WindowsRunnableThread.cpp:86]
0x00007ff604ee4ea1 CarlaUE4-Win64-Shipping.exe!FRunnableThreadWin::GuardedRun() [C:\UE_4.26\Engine\Source\Runtime\Core\Private\Windows\WindowsRunnableThread.cpp:35]
0x00007ffbe6bc7614 KERNEL32.DLL!UnknownFunction []
0x00007ffbe79c26a1 ntdll.dll!UnknownFunction []Crash in runnable thread TaskGraphThreadNP 0
Does anyone know what could be the cause?
In case anyone runs into this. I did not realize I was using the -quality-level=Low flag when these crashes occurred. It seems there is some kind of bug with that flag that makes CarlaUE4 sometimes crash.
Edit: Never mind. I got the same crash as the second message again just now.
I installed the latest visual c++ redistributable and now in combination with not using the -quality-level=Low flag it has not crashed since.
Unfortunately, it has now started crashing again after about 2 weeks of no crashing, with the first message as crash message.
Crashed again, but with the second message.
I installed version 0.9.13 instead, which seems to not have the same issue.