Open remisalmon opened 3 years ago
Hey @remisalmon, thanks for reporting. I can't reproduce this problem, so please upload an animated gif that shows us how to do it in our side.
@ccordoba12 I hope this can help:
I have the same problem on windows. I have manage to replicate the bug on 3 different computer, all with W10, some with fresh environment or anaconda installation. On python 3.8.11 the bug appear when using a graphics backend other than inline (the bug appear with either Automatic, Qt5, Qt4 and Tkinter) and selected "Remove all variable before execution". On temp.py the bug doest appear all the time, but with another file(for example an untitled) it appear all the time. I manage to replicate it on spyder 5.0.5 and 4.2.5 but only on python 3.8. I haven't manage to replicate it with python 3.9. It's possible to de-freeze the kernel by opening, or closing, or interacting with another console. I might be able to show an animated gif latter
I have the exact same issue, including after updating to 5.1.4. It is also triggered by using %matplotlib auto
Hey @remisalmon, thanks for the video. I think this problem has to do with Wayland because Conda/Conda-forge Qt packages don't have support for it.
Could you run Spyder under an Xorg session and report back again?
@PhanAlexandre, about your problem (which is totally different), please see issue #16138.
@ccordoba12 you're right: no issue restarting the kernel under Xorg, only when using Wayland + the automatic graphics backend.
Ok, glad to know. What if you switch the backend to Inline in our Preferences, restart the kernel, and then run this code in the console?
import os
os.environ['XDG_SESSION_TYPE'] = 'x11'
%matplotlib qt
After that, please try to create a plot. That should work because it makes the Qt conda-forge packages to fallback to Xorg and avoid trying to use Wayland.
Forcing os.environ['XDG_SESSION_TYPE'] = 'x11'
did work (qt plots + able to restart the kernel).
Not sure why it did not work right away since Spyder print this in the terminal before starting:
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
Ok, that's really good to know. We'll try to fix this before the end of the year.
This problem can be found in Spyder 5.0.0 and higher version. Spyder 4.2.5 and lower version can work smothly without such problem.
Looks like this issue was fixed somehow, closing since I can't reproduce anymore with Spyder 5.3.3.
There's nothing that has changed in Conda/Conda-forge packages or in our side, so we still need to address it.
I still have this problem in 5.4.2 on Windows. Restarting the kernel works, but interrupting does not.
@James-F1dev, this is a Linux only issue. Since you problem is different, please open a new issue about it.
Issue Report Checklist
conda update spyder
(orpip
, if not using Anaconda)jupyter qtconsole
(if console-related)spyder --reset
Problem Description
When using the Graphics backend toAutomatic, running files (F5) hangs and it is not possible to restart the IPython kernel with Spyder 5.1.3 on Linux.
What steps reproduce the problem?
What is the expected output? What do you see instead?
I should be able to run files and restart kernels without IPython hanging.
Versions
Dependencies