Carla: Index Error: bytes to write exceed buffer size, error on running manual_control.py with Carla 0.9.1

Created on 26 Nov 2018  路  5Comments  路  Source: carla-simulator/carla

Hi, I am facing a strange error when trying to run the manual_control.py script with Carla 0.9.1.
It shows an index error: bytes to write exceed buffer size in the terminal.
The pygame window is still running with server fps:15-20 fps and client fps: 62, though there is a lot of lag in the response observed on the pygame window on pressing any input keys. I am not sure if this error is doe to some problem in my PC or in the script. I am using the manual_control.py script in the PythonAPI folder.
image

question

Most helpful comment

Hi,

we had the same issue a few days ago with 0.9.1. In our case the issue it turned out that during build Carla and the PythonAPI, Python2 and Python3 libraries were mixed. You can test if "python2 manual_control.py" or "python3 manual_control.py" resolves the issue.

Bests

All 5 comments

Hi,

we had the same issue a few days ago with 0.9.1. In our case the issue it turned out that during build Carla and the PythonAPI, Python2 and Python3 libraries were mixed. You can test if "python2 manual_control.py" or "python3 manual_control.py" resolves the issue.

Bests

thanks @fabianoboril .
It turned out I was using the older version of pygame, I updated that and using python 3, after that is working just fine now.

In case anyone else makes the mistake I did: I also had this problem, but it was because I has used apt to install pygame instead of pip. Once I installed with pip, everything was fine.

Indeed, installing pygame with pip instead of apt also solved my issue !

Indeed, installing pygame with pip instead of apt also solved my issue !

Was this page helpful?
0 / 5 - 0 ratings

Related issues

syinari0123 picture syinari0123  路  3Comments

kk2491 picture kk2491  路  3Comments

hc167 picture hc167  路  4Comments

imran514 picture imran514  路  3Comments

mallela picture mallela  路  3Comments