Segmentation fault not solved, just moved date

Hi Brian, The segmentation fault that was solved in 2.5, but it just moved to aug 2020.

What command should I not use in the API to not run into this, or did I unearth another bug?

Peter

quantrocket_flightlog_1|2021-03-25 00:48:27 quantrocket.zipline: INFO [signal_industry.DEF]  █████████-  94%  2020-08-31                  582%            1.36            -16%          $5817648
        quantrocket_houston_1|172.18.0.12 - - [25/Mar/2021:00:48:27 +0000] "POST /flightlog/handler HTTP/1.1" 200 5 "-" "-"
        quantrocket_zipline_1|/opt/conda/lib/python3.6/site-packages/zipline/data/resample.py:302: RuntimeWarning: All-NaN slice encountered
        quantrocket_zipline_1|  val = np.nanmax(window)
        quantrocket_zipline_1|/opt/conda/lib/python3.6/site-packages/zipline/data/resample.py:366: RuntimeWarning: All-NaN axis encountered
        quantrocket_zipline_1|  val = np.nanmin(window)
        **quantrocket_zipline_1|!!! uWSGI process 191 got Segmentation Fault !!!**
        quantrocket_zipline_1|*** backtrace of 191 ***
        quantrocket_zipline_1|uWSGI worker 2(uwsgi_backtrace+0x30) [0x46d780]
        quantrocket_zipline_1|uWSGI worker 2(uwsgi_segfault+0x21) [0x46db21]
        quantrocket_zipline_1|/lib/x86_64-linux-gnu/libc.so.6(+0x350e0) [0x7fbbdd5000e0]

The date seems to be 2020-09-03 to 2020-09-05

 quantrocket_flightlog_1|2021-03-25 00:58:26 quantrocket.zipline: INFO [signal_industry.DEF]  ----------   3%  2020-09-03                    2%           12.65              0%            $15081
        quantrocket_houston_1|172.18.0.12 - - [25/Mar/2021:00:58:26 +0000] "POST /flightlog/handler HTTP/1.1" 200 5 "-" "-"
        quantrocket_zipline_1|/opt/conda/lib/python3.6/site-packages/zipline/data/resample.py:302: RuntimeWarning: All-NaN slice encountered
        quantrocket_zipline_1|  val = np.nanmax(window)
      quantrocket_flightlog_1|2021-03-25 00:58:26 quantrocket.zipline: INFO [signal_industry.DEF]  ----------   4%  2020-09-04                    0%            0.19             -1%              $374
        quantrocket_zipline_1|/opt/conda/lib/python3.6/site-packages/zipline/data/resample.py:366: RuntimeWarning: All-NaN axis encountered
        quantrocket_zipline_1|  val = np.nanmin(window)
        quantrocket_houston_1|172.18.0.12 - - [25/Mar/2021:00:58:26 +0000] "POST /flightlog/handler HTTP/1.1" 200 5 "-" "-"
      quantrocket_flightlog_1|2021-03-25 00:58:26 quantrocket.zipline: INFO [signal_industry.DEF]  ----------   4%  2020-09-08                    0%            0.05             -1%              $-17

I’m not able to reproduce an issue on these dates using the same API calls that triggered the earlier segmentation fault. Can you simplify your strategy to isolate the API call that triggers this?

I’ll try to do that, will cost time though as I have to unpeel it