Hi! I came across this mysterious bug the other week, and I haven't yet found any resolution to it. In my case, I am using a proprietary 3rd party C/C++ DLL for functionality within Python, however I've come across a few others who have run into the same issue with an open source project. My traceback is essentially: return cppapi.DoSomething(hAlpha, pzString1, pzString2); OSError: exception: access violation writing 0x00000000576EE908 However, you can see a very similar scenario taking place here too: https://github.com/asweigart/pyperclip/issues/25 (However, I did not see a bug report filed here on behalf of them) This MIGHT be related to http://bugs.python.org/issue20160 but I am not certain. Thanks!
Access violation is a very general error which means that a bad pointer was dereferenced in c++. This can happen in many ways. You need to provide a way to reproduce this error in order to make this an actual bug report. In your case, it is happening when you call a function in a third party library, which could mean that this library has a bug or that you are passing bad parameters to it. If you cannot provide more information than what is here, this ticket should be closed on the basis that there is not enough information do anything about the issue.
I see nothing to act on in this issue. A common cause of access violations with ctypes is truncated pointer values. There's a lot of sloppy ctypes code from the 32-bit era that assumes a C int can store a pointer.
History
Date
User
Action
Args
2022-04-11 14:58:27
admin
set
github: 70520
2020-10-08 11:34:43
eryksun
set
status: open -> closedtype: behaviornosy: + eryksunmessages: + resolution: not a bugstage: resolved