-
-
Notifications
You must be signed in to change notification settings - Fork 100
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
Had this issue since installed a certain update in windows 11, is this a windows issue or is it a comtypes issue? OSError: exception: access violation writing #476
Comments
It is not my program but a third party library that i am using called DXcam which is a screenshot library that wraps around Desktop Duplication Api to take screenshots. The provider of the third party library i believe is no longer maintaining the library and i want to learn how to fix some issues. https://github.com/ra1nty/DXcam/search?q=comtypes All i know it happens when i alt tab out of a game using vulkan or directx11 have not tested other games. I know it is not your job to go read and diagnose someone elses code and i apologise in advance. |
It doesn't matter that it is not your code. What I would like to know is at what point did the error occur when you tried to "take screenshots" using I want "code snippet that reproduces the issue". For example, if you "got an >>> foo = []
>>> foo[0]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
IndexError: list index out of range |
I am 100% sure that the error lies between these codes. as the error only occurs when switching tabs |
OK, I see where the error might be occurring. How were you calling the function or class when this error occurred? |
The function was called by the _grab function but here is also the grab function incase any context is needed. These are located in the dxcam.py file
|
What I am asking is how you are using For example, if you are "using a list and an IndexError was raised", I don't want the source code that implements the >>> spam = ["foo", "bar", "baz"]
>>> spam[4]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
IndexError: list index out of range |
First thanks for letting me know about such library Regarding the issue, it seems error reporting could be improved in |
Well, sorry I read the text log attached to the first post in this thread, and there is already such information handled by comtypes. It looks like we need to dive into DXCam code anyway. It could be some aligning issue (could be in comtypes too) or wrong sequence of Duplication API calls or missing error handling if some errors are expected. |
Is there an update on this issue? |
Comtypes.txt
The text was updated successfully, but these errors were encountered: