The following piece of code is being called for ~6 hours, about once a minute. After 6 hours the error starts to be thrown. This has happened several times, it is a consistent situation.
I have checked all the previous bug reports with the same issue and I don't see what could be happening.
with mss.mss() as sct:
haystack_img = np.array(sct.grab(image_input))
Full message
File "D:\Dropbox\git\img-testing\common_image_recognition.py", line 103, in extract_image_from_input
haystack_img = np.array(sct.grab(image_input))
File "C:\Python39\lib\site-packages\mss\base.py", line 88, in grab
return self._grab_impl(monitor)
File "C:\Python39\lib\site-packages\mss\windows.py", line 285, in _grab_impl
raise ScreenShotError("gdi32.GetDIBits() failed.")
General information:
Description of the warning/error
The following piece of code is being called for ~6 hours, about once a minute. After 6 hours the error starts to be thrown. This has happened several times, it is a consistent situation. I have checked all the previous bug reports with the same issue and I don't see what could be happening.
Full message
Other details
Thank you!