question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Wayland] Qtile crashes after exiting program that played fullscreen video

See original GitHub issue

When using for instance Firefox or mpv to play a fullscreen video, Qtile (current git master) crashes when exiting the program. So in the case of mpv Qtile crashes immediately after the video, but in the case of Firefox I can play multiple Youtube videos and it will only crash after exiting Firefox. In both programs I can also toggle endlessly between fullscreen and windowed (tiled) without problems.

I’ve reproduced this problem after checking out a fresh copy of the git repo by using the wephyr script in the repo after setting up a development environment with dev.sh from the repo.

This is the traceback causing the crash after exiting Firefox:

Exception ignored from cffi callback <function notify_func at 0x7fdde8862b00>:
Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/pywayland/server/listener.py", line 32, in notify_func
    data = listener._signal._data_wrapper(data)
  File "/usr/lib/python3.10/site-packages/wlroots/wlr_types/surface.py", line 26, in __init__
    self.commit_event = Signal(ptr=ffi.addressof(self._ptr.events.commit))
AttributeError: cdata 'void *' has no attribute 'events'
Exception ignored from cffi callback <function notify_func at 0x7fdde8862b00>:
Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/pywayland/server/listener.py", line 32, in notify_func
    data = listener._signal._data_wrapper(data)
  File "/usr/lib/python3.10/site-packages/wlroots/wlr_types/surface.py", line 26, in __init__
    self.commit_event = Signal(ptr=ffi.addressof(self._ptr.events.commit))
AttributeError: cdata 'void *' has no attribute 'events'
Exception ignored from cffi callback <function notify_func at 0x7fdde8862b00>:
Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/pywayland/server/listener.py", line 32, in notify_func
    data = listener._signal._data_wrapper(data)
  File "/usr/lib/python3.10/site-packages/wlroots/wlr_types/surface.py", line 26, in __init__
    self.commit_event = Signal(ptr=ffi.addressof(self._ptr.events.commit))
AttributeError: cdata 'void *' has no attribute 'events'
Exception ignored from cffi callback <function notify_func at 0x7fdde8862b00>:
Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/pywayland/server/listener.py", line 32, in notify_func
    data = listener._signal._data_wrapper(data)
  File "/usr/lib/python3.10/site-packages/wlroots/wlr_types/surface.py", line 26, in __init__
    self.commit_event = Signal(ptr=ffi.addressof(self._ptr.events.commit))
AttributeError: cdata 'void *' has no attribute 'events'
free(): invalid next size (fast)

And this is the traceback after exiting mpv:

Exception ignored from cffi callback <function notify_func at 0x7f09e513eb00>:
Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/pywayland/server/listener.py", line 32, in notify_func
    data = listener._signal._data_wrapper(data)
  File "/usr/lib/python3.10/site-packages/wlroots/wlr_types/surface.py", line 26, in __init__
    self.commit_event = Signal(ptr=ffi.addressof(self._ptr.events.commit))
AttributeError: cdata 'void *' has no attribute 'events'
Exception ignored from cffi callback <function notify_func at 0x7f09e513eb00>:
Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/pywayland/server/listener.py", line 32, in notify_func
    data = listener._signal._data_wrapper(data)
  File "/usr/lib/python3.10/site-packages/wlroots/wlr_types/surface.py", line 26, in __init__
    self.commit_event = Signal(ptr=ffi.addressof(self._ptr.events.commit))
AttributeError: cdata 'void *' has no attribute 'events'
Exception ignored from cffi callback <function notify_func at 0x7f09e513eb00>:
Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/pywayland/server/listener.py", line 32, in notify_func
    data = listener._signal._data_wrapper(data)
  File "/usr/lib/python3.10/site-packages/wlroots/wlr_types/surface.py", line 26, in __init__
    self.commit_event = Signal(ptr=ffi.addressof(self._ptr.events.commit))
AttributeError: cdata 'void *' has no attribute 'events'
Exception ignored from cffi callback <function notify_func at 0x7f09e513eb00>:
Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/pywayland/server/listener.py", line 32, in notify_func
    data = listener._signal._data_wrapper(data)
  File "/usr/lib/python3.10/site-packages/wlroots/wlr_types/surface.py", line 26, in __init__
    self.commit_event = Signal(ptr=ffi.addressof(self._ptr.events.commit))
AttributeError: cdata 'void *' has no attribute 'events'
Exception ignored from cffi callback <function notify_func at 0x7f09e513eb00>:
Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/pywayland/server/listener.py", line 32, in notify_func
    data = listener._signal._data_wrapper(data)
  File "/usr/lib/python3.10/site-packages/wlroots/wlr_types/surface.py", line 26, in __init__
    self.commit_event = Signal(ptr=ffi.addressof(self._ptr.events.commit))
AttributeError: cdata 'void *' has no attribute 'events'
Exception ignored from cffi callback <function notify_func at 0x7f09e513eb00>:
Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/pywayland/server/listener.py", line 32, in notify_func
    data = listener._signal._data_wrapper(data)
  File "/usr/lib/python3.10/site-packages/wlroots/wlr_types/surface.py", line 26, in __init__
    self.commit_event = Signal(ptr=ffi.addressof(self._ptr.events.commit))
AttributeError: cdata 'void *' has no attribute 'events'
free(): invalid size

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:18 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
arjan-scommented, Feb 22, 2022

@m-col I don’t see an option to reopen this issue, but I’m afraid it’s not fixed. I’m now running the current git master with pywayland 0.4.11 and pywlroots 0.15.9.

1reaction
m-colcommented, Feb 21, 2022

This should be fixed now with v0.4.11 of pywayland. Please re-open if you update to pywayland and find that it is not fixed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Totally messed up fullscreen · Issue #729 · qtile/qtile - GitHub
Play video and click on fullscreen. Actual results: Fullscreen window is somewhere below, because focus is returned to the different window. I ...
Read more >
Wayland - ArchWiki - Arch Linux
Wayland is a display server protocol. It is aimed to become the successor of the X Window System. You can find a comparison...
Read more >
Using exclusive fullscreen on Wayland causes crash on startup
Start Veloren through airshipper. Enter multiplayer. Choose exclusive fullscreen in settings. Quit. Restart. Relevant logs and/or screenshots.
Read more >
Qtile Documentation - Read the Docs
Stable versions of Qtile are currently packaged for Arch Linux. To install this package, run: pacman -S qtile. Please see the ArchWiki for...
Read more >
106713 – Freezing on fullscreen when using Wayland and/or ...
If I start F1 2017 (Vulkan) on Plasma on Wayland in fullscreen mode ... But once the games tries to play the into...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found