We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
See below for reproducing code. I studied it a little bit and found it caused by this line You see it converts iter->index to int which is 4 bytes
numpy/numpy/core/src/multiarray/methods.c
Line 1619 in 00a45b4
btw seems this (int) conversion is used at multiple places like
Line 1639 in 00a45b4
To try this you probably need a machine of large memory. Mine is 64GB and I believe 32GB is not enough.
import numpy as np x = np.empty(2**31+1, dtype='object') x.__reduce__()
1.19.1 3.8.2 (default, Jul 16 2020, 14:00:26) [GCC 9.3.0]
The text was updated successfully, but these errors were encountered:
I suspect this is a holdover from when PyList_GET_ITEM accepted int and not Py_ssize_t.
PyList_GET_ITEM
int
Py_ssize_t
This looks like a very easy fix (remove the casts), want to make a PR?
Sorry, something went wrong.
fix pickling array size >2G (numpygh-17045)
6989bc1
BUG: fix pickling of arrays larger than 2GiB (gh-17059)
4d1c5d8
Closes gh-17045
73fb919
Successfully merging a pull request may close this issue.
See below for reproducing code. I studied it a little bit and found it caused by this line You see it converts iter->index to int which is 4 bytes
numpy/numpy/core/src/multiarray/methods.c
Line 1619 in 00a45b4
btw seems this (int) conversion is used at multiple places like
numpy/numpy/core/src/multiarray/methods.c
Line 1639 in 00a45b4
Reproducing code example:
To try this you probably need a machine of large memory. Mine is 64GB and I believe 32GB is not enough.
Numpy/Python version information:
1.19.1 3.8.2 (default, Jul 16 2020, 14:00:26)
[GCC 9.3.0]
The text was updated successfully, but these errors were encountered: