-
Notifications
You must be signed in to change notification settings - Fork 72
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
Only mark CUDA_ERROR_ILLEGAL_ADDRESS errors as unrecoverable errors #356
Comments
Addressed by: livepeer/FFmpeg@92c358e |
@cyberj0g Nice! I see that livepeer/FFmpeg@92c358e updates In the future, it would be nice if there was a way to specifically signal the CUDA_ERROR_ILLEGAL_ADDRESS error from within ffmpeg since even with this change any other CUDA error besides |
Diederick working on this - dec' 22 |
An internal CUDA function can return CUDA_ERROR_ILLEGAL_ADDRESS during Nvidia transcoding which means that the process is in an inconsistent state s.t. it needs to be restarted. The original context in which we encountered this issue is documented in livepeer/go-livepeer#1921. In #267 we implemented a panic whenever an unrecoverable error is encountered, in livepeer/go-livepeer#2057 we bumped the LPMS version to include this update, and then in livepeer/go-livepeer#2094 and livepeer/go-livepeer#2352 we moved the unrecoverable error check into go-livepeer.
The problem is that LPMS will mark any unknown error (indicated by AVERROR_UNKNOWN) as unrecoverable. As a result, some CUDA errors that do not warrant a process restart would be marked as unrecoverable and go-livepeer would panic for those errors.
For example, a CUDA OOM error is also treated as an unknown error by the libav code:
We should only mark CUDA_ERROR_ILLEGAL_ADDRESS errors as unrecoverable so that go-livepeer only panics for those errors.
The text was updated successfully, but these errors were encountered: