Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TimeoutError and crash at startup when restoring files in the editor if OneDrive is not started #20670

Closed
6 of 10 tasks
Gerard568 opened this issue Mar 10, 2023 · 2 comments
Closed
6 of 10 tasks

Comments

@Gerard568
Copy link

Gerard568 commented Mar 10, 2023

Issue Report Checklist

  • Searched the issues page for similar reports
  • Read the relevant sections of the Spyder Troubleshooting Guide and followed its advice
  • Reproduced the issue after updating with conda update spyder (or pip, if not using Anaconda)
  • Could not reproduce inside jupyter qtconsole (if console-related)
  • Tried basic troubleshooting (if a bug/error)
    • Restarted Spyder
    • Reset preferences with spyder --reset
    • Reinstalled the latest version of Anaconda
    • Tried the other applicable steps from the Troubleshooting Guide
  • Completed the Problem Description, Steps to Reproduce and Version sections below

Problem Description

Random problem when launching spyder, I just confirmed it, I was using it normally, then I closed it and when trying to reopen it problem aroused. No modifications to libraries nor anything was done between this two events.

I've searched extensively here and everywhere and found nothing applicable to my situation, I am using a MacBook Pro M1 Max, I'm not using anaconda, since I'm using tensorflow GPU acceleration with metal through miniconda. I'm just using spyder standalone app, and as I said, sometimes it works flawlessly for days, but other times just crashes upon launch

What steps reproduce the problem?

  1. No steps, since problem since to be random

What is the expected output? What do you see instead?

Expected output is spyder window. Instead I get the window but with a popup message saying "Launch Error See the py2app website for debugging launch issues" And gives me only two options, "Visit Website" and "Terminate" both close spyder. I can't use the program at all while this popup is open.

Paste Traceback/Error Below (if applicable)

PASTE TRACEBACK HERE

I've run the app from the terminal and get this output.

The available OpenGL surface format was either not version 3.2 or higher or not a Core Profile.
Chromium on macOS will fall back to software rendering in this case.
Hardware acceleration and features such as WebGL will not be available.
fromIccProfile: failed minimal tag size sanity
Traceback (most recent call last):
  File "/Applications/Spyder.app/Contents/Resources/__boot__.py", line 251, in <module>
    _run()
  File "/Applications/Spyder.app/Contents/Resources/__boot__.py", line 174, in _run
    exec(compile(source, path, "exec"), globals(), globals())
  File "/Applications/Spyder.app/Contents/Resources/spyder", line 3, in <module>
    start.main()
  File "/Applications/Spyder.app/Contents/Resources/lib/python3.9/spyder/app/start.py", line 266, in main
    mainwindow.main(options, args)
  File "/Applications/Spyder.app/Contents/Resources/lib/python3.9/spyder/app/mainwindow.py", line 1822, in main
    mainwindow = create_window(MainWindow, app, splash, options, args)
  File "/Applications/Spyder.app/Contents/Resources/lib/python3.9/spyder/app/utils.py", line 300, in create_window
    main.post_visible_setup()
  File "/Applications/Spyder.app/Contents/Resources/lib/python3.9/spyder/app/mainwindow.py", line 1053, in post_visible_setup
    self.reopen_last_session()
  File "/Applications/Spyder.app/Contents/Resources/lib/python3.9/spyder/app/mainwindow.py", line 1091, in reopen_last_session
    editor.setup_open_files(close_previous_files=False)
  File "/Applications/Spyder.app/Contents/Resources/lib/python3.9/spyder/plugins/editor/plugin.py", line 3474, in setup_open_files
    self.load(filenames[index::-1], goto=clines[index::-1],
  File "/Applications/Spyder.app/Contents/Resources/lib/python3.9/spyder/plugins/editor/plugin.py", line 2273, in load
    finfo = self.editorstacks[0].load(
  File "/Applications/Spyder.app/Contents/Resources/lib/python3.9/spyder/plugins/editor/widgets/editor.py", line 2736, in load
    text, enc = encoding.read(filename)
  File "/Applications/Spyder.app/Contents/Resources/lib/python3.9/spyder/utils/encoding.py", line 308, in read
    text, encoding = decode( open(filename, 'rb').read() )
TimeoutError: [Errno 60] Operation timed out
2023-03-10 16:31:50.137 Spyder[1535:14979] Launch error
2023-03-10 16:31:50.137 Spyder[1535:14979] Launch error
See the py2app website for debugging launch issues
Uncaught TypeError: Cannot read property 'fit' of undefined
QProcess: Destroyed while process ("/Applications/Spyder.app/Contents/MacOS/python") is still running.
QProcess: Destroyed while process ("/Applications/Spyder.app/Contents/MacOS/python") is still running.
QProcess: Destroyed while process ("/Applications/Spyder.app/Contents/MacOS/python") is still running.

Versions

  • Spyder version: 5.4.2 Latest Mac standalone
  • Python version: My Mac has 3.10.9 but I think spyder is using 3.9.14 cause that is shown in the spyder console before it freezes.
  • Qt version: 5.15.9
  • PyQt version: 5.15.17
  • Operating System name/version: macOS Ventura 13.2.1

Dependencies

PASTE DEPENDENCIES HERE

I can't access to this menu

I am sorry if some info is lacking, and will be happy to add anything requested. This is the first time I'm posting here and I'm not a computer guru.

@Gerard568
Copy link
Author

Looks like having some open scripts (open in the spyder IDE) stored in OneDrive and not having OneDrive open at the moment causes the issue. I opened OneDrive and everything worked as expected.

Admin please delete this issue. Sorry for the mistake.

Thank you for your work!

@ccordoba12 ccordoba12 reopened this Mar 11, 2023
@ccordoba12
Copy link
Member

ccordoba12 commented Mar 11, 2023

Hey @Gerard568, thanks for reporting. Actually, this error is something we can fix on our side to prevent it from showing up to users. We'll do that in our next version (5.4.3), to be released at the end of the month.

@ccordoba12 ccordoba12 changed the title Spyder crashes right after launch TimeoutError when opening files in the editor if OneDrive is not open Mar 11, 2023
@ccordoba12 ccordoba12 added this to the v5.4.3 milestone Mar 11, 2023
@ccordoba12 ccordoba12 self-assigned this Mar 11, 2023
@ccordoba12 ccordoba12 changed the title TimeoutError when opening files in the editor if OneDrive is not open TimeoutError and crash at startup when restoring files in the editor if OneDrive is not open Mar 11, 2023
@ccordoba12 ccordoba12 changed the title TimeoutError and crash at startup when restoring files in the editor if OneDrive is not open TimeoutError and crash at startup when restoring files in the editor if OneDrive is not started Mar 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants