-
Notifications
You must be signed in to change notification settings - Fork 9.5k
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
camerad: BPS config failure #34663
Comments
@deanlee want to check this out? This is on latest master after all our camerad work. |
It seems the crash occurred after the camera driver realigned and dropped requests:
We should avoid requeuing requests if the camera has been realigned. In this case, the request_id is 19, and request_id_last is 2, creating a significant gap. |
The sequence of events leading to the crash is as follows:
This issue occurs because re-enqueuing requests to handle dropped requests after a camera re-alignment overwrites buf_idx, request_id, and sync objects. This can lead to invalid states, such as waiting on obsolete sync objects. PR #34665 resolves this by properly managing re-enqueued requests. Additionally, we should review the error handling for CAM_SYNC_WAIT timeouts. Calling clear_req_queue() immediately after a timeout is overly aggressive, potentially disrupting valid requests. A more cautious and reliable approach, such as retrying or selectively flushing failed requests, should be explored. |
|
Just happened on master
https://commaai.sentry.io/issues/6012903112/?query=user.id%3A21d8936b8bd24158&referrer=issue-stream&statsPeriod=14d&stream_index=0
camera cloudlogs here: cam_log.txt
The text was updated successfully, but these errors were encountered: