Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CarlaUE4 sometimes crashes randomly with message "Fatal Error!" #6399

Closed
JonasDoubleU opened this issue Apr 12, 2023 · 5 comments
Closed

CarlaUE4 sometimes crashes randomly with message "Fatal Error!" #6399

JonasDoubleU opened this issue Apr 12, 2023 · 5 comments

Comments

@JonasDoubleU
Copy link

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 0x17ea

Crash 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?

@JonasDoubleU
Copy link
Author

JonasDoubleU commented Apr 26, 2023

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.

@JonasDoubleU
Copy link
Author

I installed the latest visual c++ redistributable and now in combination with not using the -quality-level=Low flag it has not crashed since.

@JonasDoubleU
Copy link
Author

JonasDoubleU commented May 10, 2023

Unfortunately, it has now started crashing again after about 2 weeks of no crashing, with the first message as crash message.

@JonasDoubleU JonasDoubleU reopened this May 10, 2023
@JonasDoubleU
Copy link
Author

Crashed again, but with the second message.

@JonasDoubleU
Copy link
Author

I installed version 0.9.13 instead, which seems to not have the same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant