opendilab / LMDrive

[CVPR 2024] LMDrive: Closed-Loop End-to-End Driving with Large Language Models
Apache License 2.0
526 stars 48 forks source link

Use simulator and PythonAPI with different versions, Segmentation fault occurs #36

Closed dingli-dean closed 3 months ago

dingli-dean commented 3 months ago
          In https://github.com/opendilab/LMDrive/issues/14#issuecomment-1898154122, the author change the PythonAPI version into 0.9.12 and it works fine.

However, when I use simulator and PythonAPI with different versions, Segmentation fault occurs. Does anyone face the same situation?

The port is openning for sure.

Python 3.8.18 | packaged by conda-forge | (default, Dec 23 2023, 17:21:28) Type 'copyright', 'credits' or 'license' for more information IPython 8.12.3 -- An enhanced Interactive Python. Type '?' for help. In [1]: import carla In [2]: client = carla.Client('localhost', 6008) In [3]: traffic_manager = client.get_trafficmanager(6009) WARNING: Version mismatch detected: You are trying to connect to a simulator that might be incompatible with this API WARNING: Client API version = 0.9.12 WARNING: Simulator API version = 784d9b9f Segmentation fault

Originally posted by @dingli-dean in https://github.com/opendilab/LMDrive/issues/14#issuecomment-2012423471

deepcs233 commented 3 months ago

Hi! What is the version of your Carla simulator and Python API? Can you try to use another traffic manager port, like 6558. 6008+1 is a default streaming port for Carla (https://carla.readthedocs.io/en/latest/start_quickstart/).

Maybe this section from the official doc can help you: https://carla.readthedocs.io/en/latest/start_quickstart/#install-client-library

dingli-dean commented 3 months ago

After compling a carla-0.9.10.1 .egg for python 3.8, this issue has been solved. Thx

dong-zeyu commented 2 months ago

Hi @dingli-dean, I had a similar problem when running CARLA. Would you like to provide the compiled CARLA egg for Python 3.8. I appreciate your help!