carla-simulator / carla

Open-source simulator for autonomous driving research.
http://carla.org
MIT License
11.21k stars 3.63k forks source link

Carla UE4 Server crashed when running 10K frames with carla ros_bridge client #6640

Open zczjx opened 1 year ago

zczjx commented 1 year ago

CARLA version: 0.9.14 Platform/OS: Ubuntu 20

Problem you have experienced: Carla UE4 Server crashed when running 10K frames with carla ros_bridge client

Log snippet:

clarencez@zczdl:0.9.14$ bash ./CarlaUE4.sh 4.26.2-0+++UE4+Release-4.26 522 0 Disabling core dumps.

LowLevelFatalError [File:Unknown] [Line: 803] DeviceMemoryManager->GetMemoryTypeFromPropertiesExcluding(MemoryReqs.memoryTypeBits, MemoryPropertyFlags, TypeIndex, &TypeIndex) failed, VkResult=-8 at /home/jenkins/UnrealEngine_4.26/Engine/Source/Runtime/VulkanRHI/Private/VulkanMemory.cpp:3003 with error VK_ERROR_FEATURE_NOT_PRESENT Signal 11 caught. Malloc Size=65538 LargeMemoryPoolOffset=65554 CommonUnixCrashHandler: Signal=11 Malloc Size=131160 LargeMemoryPoolOffset=196744 Malloc Size=131160 LargeMemoryPoolOffset=327928 Engine crash handling finished; re-raising signal 11 for the default handler. Good bye. ./CarlaUE4.sh: line 5: 15861 Segmentation fault (core dumped) "$UE4_PROJECT_ROOT/CarlaUE4/Binaries/Linux/CarlaUE4-Linux-Shipping" CarlaUE4 "$@"

What you expected to happen:

it should keep running, not crash

Steps to reproduce:

  1. launch Carla Server: bash ./CarlaUE4.sh

  2. launch carla ros bridge client: ros2 launch carla_ros_bridge carla_ros_bridge_with_example_ego_vehicle.launch.py

  3. press 'P' button in the pygame screen to let the car run autopilot

  4. wait for about 3-5 mins, the Carla UE4 server will crash

Other information (documentation you consulted, workarounds you tried):

zczjx commented 1 year ago

it seems the Carla UE4 server screen render issue, when I run the cmd to disable the screen render

the issue does not reproduce

./CarlaUE4.sh -RenderOffScreen