-
Notifications
You must be signed in to change notification settings - Fork 17
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
OSError: exception: access violation reading 0x0000000000000008 #46
Comments
Just to confirm, it sounds like Python 3.10.x works for you, but upgrading to Python 3.12.x was broken? Or am I reading that wrong? |
No. It does not work under either version I have tried. I initially encountered the error in 3.10. |
Our ATS currently runs with Python 3.9, but I manually ran it with 3.12 and couldn't reproduce any issues. I hadn't ever seen that KB before but clearly someone has run into this problem before. I can't find any internal docs about it though. Could you try running something similar to the following to try to narrow down the issue:
This should succeed and isn't doing anything too special or nifpga specific. If that fails, you might try some very basic CDLL calls. Note, I'm about to be OOO for a few weeks. If you need support before then you will probably need to open a ticket on https://www.ni.com/en/support.html |
Hi! Thanks for the quick response. Alas, this gives the same error message. Also code that does not require a bitfile: import ctypes
import nifpga
lib = nifpga.nifpga._NiFpga()
resourceIndex = ctypes.c_uint32()
resourceName = ctypes.c_char_p(b"RIO0")
lib.GetResourceIndex(resourceName,ctypes.byref(resourceIndex)) also gives
I've also updated the fpga dll to 19.0.0.49152, which has the same results. I will contact support. Thank you again. |
Ok, I've got this and the original code working under python 3.10.4, 32-bit. I would really like to get this to work under a non-deprecated version. I've been in contact w/ support. |
@strainmike, I'm now using a new computer with a fresh installation of everything. Still getting the same error message. |
Description
OSError: exception: access violation reading 0x0000000000000008
occurs when trying to load a simple bitfile.System Info
python 3.12.3 (64-bit, via miniconda)
nifpga 22.0.0
Windows 10 (64 bit)
NI USB-7845R
NI R Series Multifunction RIO Software version 18.5
Steps to reproduce
Using a simple example bitfile that runs using LabView, run
Output
Steps taken to resolve
Reinstalled and updated python from earlier version (was 3.10.x). Repaired NI installation. Contacted IT to verify that security software is not blocking access to the DLLs. Tried a different bitfile that runs in LabView. Reviewed this NI KB article.
The text was updated successfully, but these errors were encountered: