Corrupt autosave files don't get reset
See original GitHub issue10:28 $ spyder --debug-output terminal --debug-info verbose
Attribute Qt::AA_UseSoftwareOpenGL must be set before QCoreApplication is created.
2020-01-21 10:28:19,996 [INFO] [spyder.app.mainwindow] -> Start of MainWindow constructor
2020-01-21 10:28:20,019 [INFO] [spyder.app.mainwindow] -> End of MainWindow constructor
2020-01-21 10:28:20,019 [INFO] [spyder.app.mainwindow] -> *** Start of MainWindow setup ***
2020-01-21 10:28:20,019 [INFO] [spyder.app.mainwindow] -> Updating PYTHONPATH
2020-01-21 10:28:20,019 [INFO] [spyder.app.mainwindow] -> Applying theme configuration...
2020-01-21 10:28:20,019 [INFO] [qdarkstyle] -> Found QT_API='pyqt5'
2020-01-21 10:28:20,020 [INFO] [qdarkstyle] -> Using Qt wrapper = PyQt5
2020-01-21 10:28:20,027 [INFO] [spyder.app.mainwindow] -> Creating core actions...
2020-01-21 10:28:20,028 [INFO] [spyder.app.mainwindow] -> Creating toolbars...
2020-01-21 10:28:20,034 [INFO] [spyder.app.mainwindow] -> Creating Tools menu...
2020-01-21 10:28:20,037 [INFO] [spyder.app.mainwindow] -> Creating guidata and sift entries...
2020-01-21 10:28:20,038 [INFO] [spyder.app.mainwindow] -> Loading switcher...
2020-01-21 10:28:20,041 [INFO] [spyder.app.mainwindow] -> Loading internal console...
2020-01-21 10:28:20,080 [INFO] [keyring.backend] -> Loading KWallet
2020-01-21 10:28:20,080 [INFO] [keyring.backend] -> Loading SecretService
2020-01-21 10:28:20,087 [INFO] [keyring.backend] -> Loading Windows
2020-01-21 10:28:20,087 [INFO] [keyring.backend] -> Loading chainer
2020-01-21 10:28:20,087 [INFO] [keyring.backend] -> Loading macOS
2020-01-21 10:28:20,106 [INFO] [spyder.plugins.console.plugin] -> Initializing...
2020-01-21 10:28:20,148 [INFO] [spyder.app.mainwindow] -> Starting code completion manager...
2020-01-21 10:28:20,223 [DEBUG] [spyder.plugins.completion.plugin] -> Completion plugin: Registering lsp
2020-01-21 10:28:20,249 [DEBUG] [spyder.plugins.completion.plugin] -> Completion plugin: Registering kite
2020-01-21 10:28:20,250 [DEBUG] [spyder.plugins.completion.plugin] -> Completion plugin: Registering fallback
2020-01-21 10:28:20,250 [INFO] [spyder.app.mainwindow] -> Loading working directory...
2020-01-21 10:28:20,250 [DEBUG] [spyder.plugins.completion.fallback.actor] -> Fallback plugin starting...
2020-01-21 10:28:20,277 [INFO] [spyder.app.mainwindow] -> Loading help...
2020-01-21 10:28:20,284 [DEBUG] [spyder.plugins.editor.panels.manager] -> adding panel EdgeLine at floating
2020-01-21 10:28:20,284 [DEBUG] [spyder.plugins.editor.panels.manager] -> Refresh panels
2020-01-21 10:28:20,285 [DEBUG] [spyder.plugins.editor.panels.manager] -> panel EdgeLine installed
2020-01-21 10:28:20,285 [DEBUG] [spyder.plugins.editor.panels.manager] -> adding panel IndentationGuide at floating
2020-01-21 10:28:20,285 [DEBUG] [spyder.plugins.editor.panels.manager] -> Refresh panels
2020-01-21 10:28:20,285 [DEBUG] [spyder.plugins.editor.panels.manager] -> panel IndentationGuide installed
2020-01-21 10:28:20,285 [DEBUG] [spyder.plugins.editor.panels.manager] -> adding panel FoldingPanel at left
2020-01-21 10:28:20,285 [DEBUG] [spyder.plugins.editor.panels.manager] -> Refresh panels
2020-01-21 10:28:20,286 [DEBUG] [spyder.plugins.editor.panels.manager] -> panel FoldingPanel installed
2020-01-21 10:28:20,286 [DEBUG] [spyder.plugins.editor.panels.manager] -> adding panel DebuggerPanel at left
2020-01-21 10:28:20,286 [DEBUG] [spyder.plugins.editor.panels.manager] -> Refresh panels
2020-01-21 10:28:20,287 [DEBUG] [spyder.plugins.editor.panels.manager] -> panel DebuggerPanel installed
2020-01-21 10:28:20,287 [DEBUG] [spyder.plugins.editor.panels.manager] -> adding panel LineNumberArea at left
2020-01-21 10:28:20,287 [DEBUG] [spyder.plugins.editor.panels.manager] -> Refresh panels
2020-01-21 10:28:20,287 [DEBUG] [spyder.plugins.editor.panels.manager] -> panel LineNumberArea installed
2020-01-21 10:28:20,288 [DEBUG] [spyder.plugins.editor.panels.manager] -> adding panel ClassFunctionDropdown at top
2020-01-21 10:28:20,288 [DEBUG] [spyder.plugins.editor.panels.manager] -> Refresh panels
2020-01-21 10:28:20,288 [DEBUG] [spyder.plugins.editor.panels.manager] -> panel ClassFunctionDropdown installed
2020-01-21 10:28:20,288 [DEBUG] [spyder.plugins.editor.panels.manager] -> adding panel ScrollFlagArea at right
2020-01-21 10:28:20,288 [DEBUG] [spyder.plugins.editor.panels.manager] -> Refresh panels
2020-01-21 10:28:20,289 [DEBUG] [spyder.plugins.editor.panels.manager] -> panel ScrollFlagArea installed
2020-01-21 10:28:20,289 [DEBUG] [spyder.api.panel] -> ScrollFlagArea visibility changed
2020-01-21 10:28:20,289 [DEBUG] [spyder.plugins.editor.panels.manager] -> Refresh panels
2020-01-21 10:28:20,289 [DEBUG] [spyder.plugins.editor.panels.manager] -> Refresh panels
2020-01-21 10:28:20,293 [DEBUG] [spyder.plugins.editor.extensions.manager] -> adding extension CloseQuotesExtension
2020-01-21 10:28:20,293 [DEBUG] [spyder.plugins.editor.extensions.manager] -> adding extension SnippetsExtension
2020-01-21 10:28:20,294 [DEBUG] [spyder.plugins.editor.extensions.manager] -> adding extension CloseBracketsExtension
2020-01-21 10:28:20,295 [DEBUG] [spyder.api.panel] -> DebuggerPanel visibility changed
2020-01-21 10:28:20,295 [DEBUG] [spyder.plugins.editor.panels.manager] -> Refresh panels
2020-01-21 10:28:20,295 [DEBUG] [spyder.api.panel] -> FoldingPanel visibility changed
2020-01-21 10:28:20,295 [DEBUG] [spyder.plugins.editor.panels.manager] -> Refresh panels
2020-01-21 10:28:20,295 [DEBUG] [spyder.api.panel] -> ScrollFlagArea visibility changed
2020-01-21 10:28:20,295 [DEBUG] [spyder.plugins.editor.panels.manager] -> Refresh panels
2020-01-21 10:28:20,295 [DEBUG] [spyder.api.panel] -> EdgeLine visibility changed
2020-01-21 10:28:20,295 [DEBUG] [spyder.plugins.editor.panels.manager] -> Refresh panels
2020-01-21 10:28:20,295 [DEBUG] [spyder.api.panel] -> IndentationGuide visibility changed
2020-01-21 10:28:20,295 [DEBUG] [spyder.plugins.editor.panels.manager] -> Refresh panels
2020-01-21 10:28:20,296 [DEBUG] [spyder.api.panel] -> LineNumberArea visibility changed
2020-01-21 10:28:20,296 [DEBUG] [spyder.plugins.editor.panels.manager] -> Refresh panels
2020-01-21 10:28:20,299 [DEBUG] [spyder.api.panel] -> ClassFunctionDropdown visibility changed
2020-01-21 10:28:20,299 [DEBUG] [spyder.plugins.editor.panels.manager] -> Refresh panels
2020-01-21 10:28:20,349 [DEBUG] [spyder.plugins.editor.panels.manager] -> Refresh panels
2020-01-21 10:28:20,393 [INFO] [spyder.app.mainwindow] -> Loading outline explorer...
2020-01-21 10:28:20,418 [INFO] [spyder.app.mainwindow] -> Loading editor...
2020-01-21 10:28:20,450 [DEBUG] [spyder.plugins.editor.utils.autosave] -> Reading pid file: /home/mark/.config/spyder-py3/autosave/pid6268.txt
The textfile is
Traceback (most recent call last):
File "/home/mark/miniconda3/envs/mcam_dev/lib/python3.7/site-packages/spyder/app/mainwindow.py", line 3718, in main
mainwindow = run_spyder(app, options, args)
File "/home/mark/miniconda3/envs/mcam_dev/lib/python3.7/site-packages/spyder/app/mainwindow.py", line 3559, in run_spyder
main.setup()
File "/home/mark/miniconda3/envs/mcam_dev/lib/python3.7/site-packages/spyder/app/mainwindow.py", line 955, in setup
self.editor = Editor(self)
File "/home/mark/miniconda3/envs/mcam_dev/lib/python3.7/site-packages/spyder/plugins/editor/plugin.py", line 178, in __init__
self.autosave.try_recover_from_autosave()
File "/home/mark/miniconda3/envs/mcam_dev/lib/python3.7/site-packages/spyder/plugins/editor/utils/autosave.py", line 178, in try_recover_from_autosave
files_to_recover, pidfiles = self.get_files_to_recover()
File "/home/mark/miniconda3/envs/mcam_dev/lib/python3.7/site-packages/spyder/plugins/editor/utils/autosave.py", line 151, in get_files_to_recover
txt_as_dict = ast.literal_eval(txt)
File "/home/mark/miniconda3/envs/mcam_dev/lib/python3.7/ast.py", line 46, in literal_eval
node_or_string = parse(node_or_string, mode='eval')
File "/home/mark/miniconda3/envs/mcam_dev/lib/python3.7/ast.py", line 35, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 0
Using
spyder --reset
didn’t work
After manually removing
/home/mark/.config/spyder-py3/autosave/pid6268.txt
Things started to work again.
Versions
$ conda install spyder python=3.7 --yes
Collecting package metadata (current_repodata.json): done
Solving environment: done
## Package Plan ##
environment location: /home/mark/miniconda3/envs/mcam_dev
added / updated specs:
- python=3.7
- spyder
The following packages will be downloaded:
package | build
---------------------------|-----------------
_libgcc_mutex-0.1 | conda_forge 3 KB conda-forge
_openmp_mutex-4.5 | 0_gnu 435 KB conda-forge
alabaster-0.7.12 | py_0 15 KB conda-forge
argh-0.26.2 | py37_1001 33 KB conda-forge
astroid-2.3.3 | py37_1 279 KB conda-forge
atomicwrites-1.3.0 | py_0 9 KB conda-forge
autopep8-1.5 | py_0 38 KB conda-forge
babel-2.8.0 | py_0 6.0 MB conda-forge
backcall-0.1.0 | py_0 13 KB conda-forge
bleach-3.1.0 | py_0 110 KB conda-forge
cloudpickle-1.2.2 | py_1 23 KB conda-forge
dbus-1.13.6 | he372182_0 602 KB conda-forge
defusedxml-0.6.0 | py_0 22 KB conda-forge
diff-match-patch-20181111 | py_0 37 KB conda-forge
docutils-0.16 | py37_0 739 KB conda-forge
entrypoints-0.3 | py37_1000 11 KB conda-forge
expat-2.2.5 | he1b5a44_1004 191 KB conda-forge
flake8-3.7.9 | py37_0 128 KB conda-forge
fontconfig-2.13.1 | h86ecdb6_1001 340 KB conda-forge
freetype-2.10.0 | he983fc9_1 884 KB conda-forge
future-0.18.2 | py37_0 711 KB conda-forge
gettext-0.19.8.1 | hc5be6a0_1002 3.6 MB conda-forge
glib-2.58.3 |py37h6f030ca_1002 3.3 MB conda-forge
gst-plugins-base-1.14.5 | h0935bb2_0 6.8 MB conda-forge
gstreamer-1.14.5 | h36ae1b5_0 4.5 MB conda-forge
icu-64.2 | he1b5a44_1 12.6 MB conda-forge
imagesize-1.2.0 | py_0 8 KB conda-forge
intervaltree-3.0.2 | py_0 23 KB conda-forge
ipykernel-5.1.3 | py37h5ca1d4c_0 160 KB conda-forge
ipython-7.11.1 | py37h5ca1d4c_0 1.1 MB conda-forge
isort-4.3.21 | py37_0 64 KB conda-forge
jedi-0.14.1 | py37_0 698 KB conda-forge
jeepney-0.4.2 | py_0 19 KB conda-forge
jinja2-2.10.3 | py_0 91 KB conda-forge
jpeg-9c | h14c3975_1001 251 KB conda-forge
jupyter_client-5.3.4 | py37_1 131 KB conda-forge
keyring-21.1.0 | py37_0 46 KB conda-forge
lazy-object-proxy-1.4.3 | py37h516909a_0 27 KB conda-forge
libclang-9.0.1 |default_hde54327_0 22.3 MB conda-forge
libiconv-1.15 | h516909a_1005 2.0 MB conda-forge
libllvm9-9.0.1 | hc9558a2_0 25.1 MB conda-forge
libpng-1.6.37 | hed695b0_0 343 KB conda-forge
libsodium-1.0.17 | h516909a_0 330 KB conda-forge
libspatialindex-1.9.3 | he1b5a44_1 3.1 MB conda-forge
libuuid-2.32.1 | h14c3975_1000 26 KB conda-forge
libxcb-1.13 | h14c3975_1002 396 KB conda-forge
libxkbcommon-0.9.1 | hebb1f50_0 472 KB conda-forge
libxml2-2.9.10 | hee79883_0 1.3 MB conda-forge
markupsafe-1.1.1 | py37h516909a_0 26 KB conda-forge
mccabe-0.6.1 | py_1 8 KB conda-forge
mistune-0.8.4 |py37h516909a_1000 53 KB conda-forge
nbconvert-5.6.1 | py37_0 487 KB conda-forge
nspr-4.24 | he1b5a44_0 1.6 MB conda-forge
nss-3.47 | he751ad9_0 1.9 MB conda-forge
numpydoc-0.9.2 | py_0 29 KB conda-forge
packaging-20.0 | py_0 31 KB conda-forge
pandoc-2.9.1.1 | 0 16.6 MB conda-forge
pandocfilters-1.4.2 | py_1 9 KB conda-forge
parso-0.5.2 | py_0 66 KB conda-forge
pathtools-0.1.2 | py_1 8 KB conda-forge
pcre-8.43 | he1b5a44_0 257 KB conda-forge
pexpect-4.7.0 | py37_0 78 KB conda-forge
pickleshare-0.7.5 | py37_1000 12 KB conda-forge
pluggy-0.12.0 | py_0 18 KB conda-forge
prompt_toolkit-3.0.2 | py_0 226 KB conda-forge
psutil-5.6.7 | py37h516909a_0 323 KB conda-forge
pthread-stubs-0.4 | h14c3975_1001 5 KB conda-forge
ptyprocess-0.6.0 | py_1001 15 KB conda-forge
pycodestyle-2.5.0 | py_0 36 KB conda-forge
pydocstyle-5.0.2 | py_0 32 KB conda-forge
pyflakes-2.1.1 | py_0 49 KB conda-forge
pygments-2.5.2 | py_0 669 KB conda-forge
pylint-2.4.4 | py37_0 424 KB conda-forge
pyparsing-2.4.6 | py_0 59 KB conda-forge
pyqt-5.12.3 | py37hcca6a23_1 6.3 MB conda-forge
python-jsonrpc-server-0.3.4| py_0 11 KB conda-forge
python-language-server-0.31.5| py37_0 66 KB conda-forge
pyxdg-0.26 | py_0 42 KB conda-forge
pyzmq-18.1.1 | py37h1768529_0 517 KB conda-forge
qdarkstyle-2.7 | py_0 725 KB conda-forge
qt-5.12.5 | hd8c4c69_1 99.2 MB conda-forge
qtawesome-0.6.1 | py_0 766 KB conda-forge
qtconsole-4.6.0 | py_0 90 KB conda-forge
qtpy-1.9.0 | py_0 34 KB conda-forge
rope-0.16.0 | py_0 117 KB conda-forge
rtree-0.9.3 | py37h7b0cdae_0 42 KB conda-forge
secretstorage-3.1.2 | py37_0 23 KB conda-forge
setuptools-45.1.0 | py37_0 648 KB conda-forge
snowballstemmer-2.0.0 | py_0 55 KB conda-forge
sortedcontainers-2.1.0 | py_0 25 KB conda-forge
sphinx-2.3.1 | py_0 1.4 MB conda-forge
sphinxcontrib-applehelp-1.0.1| py_0 28 KB conda-forge
sphinxcontrib-devhelp-1.0.1| py_0 22 KB conda-forge
sphinxcontrib-htmlhelp-1.0.2| py_0 27 KB conda-forge
sphinxcontrib-jsmath-1.0.1 | py_0 7 KB conda-forge
sphinxcontrib-qthelp-1.0.2 | py_0 25 KB conda-forge
sphinxcontrib-serializinghtml-1.1.3| py_0 24 KB conda-forge
spyder-4.0.1 | py37_0 7.6 MB conda-forge
spyder-kernels-1.8.1 | py37_0 86 KB conda-forge
testpath-0.4.4 | py_0 85 KB conda-forge
tornado-6.0.3 | py37h516909a_0 637 KB conda-forge
typed-ast-1.4.1 | py37h516909a_0 205 KB conda-forge
ujson-1.35 |py37h516909a_1001 27 KB conda-forge
watchdog-0.9.0 | py37_1 90 KB conda-forge
wcwidth-0.1.8 | py_0 19 KB conda-forge
webencodings-0.5.1 | py_1 12 KB conda-forge
wrapt-1.11.2 | py37h516909a_0 46 KB conda-forge
wurlitzer-2.0.0 | py37_0 12 KB conda-forge
xorg-libxau-1.0.9 | h14c3975_0 13 KB conda-forge
xorg-libxdmcp-1.1.3 | h516909a_0 18 KB conda-forge
yapf-0.28.0 | py_0 116 KB conda-forge
zeromq-4.3.2 | he1b5a44_2 668 KB conda-forge
zipp-2.0.0 | py_0 7 KB conda-forge
------------------------------------------------------------
Total: 242.0 MB
Issue Analytics
- State:
- Created 4 years ago
- Comments:20 (11 by maintainers)
Top Results From Across the Web
Can't reset PC because of corrupted files. - Microsoft Community
I tried to reset Windows 10 without losing my files, but I get this message every time: "There was a problem resetting this...
Read more >How to Restore or Repair Corrupted AutoCAD Files - EaseUS
The autosaved are usually saved under this path: C:\Documents and Settings\USERNAME\Local Settings\Temp. Find autosave file location of lost CAD ...
Read more >4 Tips to Recover Unsaved/Deleted Notepad (TXT) Files 2022
Does Windows 10 Notepad AutoSave? 3. Where are Notepad files saved Windows 10/11? 4. How do I recover a corrupted Notepad files? 5....
Read more >4 Ways To Recover Notepad File On Win 10 Quickly - MiniTool
? Does Notepad have AutoSave? Unfortunately, no. Unlike the Word program, the Notepad app doesn't include an AutoSave feature. So, I ...
Read more >[Guide] How to Recover a Corrupt SFM Session
Question: What if I don't have an .autosave file? Most likely your SFM's autosave function has been disabled. You will need to re-enable...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I am planning to make at least a start on it on Thursday.
@jitseniesen could you take a look at this one 😃 ?