You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ANSYS Archive File structure.CDB (About 2.5GB)
Number of Nodes: 0
Number of Elements: 0
Number of Element Types: 0
Number of Node Components: 0
Number of Element Components: 0
fsize returns: -1638917353, which looks like a classic overflow.
Alltough a small file loads just fine:
ANSYS Archive File structure.CDB (About 106MB)
Number of Nodes: 235343
Number of Elements: 261265
Number of Element Types: 3
Number of Node Components: 3
Number of Element Components: 1
fsize returns: 111023960, which is the correct size.
🔍 Before submitting the issue
🐞 Description of the bug
It seems, that the CDB File reader in
ansys.mapdl.reader
can not read large files due to the old 32bit problematic.Disclaimer: I am not that into C++, so take my suggestions with care!
I might have tracked it down to
ansys/mapdl/reader/cython/_reader.pyx
, where alllibc.stdio
imports their functions.https://github.com/pyansys/pymapdl-reader/blob/3c54e59b196688ef99993d5aaf7398ce14abcfcd/ansys/mapdl/reader/cython/_reader.pyx#L162
Uses
ftell
to get the size, which might be incorrect for large files as shown in the following reproduction section.I already tried the usual suggestions by using the following extra compile flags in
setup.py
to get 64bit functionality.Which hasn't changed anything as the shared library is compiled in 64bit mode anyway:
The linked
libc
is a 64bit shared object as well.As always, thank you for the great work and hopefully it can be fixed easily.
📝 Steps to reproduce
After installation and loading of a rather large CDB file (about 3GB).
returns
fsize
returns:-1638917353
, which looks like a classic overflow.Alltough a small file loads just fine:
fsize
returns:111023960
, which is the correct size.💻 Which operating system are you using?
Linux
🐍 Which Python version are you using?
3.8
📦 Installed packages
The text was updated successfully, but these errors were encountered: