Closed georgekaf closed 5 years ago
What if you run Variety as python3 -q -X faulthandler /usr/bin/variety
in a terminal? This will print the last bits of Python code that are executed before Python crashes, which should narrow down which exact calls are causing a crash.
user@station:~$ python3 -q -X faulthandler /usr/bin/variety
** (variety:14016): WARNING **: 20:40:48.689: Unsupported time format
Fatal Python error: Segmentation fault
Thread 0x00007f66daffd700 (most recent call first):
File "/usr/lib/python3.6/threading.py", line 299 in wait
File "/usr/lib/python3.6/threading.py", line 551 in wait
File "/usr/lib/python3.6/threading.py", line 1180 in run
File "/usr/lib/python3.6/threading.py", line 916 in _bootstrap_inner
File "/usr/lib/python3.6/threading.py", line 884 in _bootstrap
Thread 0x00007f66db7fe700 (most recent call first):
File "/usr/lib/python3.6/threading.py", line 295 in wait
File "/usr/lib/python3.6/threading.py", line 551 in wait
File "/usr/lib/python3/dist-packages/variety/QuotesEngine.py", line 178 in regular_change_thread
File "/usr/lib/python3.6/threading.py", line 864 in run
File "/usr/lib/python3.6/threading.py", line 916 in _bootstrap_inner
File "/usr/lib/python3.6/threading.py", line 884 in _bootstrap
Thread 0x00007f66dbfff700 (most recent call first):
File "/usr/lib/python3.6/socket.py", line 745 in getaddrinfo
File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60 in create_connection
File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 141 in _new_conn
File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 166 in connect
File "/usr/lib/python3.6/http/client.py", line 964 in send
File "/usr/lib/python3.6/http/client.py", line 1026 in _send_output
File "/usr/lib/python3.6/http/client.py", line 1234 in endheaders
File "/usr/lib/python3.6/http/client.py", line 1285 in _send_request
File "/usr/lib/python3.6/http/client.py", line 1239 in request
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 357 in _make_request
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601 in urlopen
File "/usr/lib/python3/dist-packages/requests/adapters.py", line 440 in send
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 630 in send
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 520 in request
File "/usr/lib/python3/dist-packages/requests/api.py", line 58 in request
File "/usr/lib/python3/dist-packages/variety/Util.py", line 568 in request
File "/usr/lib/python3/dist-packages/variety/Util.py", line 582 in fetch
File "/usr/share/variety/plugins/quotes/QuotationsPageSource.py", line 93 in get_for_search_url
File "/usr/share/variety/plugins/quotes/QuotationsPageSource.py", line 81 in get_random
File "/usr/lib/python3/dist-packages/variety/QuotesEngine.py", line 268 in get_one_quote
File "/usr/lib/python3/dist-packages/variety/QuotesEngine.py", line 198 in prepare_thread
File "/usr/lib/python3.6/threading.py", line 864 in run
File "/usr/lib/python3.6/threading.py", line 916 in _bootstrap_inner
File "/usr/lib/python3.6/threading.py", line 884 in _bootstrap
Current thread 0x00007f66fc557740 (most recent call first):
File "/usr/lib/python3/dist-packages/variety/Util.py", line 172 in __getitem__
File "/usr/lib/python3/dist-packages/variety/Util.py", line 462 in read_metadata
File "/usr/lib/python3/dist-packages/variety/VarietyWindow.py", line 663 in update_indicator
File "/usr/lib/python3/dist-packages/variety/VarietyWindow.py", line 177 in start
File "/usr/lib/python3/dist-packages/variety/__init__.py", line 198 in main
File "/usr/bin/variety", line 39 in <module>
Segmentation fault (core dumped)
Duplicate of #152 (the crash is in the read_metadata thread)
Unfortunately this is a bug in one of the upstream libraries we use, and not something we can fix directly. Hopefully they can resolve it soon!
Version
variety is already the newest version (0.7.1~git201810231556.944aa6d~ppa772~ubuntu18.04.1).
Error
Logs