Hello,
After streaming today for around 4 hours on Twitch, I had a NVENC error "[obs-nvenc] get_encoded_packet: nv.nvEncLockBitstream(s, &lock) failed: 4 (NV_ENC_ERR_INVALID_DEVICE): Device passed to the API is invalid." which obviously caused the stream to stop. From that state, stream cannot be started again despite obivously clicking on the Start Stream button, proceeded to kill obs in task manager, started obs again (both before and after crash in admin mode) and continued without the issue replicating for an hour.
The error appears on random timestamp throughout the stream from what I can see in the log.
18:17:17.604: [obs-nvenc] get_encoded_packet: nv.nvEncLockBitstream(s, &lock) failed: 4 (NV_ENC_ERR_INVALID_DEVICE): Device passed to the API is invalid.
The log
The Log Analyzer does not see it as a critical issue so it leaves me quite puzzled on how to advance. As you can see from the log itself, I'm on 9800x3d paired with rtx 5090, neither CPU or GPU usage is above 60%, temps are completly fine, I doubt hardware issue here. Is it OBS issue or NVIDIA drivers issue?
Also something that I have picked up from the log:
18:06:28.616: Source 3. Game audio is lagging (over by 527415.62 ms) at max audio buffering. Restarting source audio.
Doubt it's the cause of the crash, however whilst watching the VOD of the stream, there was no audio desync of any sort, no audio crackling, none of such things, can this be related?
After streaming today for around 4 hours on Twitch, I had a NVENC error "[obs-nvenc] get_encoded_packet: nv.nvEncLockBitstream(s, &lock) failed: 4 (NV_ENC_ERR_INVALID_DEVICE): Device passed to the API is invalid." which obviously caused the stream to stop. From that state, stream cannot be started again despite obivously clicking on the Start Stream button, proceeded to kill obs in task manager, started obs again (both before and after crash in admin mode) and continued without the issue replicating for an hour.
The error appears on random timestamp throughout the stream from what I can see in the log.
18:17:17.604: [obs-nvenc] get_encoded_packet: nv.nvEncLockBitstream(s, &lock) failed: 4 (NV_ENC_ERR_INVALID_DEVICE): Device passed to the API is invalid.
The log
The Log Analyzer does not see it as a critical issue so it leaves me quite puzzled on how to advance. As you can see from the log itself, I'm on 9800x3d paired with rtx 5090, neither CPU or GPU usage is above 60%, temps are completly fine, I doubt hardware issue here. Is it OBS issue or NVIDIA drivers issue?
Also something that I have picked up from the log:
18:06:28.616: Source 3. Game audio is lagging (over by 527415.62 ms) at max audio buffering. Restarting source audio.
Doubt it's the cause of the crash, however whilst watching the VOD of the stream, there was no audio desync of any sort, no audio crackling, none of such things, can this be related?