With current drivers, we always get NVAPI_INVALID_HANDLE from NvAPI_I2CRead or NvAPI_GetAssociatedDisplayOutputId after a certain amount of successful calls. We can successfully read I2C data for a while (for about 4h) but then suddenly we get NVAPI_INVALID_HANDLE and there’s no way to recover except for restarting the reading application.
We reproduced the behavior on different single-GPU systems with RTX 2080 Ti, A5000, RTX 4070 on Windows 10 LTSC (1809) and Windows 10 Enterprise LTSC 21H2.
It worked well up to driver version 471.68 (we didnt’ test versions in between).
We can also provide a minimal code example that reproduces the behavior. Any help would be appreciated.