-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: Series rolling .var with window>14, center=True, and any win_type crashes python with no error message #46760
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
Comments
Thanks for the report. I can't seem to replicate this on the main branch on macOS with scipy 1.8.0; maybe it's windows specific? Would you be able to confirm that this happens on another platform? |
@mroeschke I'm hoping someone can test whether this happens on Linux. As a sanity check, I ran the script on another windows machine with the same result. Could very well be a windows problem. |
Actually since I was running this in ipython, after exiting I get
Which is probably related to why your program crashes. |
Is that output suggesting there is a memory issue? Would love to learn how someone debugs something like this. |
Yeah, I think this change resolves the issue
in your example, Would you like to make a PR if you could also verify the change on your end? |
I can make a PR in the morning. Verifying the change is not as easy as just editing |
|
* Change range to prevent segfault See pandas-dev#46760 * Update v1.5.0.rst with doc of fix for issue 46760 * typo * Improve language for fix of weighted variance segfault * Added test for issue pandas-dev#46772 * style - change single quotes to double * Add fixtures `win_types` and `center` to test signature
Pandas version checks
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pandas.
I have confirmed this bug exists on the main branch of pandas.
Reproducible Example
Issue Description
This script, if executed, causes python to simply stop (as if calling
quit()
) ~3/4ths of the time, usually wheni
> 1.Crash seems to occur often when:
Crash does not seem to occur when:
Example of repeatedly running the script:
Expected Behavior
The script should run reliably, or at least deterministically.
An error should appear if there is an issue, but instead python appears to just
quit()
/crash without any message.Installed Versions
INSTALLED VERSIONS
commit : 4bfe3d0
python : 3.10.4.final.0
python-bits : 64
OS : Windows
OS-release : 10
Version : 10.0.19044
machine : AMD64
processor : AMD64 Family 25 Model 33 Stepping 0, AuthenticAMD
byteorder : little
LC_ALL : None
LANG : None
LOCALE : English_United States.1252
pandas : 1.4.2
numpy : 1.22.3
pytz : 2022.1
dateutil : 2.8.2
pip : 22.0.4
setuptools : 58.1.0
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : None
IPython : None
pandas_datareader: None
bs4 : None
bottleneck : None
brotli : None
fastparquet : None
fsspec : None
gcsfs : None
markupsafe : None
matplotlib : None
numba : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pyreadstat : None
pyxlsb : None
s3fs : None
scipy : 1.8.0
snappy : None
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
zstandard : None
The text was updated successfully, but these errors were encountered: