-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Main window is black when starting Spyder over ssh/X11 #7447
Comments
Yes, it is, so it's not a Spyder problem. You have two options:
|
That's unfortunate, but at least a work around for the near term. Thanks. Posted in Qt Forum to start: If anyone is interested, these pyqt5 examples also have similar display issues over ssh+x11: |
Can confirm that Spyder 3.3.0 crashes with various OpenGL errors as referenced in #7152 unless Qt is downgraded to 5.6:
Windows gets "Could not Initialize GLX", while macOS gets "Unrecognized OpenGL version". @bscipio, please let me know if I can provide you with any debugging info if you are going to bring this to the attention of the Qt maintainers. |
I started a thread here: http://lists.qt-project.org/pipermail/interest/2018-July/030460.html It might be better to add to https://bugreports.qt.io/projects/QTBUG/issues/
@arnonerba It would be good to know if those examples fail for you too. |
Qt Creator has similar bugs when used over ssh + X11.
Another with similar sounding behavior: |
Interesting. It looks like I can't launch Qt Creator over SSH to run the demos. It fails with the same "Unrecognized OpenGL version" error. I'll keep an eye on the open bug reports. |
FYI I'm not sure if similar configuration options are theoretically possible additions to spyder. Assuming they'd help. |
Ok, thanks a lot for this pointer. We'll try to use the same options in Spyder. |
And it'll be available since our 3.3.2 version. |
Thanks @ccordoba12 Though sorry to say that I'm still having the same errors occur with #7700
I did test RStudio 1.2.907 with "software" set and it did display ok (Otherwise same error). So something unique to Spyder is going on. What I tried - hopefully not user error:
Tested on CentOS 7 server, Intel graphics. FYI: Running spyder locally I was able to see the new "rendering engine" preference. |
@ccordoba12 So on a hunch I added equivalent lines to: spyder/app/mainwindow.py (starting with commit 900e0e6 ) from PyQt5.QtQuick import QQuickWindow, QSGRendererInterface # New
# Note: I did find not a way to:
# from qtpy.QtQuick import QQuickWindow, QSGRendererInterface
# ~line 3123
if options.opengl_implementation == 'software':
QCoreApplication.setAttribute(Qt.AA_UseSoftwareOpenGL)
QQuickWindow.setSceneGraphBackend(QSGRendererInterface.Software) # New
# and so on for CONF and opengl='desktop' and then spyder displayed over SSH + X11 |
These are great news! Thanks @bscipio for digging deep into this one. I'll prepare a new PR to fix this. |
see spyder issue spyder-ide/spyder#7447
Issue Report Checklist
conda update spyder
(orpip
, if not using Anaconda)jupyter qtconsole
(if console-related)spyder --reset
Problem Description
I'm attempting to use Spyder on a remote Linux server by SSH and X11 forwarding (Windows 10, PuTTY, VcXsrv).
Launch spyder (
% spyder
), splash screen appears, and spyder windows is black and unusable.Only windows title bar exists to close it.
and PuTTY terminal displays following:
Believe issue is related to Qt/PyQt (5.9.4/5.9.2) versions.
Since same 3.3.0 version of Spyder, but older Qt/PyQt (5.6.2/5.6) will work.
More details below.
May be somewhat related to #7152 and #6968
What steps reproduce the problem?
% spyder
)Spyder 3.2.8 bundled with Anaconda 5.2 also has same problem
What is the expected output? What do you see instead?
Splash screen appears, and then normal spyder app window.
Instead, splash screen appears, and spyder app window is all black.
Versions
Dependencies
(Able to provide from a local Linux login session, not over ssh/X11)
Versions that worked
Installing spyder from conda-forge uses older Qt/PyQt versions that work:
conda create -n spycf -c conda-forge spyder=3.3.0 python=3.6
conda create -n spy328cf -c conda-forge spyder=3.2.8 python=3.6
The text was updated successfully, but these errors were encountered: