-
Notifications
You must be signed in to change notification settings - Fork 54
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
Wayland backend not working in Plots.jl GR backend #141
Comments
Hey @VarLad, thanks for reporting this issue. I can reproduce this behavior on Ubuntu 20.04 with Wayland enabled. GR itself does not depend on X when the Qt output driver is used. I looked at the |
@barche any idea? |
After some searching around, I think, to achieve a wayland backend, we'll have to build I've no idea how viable that is though! 😅 |
If you do cc: @jheinen |
@mkitti Thanks! Correct, that uses the Wayland version! |
Great, so we have a workaround. You may want to file an issue on this build script then: |
I'm seeing this again on GR.jl v0.69.5 at least. The workaround doesn't seem to work anymore :( |
I confirm that the workaround is not working for me on: it did work with: Plots v1.33.0, GR v0.66.2, julia 1.8.2 |
The GR binaries thing has never been established in the Julia community, unfortunately - so all the logic was removed in favor of BinaryBuilder. The origin of the problem is that Wayland is not compiled into the |
Err... time for me to review the recent changes. |
Looks like we removed support as GR.jl v0.68.0: |
jheinen/GR.jl#471 may provide an alternate work around. @t-bltg could you help me formulate what a new work around might be? Loosely,
using GR
GR.GRPreferences.use_system_binary("/path/to/extracted/gr/tarball") Frankly, I think we could probably recover the build script, but just integrate this with the new Preferences.jl mechanism: |
Untested, but looks good. You can either use No need to |
At first glance, this seems to work. But under Linux, a simple 3D plot ( I had to pre-load most of the
I'm still trying to understand why the preload mechanism is required. |
Sometimes some segfaults are observed in 3d plots (jheinen/GR.jl#480), what I usually do is re-download and extract the artifacts, quite odd. |
I created a pull request which restores the build script as a module under GRPreferences: jheinen/GR.jl#483 Mostly this is to restore the download logic. |
In Julia 1.7.0beta3, Plots v1.20.1, GR.jl v0.58.1
I realized that the default (GR) backend uses XWayland for the plotting window
Anyway I can use Wayland instead?
I usually get:
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
After doing
ENV["QT_QPA_PLATFORM"]="wayland"
in Julia, or starting julia withQT_QPA_PLATFORM=wayland julia
I get the same error, the error being,
The text was updated successfully, but these errors were encountered: