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

lack of thread safety in MetaDrive simulation #34220

Open
deanlee opened this issue Dec 12, 2024 · 0 comments
Open

lack of thread safety in MetaDrive simulation #34220

deanlee opened this issue Dec 12, 2024 · 0 comments
Labels

Comments

@deanlee
Copy link
Contributor

deanlee commented Dec 12, 2024

Describe the bug

The simulation appears to lack proper synchronization when accessing shared state across multiple threads. Specifically, resources like self.simulator_state and self.world are accessed by multiple threads (simulated_car_thread, simulated_camera_thread, and the main thread) without explicit synchronization mechanisms. This can lead to race conditions, causing unpredictable behavior or crashes.

Provide a route where the issue occurs

none

openpilot version

0.9.7

Additional info

No response

@deanlee deanlee added the bug label Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant