spyder: Segmentation fault when trying to reload files in network filesystems
Description
What steps will reproduce the problem?
seg fault appears roughly 10 times a day during file edition. No idea why. I am using ubuntu 20.04. I am unable to find an issue. Thank you if you can.
Traceback
Fatal Python error: Segmentation fault
Thread 0x00007f8bc67fc700 (most recent call first):
File "/home/benoit/software/anaconda3/envs/spyder/lib/python3.9/socket.py", line 293 in accept
File "/home/benoit/software/anaconda3/envs/spyder/lib/python3.9/site-packages/spyder/app/mainwindow.py", line 1643 in start_open_files_server
File "/home/benoit/software/anaconda3/envs/spyder/lib/python3.9/threading.py", line 917 in run
File "/home/benoit/software/anaconda3/envs/spyder/lib/python3.9/threading.py", line 980 in _bootstrap_inner
File "/home/benoit/software/anaconda3/envs/spyder/lib/python3.9/threading.py", line 937 in _bootstrap
Thread 0x00007f8bc6ffd700 (most recent call first):
File "/home/benoit/software/anaconda3/envs/spyder/lib/python3.9/threading.py", line 316 in wait
File "/home/benoit/software/anaconda3/envs/spyder/lib/python3.9/threading.py", line 581 in wait
File "/home/benoit/software/anaconda3/envs/spyder/lib/python3.9/site-packages/jupyter_client/channels.py", line 130 in _async_run
File "/home/benoit/software/anaconda3/envs/spyder/lib/python3.9/asyncio/events.py", line 80 in _run
File "/home/benoit/software/anaconda3/envs/spyder/lib/python3.9/asyncio/base_events.py", line 1905 in _run_once
File "/home/benoit/software/anaconda3/envs/spyder/lib/python3.9/asyncio/base_events.py", line 601 in run_forever
File "/home/benoit/software/anaconda3/envs/spyder/lib/python3.9/asyncio/base_events.py", line 634 in run_until_complete
File "/home/benoit/software/anaconda3/envs/spyder/lib/python3.9/site-packages/jupyter_client/channels.py", line 149 in run
File "/home/benoit/software/anaconda3/envs/spyder/lib/python3.9/threading.py", line 980 in _bootstrap_inner
File "/home/benoit/software/anaconda3/envs/spyder/lib/python3.9/threading.py", line 937 in _bootstrap
Thread 0x00007f8c10f24700 (most recent call first):
File "/home/benoit/software/anaconda3/envs/spyder/lib/python3.9/selectors.py", line 469 in select
File "/home/benoit/software/anaconda3/envs/spyder/lib/python3.9/asyncio/base_events.py", line 1869 in _run_once
File "/home/benoit/software/anaconda3/envs/spyder/lib/python3.9/asyncio/base_events.py", line 601 in run_forever
File "/home/benoit/software/anaconda3/envs/spyder/lib/python3.9/asyncio/base_events.py", line 634 in run_until_complete
File "/home/benoit/software/anaconda3/envs/spyder/lib/python3.9/site-packages/jupyter_client/threaded.py", line 266 in run
File "/home/benoit/software/anaconda3/envs/spyder/lib/python3.9/threading.py", line 980 in _bootstrap_inner
File "/home/benoit/software/anaconda3/envs/spyder/lib/python3.9/threading.py", line 937 in _bootstrap
Thread 0x00007f8c137fe700 (most recent call first):
File "/home/benoit/software/anaconda3/envs/spyder/lib/python3.9/threading.py", line 312 in wait
File "/home/benoit/software/anaconda3/envs/spyder/lib/python3.9/threading.py", line 581 in wait
File "/home/benoit/software/anaconda3/envs/spyder/lib/python3.9/site-packages/IPython/core/history.py", line 894 in run
File "/home/benoit/software/anaconda3/envs/spyder/lib/python3.9/site-packages/IPython/core/history.py", line 60 in only_when_enabled
File "/home/benoit/software/anaconda3/envs/spyder/lib/python3.9/site-packages/decorator.py", line 232 in fun
File "/home/benoit/software/anaconda3/envs/spyder/lib/python3.9/threading.py", line 980 in _bootstrap_inner
File "/home/benoit/software/anaconda3/envs/spyder/lib/python3.9/threading.py", line 937 in _bootstrap
Thread 0x00007f8be4ff9700 (most recent call first):
File "/home/benoit/software/anaconda3/envs/spyder/lib/python3.9/threading.py", line 316 in wait
File "/home/benoit/software/anaconda3/envs/spyder/lib/python3.9/queue.py", line 180 in get
File "/home/benoit/software/anaconda3/envs/spyder/lib/python3.9/site-packages/watchdog/observers/api.py", line 364 in dispatch_events
File "/home/benoit/software/anaconda3/envs/spyder/lib/python3.9/site-packages/watchdog/observers/api.py", line 199 in run
File "/home/benoit/software/anaconda3/envs/spyder/lib/python3.9/threading.py", line 980 in _bootstrap_inner
File "/home/benoit/software/anaconda3/envs/spyder/lib/python3.9/threading.py", line 937 in _bootstrap
Thread 0x00007f8be57fa700 (most recent call first):
File "/home/benoit/software/anaconda3/envs/spyder/lib/python3.9/threading.py", line 312 in wait
File "/home/benoit/software/anaconda3/envs/spyder/lib/python3.9/site-packages/watchdog/utils/delayed_queue.py", line 54 in get
File "/home/benoit/software/anaconda3/envs/spyder/lib/python3.9/site-packages/watchdog/observers/inotify_buffer.py", line 43 in read_event
File "/home/benoit/software/anaconda3/envs/spyder/lib/python3.9/site-packages/watchdog/observers/inotify.py", line 129 in queue_events
File "/home/benoit/software/anaconda3/envs/spyder/lib/python3.9/site-packages/watchdog/observers/api.py", line 148 in run
File "/home/benoit/software/anaconda3/envs/spyder/lib/python3.9/threading.py", line 980 in _bootstrap_inner
File "/home/benoit/software/anaconda3/envs/spyder/lib/python3.9/threading.py", line 937 in _bootstrap
Thread 0x00007f8be6ffd700 (most recent call first):
File "/home/benoit/software/anaconda3/envs/spyder/lib/python3.9/site-packages/watchdog/observers/inotify_c.py", line 285 in read_events
File "/home/benoit/software/anaconda3/envs/spyder/lib/python3.9/site-packages/watchdog/observers/inotify_buffer.py", line 88 in run
File "/home/benoit/software/anaconda3/envs/spyder/lib/python3.9/threading.py", line 980 in _bootstrap_inner
File "/home/benoit/software/anaconda3/envs/spyder/lib/python3.9/threading.py", line 937 in _bootstrap
Current thread 0x00007f8cb362a4c0 (most recent call first):
File "/home/benoit/software/anaconda3/envs/spyder/lib/python3.9/site-packages/spyder/app/utils.py", line 333 in create_window
File "/home/benoit/software/anaconda3/envs/spyder/lib/python3.9/site-packages/spyder/app/mainwindow.py", line 1819 in main
File "/home/benoit/software/anaconda3/envs/spyder/lib/python3.9/site-packages/spyder/app/start.py", line 256 in main
File "/home/benoit/software/anaconda3/envs/spyder/bin/spyder", line 11 in <module>
Versions
- Spyder version: 5.4.3 (conda)
- Python version: 3.9.18 64-bit
- Qt version: 5.15.2
- PyQt5 version: 5.15.10
- Operating System: Linux 5.15.0-91-generic
Dependencies
# Mandatory:
atomicwrites >=1.2.0 : 1.4.0 (OK)
chardet >=2.0.0 : 4.0.0 (OK)
cloudpickle >=0.5.0 : 2.2.1 (OK)
cookiecutter >=1.6.0 : 2.5.0 (OK)
diff_match_patch >=20181111 : 20200713 (OK)
intervaltree >=3.0.2 : 3.1.0 (OK)
IPython >=7.31.1,<9.0.0,!=8.8.0,!=8.9.0,!=8.10.0 : 8.15.0 (OK)
jedi >=0.17.2,<0.19.0 : 0.18.1 (OK)
jellyfish >=0.7 : 1.0.1 (OK)
jsonschema >=3.2.0 : 4.19.2 (OK)
keyring >=17.0.0 : 23.13.1 (OK)
nbconvert >=4.0 : 7.10.0 (OK)
numpydoc >=0.6.0 : 1.5.0 (OK)
parso >=0.7.0,<0.9.0 : 0.8.3 (OK)
pexpect >=4.4.0 : 4.8.0 (OK)
pickleshare >=0.4 : 0.7.5 (OK)
psutil >=5.3 : 5.9.0 (OK)
pygments >=2.0 : 2.15.1 (OK)
pylint >=2.5.0,<3.0 : 2.16.2 (OK)
pylint_venv >=2.1.1 : 2.3.0 (OK)
pyls_spyder >=0.4.0 : 0.4.0 (OK)
pylsp >=1.7.2,<1.8.0 : 1.7.2 (OK)
pylsp_black >=1.2.0 : 1.2.1 (OK)
qdarkstyle >=3.0.2,<3.2.0 : 3.0.2 (OK)
qstylizer >=0.2.2 : 0.2.2 (OK)
qtawesome >=1.2.1 : 1.2.2 (OK)
qtconsole >=5.4.2,<5.5.0 : 5.4.2 (OK)
qtpy >=2.1.0 : 2.4.1 (OK)
rtree >=0.9.7 : 1.0.1 (OK)
setuptools >=49.6.0 : 68.2.2 (OK)
sphinx >=0.6.6 : 5.0.2 (OK)
spyder_kernels >=2.4.3,<2.5.0 : 2.4.4 (OK)
textdistance >=4.2.0 : 4.2.1 (OK)
three_merge >=0.1.1 : 0.1.1 (OK)
watchdog >=0.10.3 : 2.1.6 (OK)
xdg >=0.26 : 0.27 (OK)
zmq >=22.1.0 : 25.1.2 (OK)
# Optional:
cython >=0.21 : 3.0.6 (OK)
matplotlib >=3.0.0 : 3.8.0 (OK)
numpy >=1.7 : 1.26.3 (OK)
pandas >=1.1.1 : 2.1.4 (OK)
scipy >=0.17.0 : 1.11.4 (OK)
sympy >=0.7.3 : 1.12 (OK)
About this issue
- Original URL
- State: open
- Created 3 years ago
- Comments: 18 (8 by maintainers)
Hello,
Yes, I would be please to do that if it can solve the issue.
With spyder 5.4, spyder was crashing with an error message and I did not have time to save my files. The patch you provided still displayed the error message but prevented the crash. Now, spyder 6.0.6 does not crash. It just tells me that the files have been modified outside spyder, and become corrupted. It is much more annoying.
Thank you, Benoit
Many thanks, this edit solved the issue.
I still sometimes get this error message: _The file xxxxx.py has been modified outside Spyder. Do you want to reload it and lose all your changes? Yes/No But Spyder no longer crashes when I select ‘No’
Thank you again