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

Screen capture does not work with OpenJDK on Wayland #20

Open
RetGal opened this issue Jan 4, 2020 · 10 comments
Open

Screen capture does not work with OpenJDK on Wayland #20

RetGal opened this issue Jan 4, 2020 · 10 comments

Comments

@RetGal
Copy link
Owner

RetGal commented Jan 4, 2020

Screen capture does not work on systems using Wayland display server in combination with OpenJDK.
(Which is the default on Debian Buster)

To Reproduce

  1. Start Dayon Assisted within a session running with Wayland.
  2. Connect to the Assistand running on whatever system.
  3. Only a plain black screen is transmitted to the Assistant.

Workaround

  • Use Oracle JDK/JRE instead
  • Or start a X.Org server instead:
    Logout > see the login screen > click the gear icon > select Xorg > login again.

Affected:

  • OS: Any linux using Wayland and OpenJDK (for example Debian 10 aka Buster)
  • Version: Any
@RetGal RetGal changed the title Screen capture does not work on Wayland Screen capture does not work with OpenJDK on Wayland Jan 8, 2020
@idnovic
Copy link

idnovic commented Apr 4, 2020

read the comments here:
https://www.reddit.com/r/gnome/comments/frv4sf/conferencing_on_wayland/

I believe pipewire is needed

@RetGal
Copy link
Owner Author

RetGal commented Apr 5, 2020

@idnovic thanks for your input, i'll definitely have a closer look at it!

@RetGal
Copy link
Owner Author

RetGal commented May 9, 2020

@idnovic Unfortunately pipewire doesn't solve the problem. It's indeed a bug/missing feature of the OpenJDK, as with Oracles implementation the screen capturing on Wayland works as expected. It's a pity, that only OpenJDK developers are allowed to open issues/bugs on their project..

@idnovic
Copy link

idnovic commented May 9, 2020

okay I see. Is it working with adoptjdk?
https://adoptopenjdk.net/?variant=openjdk8&jvmVariant=openj9

@RetGal
Copy link
Owner Author

RetGal commented May 10, 2020

@idnovic
Thanks for your suggestion. I tested it with the LTS (OpenJDK11U-jdk_x64_linux_openj9_11.0.7_10) and with the latest version (OpenJDK14U-jdk_x64_linux_hotspot_14.0.1_7) but neither of them works. It's definitely an OpenJDK issue

@idnovic
Copy link

idnovic commented Mar 11, 2022

Is this still an issue? any news on this?

@RetGal
Copy link
Owner Author

RetGal commented Mar 12, 2022

Hi @idnovic
Yes, it's still an issue. I hope that one day the openJDK developers will finally fix their Wayland screen capture implementation :)

@Triloworld
Copy link
Contributor

Maybe add upstream tag and workaround to show that error isn't relative to this project. We will wait more time on that issue on openJDK team ;/ Any mention tag available to show them where is problem?

@idnovic Unfortunately pipewire doesn't solve the problem. It's indeed a bug/missing feature of the OpenJDK, as with Oracles implementation the screen capturing on Wayland works as expected. It's a pity, that only OpenJDK developers are allowed to open issues/bugs on their project..

@RetGal
Copy link
Owner Author

RetGal commented Sep 17, 2023

Hooray! It looks like OpenJDK 21 will finally support screen capture on Wayland: bugs.openjdk.org/browse/JDK-8280982

@RetGal
Copy link
Owner Author

RetGal commented May 26, 2024

An update for the current state regarding the support of assisted computers with Wayland.

assisted computers using the Wayland display manager are only supported, if:

  • Dayon! is installed as deb, tgz or as standalone assisted.sh or jar
  • OpenJDK 21 or newer is present (or an Oracle JRE/JDK)

But if Dayon! is installed as snap or as flatpak, assisted using Wayland are currently not supported!

The only workaround for these cases is to switch the display manager to Xorg:
Logout > on the login screen click the gear icon > select Xorg > login again

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

3 participants