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

Streams in Wayland Session not working #33

Closed
ELT4N1N opened this issue Dec 1, 2020 · 4 comments
Closed

Streams in Wayland Session not working #33

ELT4N1N opened this issue Dec 1, 2020 · 4 comments

Comments

@ELT4N1N
Copy link

ELT4N1N commented Dec 1, 2020

Hi together,

i can't open streams if Hypnotix is started in a Wayland session like sway.
A workaround for now is to force Hypnotix to use XWayland: env GDK_BACKEND=x11 hypnotix

Here is the error output:

  File "/usr/lib/hypnotix/hypnotix.py", line 1018, in on_mpv_drawing_area_realize
    self.reinit_mpv()
  File "/usr/lib/hypnotix/hypnotix.py", line 1039, in reinit_mpv
    input_vo_keyboard=True,osc=True, ytdl=True, wid=str(self.mpv_drawing_area.get_window().get_xid()))
AttributeError: 'GdkWaylandWindow' object has no attribute 'get_xid'
CHANNEL: 'Das Erste HD' (https://mcdn.daserste.de/daserste/de/master_3744.m3u8)
Exception in thread Thread-3:
Traceback (most recent call last):
  File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.8/threading.py", line 870, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/hypnotix/hypnotix.py", line 591, in play_async
    self.reinit_mpv()
  File "/usr/lib/hypnotix/hypnotix.py", line 1039, in reinit_mpv
    input_vo_keyboard=True,osc=True, ytdl=True, wid=str(self.mpv_drawing_area.get_window().get_xid()))
AttributeError: 'GdkWaylandWindow' object has no attribute 'get_xid'
@tomastan
Copy link

tomastan commented Dec 2, 2020

Confirming issue on Ubuntu 20.10

@tacosuzy
Copy link

tacosuzy commented Dec 6, 2020

I can confirm this with EndeavourOS using gnome. When switching to xorg before logging on the program functions normally.

Another note when using EndeavourOS KDE the streams play normally without needing to change anything. I do not know if wayland is enabled by default in the KDE EndeavourOS though.

I did however get streams to play under wayland by running hypnotix with sudo but could not add another playlist. Maybe that info can be helpful.

@linuxundich
Copy link

Another confirmation of this issue with Gnome 3.38.2 under Arch Linux. When started under Wayland, the program fails zu start the stream.

@clefebvre
Copy link
Member

1081138

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants