flacjacket / pywlroots

Python binding to the wlroots library using cffi
University of Illinois/NCSA Open Source License
53 stars 15 forks source link

pywlroots 0.15.24: Keyboard.set_keymap causes segmentation fault #120

Closed heuer closed 1 year ago

heuer commented 1 year ago

I know, wlroots 0.15 is old, but systems like Debian still ship with the old version and projects like Qtile rely on the pywlroots 0.15.x.

Code to reproduce the problem: python -m tiny

tiny won't show up but deliver a segmentation fault.

Change the line in https://github.com/flacjacket/pywlroots/blob/v0.15.x/tiny/server.py#L355 to

print('before set_keymap')
keyboard.set_keymap(keymap)
print('after set_keymap')

And you'll see that "after set_keymap" is never printed.

I haven't tested pywlroots versions < 0.15.24

heuer commented 1 year ago

I haven't tested pywlroots versions < 0.15.24

Now tested versions 0.15.23 down to 0.15.19. All suffer from the same problem.

heuer commented 1 year ago

Utilized wlroots-dev version:

~> apt list --installed | grep libwlroots

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

libwlroots-dev/testing,unstable,now 0.15.1-6 amd64  [installiert]
libwlroots10/testing,unstable,now 0.15.1-6 amd64  [Installiert,automatisch]
heuer commented 1 year ago

I guess you can mark this issue as "Invalid". I get the same error on wlroots 0.16 / pywlroots 0.16. I still haven't figured out what's going wrong there though