OSError: exception: access violation writing 0x00000014
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 1.5k
- Forks
- 560
- Avg merge
- 1h 41m
- Merged PRs (30d)
- 3
Description
I get this exception consistently, but it doesn't seem to affect that actual functionality.
Platform: CY8CKIT_062_WIFI_BT
pyOCD version: 0.23.0a2.dev28
python version: 3.7 32 bit
OS: Windows 10
Per the Readme, I've tried downloading and placing libusb v1.0.21 files (.dll, .lib, & .pdb) from M32/dll folder within libusb-1.0.21.7z) alongside python.exe, but this doesn't seem to help.
C:\tools>pyocd commander
Exception ignored in: <function _AutoFinalizedObjectBase.__del__ at 0x046CDED0>
Traceback (most recent call last):
File "C:\Users\maclob01\AppData\Roaming\Python\Python37\site-packages\usb\_objfinalizer.py", line 84, in __del__
self.finalize()
File "C:\Users\maclob01\AppData\Roaming\Python\Python37\site-packages\usb\_objfinalizer.py", line 144, in finalize
self._finalizer()
File "c:\program files (x86)\python37-32\lib\weakref.py", line 572, in __call__
return info.func(*info.args, **(info.kwargs or {}))
File "C:\Users\maclob01\AppData\Roaming\Python\Python37\site-packages\usb\_objfinalizer.py", line 104, in _do_finalize_object_ref
obj._do_finalize_object()
File "C:\Users\maclob01\AppData\Roaming\Python\Python37\site-packages\usb\_objfinalizer.py", line 71, in _do_finalize_object
self._finalize_object()
File "C:\Users\maclob01\AppData\Roaming\Python\Python37\site-packages\usb\backend\libusb1.py", line 604, in _finalize_object
_lib.libusb_unref_device(self.devid)
OSError: exception: access violation writing 0x00000014
Connected to CY8C6xx7 [Sleeping]: 19001301f3091a0401f3091a00000000000000002e127069
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce pyocd commander on the CY8CKIT_062_WIFI_BT with Python 3.7 32-bit on Windows 10, then inspect usb/backend/libusb1.py, especially _finalize_object, and the reported libusb files. Done means the command no longer emits the access-violation traceback while retaining the reported device connection and functionality.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- devtools, embedded-iot
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100