jonthornton / MTAPI

JSON proxy server for the MTA's realtime New York City subway feed
283 stars 83 forks source link

Segmentation fault python app.py #40

Closed alejandrorascovan closed 1 year ago

alejandrorascovan commented 1 year ago

I followed the steps to start the server but it fails immediately with a segmentation fault error:

segmentation fault python app.py

I enabled the faulthandler to find out where it exactly happens and found the following:

`(.venv) ➜ MTAPI git:(master) ✗ python app.py Test Fatal Python error: Segmentation fault

Current thread 0x00007ff84e659340 (most recent call first): File "/Users/arascovan/repos/MTAPI/mtaproto/gtfs_realtime_pb2.py", line 1179 in File "", line 228 in _call_with_frames_removed File "", line 850 in exec_module File "", line 680 in _load_unlocked File "", line 986 in _find_and_load_unlocked File "", line 1007 in _find_and_load File "/Users/arascovan/repos/MTAPI/mtaproto/nyct_subway_pb2.py", line 16 in File "", line 228 in _call_with_frames_removed File "", line 850 in exec_module File "", line 680 in _load_unlocked File "", line 986 in _find_and_load_unlocked File "", line 1007 in _find_and_load File "", line 228 in _call_with_frames_removed File "", line 1058 in _handle_fromlist File "/Users/arascovan/repos/MTAPI/mtaproto/feedresponse.py", line 1 in File "", line 228 in _call_with_frames_removed File "", line 850 in exec_module File "", line 680 in _load_unlocked File "", line 986 in _find_and_load_unlocked File "", line 1007 in _find_and_load File "/Users/arascovan/repos/MTAPI/mtapi/mtapi.py", line 9 in File "", line 228 in _call_with_frames_removed File "", line 850 in exec_module File "", line 680 in _load_unlocked File "", line 986 in _find_and_load_unlocked File "", line 1007 in _find_and_load File "/Users/arascovan/repos/MTAPI/app.py", line 16 in [1] 21952 segmentation fault python app.py`

alejandrorascovan commented 1 year ago

I just had to update protobuf dependency to 3.20.3

jonthornton commented 1 year ago

Thanks for the heads up! I've updated protobuf in this repo.