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

0.8.4 (Linux) - Random crashes when using two-wheeled vehicles #513

Closed
nsubiron opened this issue Jun 18, 2018 · 5 comments
Closed

0.8.4 (Linux) - Random crashes when using two-wheeled vehicles #513

nsubiron opened this issue Jun 18, 2018 · 5 comments
Labels
backlog bug c++ Requires changing C++ code help wanted ue4 Requires changing code or blueprints in the Unreal Engine project

Comments

@nsubiron
Copy link
Collaborator

Random crashes occur in PhysX related code concerning the vehicle's wheels. This crash seems to happen only when running the simulation with bikes and motorbikes. The exact place of the crash varies but it's usually due to some NaN value. Possibly some uninitialized memory in the shader that computes the wheel's physics.

Here an extract of the log of one of the crashes: log.txt.


As a workaround, for now you can disable all the two-wheeled vehicles with

CarlaSettings.ini

[CARLA/LevelSettings]
; Disable bikes and motorbikes, if true only four-wheeled
; vehicles will be spawned.
DisableTwoWheeledVehicles=true

Python

settings = CarlaSettings()
settings.set(DisableTwoWheeledVehicles=True)
@nsubiron nsubiron added bug help wanted backlog c++ Requires changing C++ code ue4 Requires changing code or blueprints in the Unreal Engine project labels Jun 18, 2018
@nsubiron nsubiron self-assigned this Jun 18, 2018
@MRAWAY77
Copy link

is it possible to set bikes or motorbike as player vehicle? i tried using the init file, it cannot load...

@nsubiron
Copy link
Collaborator Author

@MRAWAY77 Please, open a separate issue for that

@felipecode
Copy link
Contributor

I observed the same issue also when setting the number of vehicles to 0
but without setting the DisableTwoWheeledVehicles=true.

@nsubiron
Copy link
Collaborator Author

In 0.9.1, if you are using the spawn_npc.py script you can use the --safe argument to spawn only vehicles that do not cause accidents. At this point all the bikes are left out, also the Isetta.

./spawn_npc.py --safe

@nsubiron nsubiron removed their assignment Jul 1, 2019
@germanros1987
Copy link
Member

This should now be solved by the Traffic Manager.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog bug c++ Requires changing C++ code help wanted ue4 Requires changing code or blueprints in the Unreal Engine project
Projects
None yet
Development

No branches or pull requests

4 participants