carla-simulator / carla

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

CarlaUE4-Linux-Shipping.debug in 0.9.6 #2113

Closed qhaas closed 4 years ago

qhaas commented 4 years ago

What is the intent of the debug binary in the title, which is located alongside the standard (release) binary 'CarlaUE4-Linux-Shipping' in the 'CarlaUE4/Binaries/Linux' directory of the pre-built CARLA 0.9.6 Linux package? I can't find any reference to it in the documentation.

I was hoping it would be a more verbose version of the regular binary (CarlaUE4-Linux-Shipping) with debug symbols. My hope of it being like the 0.9.5 release (i.e. non-shipping mode with additional command-line options and debugging output) is not high given it has 'Shipping' in the name, per the release notes:

The simulator is now compiled in "Shipping" mode, faster but it accepts less command-line arguments

But, I can't get it to run inside the official Docker image (or on my host system), yet the standard binary works fine:

docker run --init -it --name carla-0-9-6 --gpus all carlasim/carla:0.9.6 /bin/bash

# Created a CarlaUE4-debug.sh from CarlaUE4.sh targeting the debug file
diff CarlaUE4.sh CarlaUE4-debug.sh    
4,5c4,5
< chmod +x "$UE4_PROJECT_ROOT/CarlaUE4/Binaries/Linux/CarlaUE4-Linux-Shipping"
< "$UE4_PROJECT_ROOT/CarlaUE4/Binaries/Linux/CarlaUE4-Linux-Shipping" CarlaUE4 $@ 
---
> chmod +x "$UE4_PROJECT_ROOT/CarlaUE4/Binaries/Linux/CarlaUE4-Linux-Shipping.debug"
> "$UE4_PROJECT_ROOT/CarlaUE4/Binaries/Linux/CarlaUE4-Linux-Shipping.debug" CarlaUE4 $@

/bin/bash CarlaUE4-debug.sh 
CarlaUE4-debug.sh: line 5: /home/carla/CarlaUE4/Binaries/Linux/CarlaUE4-Linux-Shipping.debug: cannot execute binary file: Exec format error
/home/carla/CarlaUE4/Binaries/Linux/CarlaUE4-Linux-Shipping.debug
bash: /home/carla/CarlaUE4/Binaries/Linux/CarlaUE4-Linux-Shipping.debug: cannot execute binary file: Exec format error

It does appear to be an executable, like its sibling:

file CarlaUE4/Binaries/Linux/CarlaUE4-Linux-Shipping.debug
CarlaUE4/Binaries/Linux/CarlaUE4-Linux-Shipping.debug: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 3.4.1, not stripped

Thanks

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

MubeenAfzal343 commented 1 year ago

CarlaUE4-debug.sh: line 5: /home/carla/CarlaUE4/Binaries/Linux/CarlaUE4-Linux-Shipping: Exec format error

I'm facing the same error. Can someone help me to solve it?