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

XWayland coredumps on FreeBSD 14.1-RELEASE #722

Closed
tulilirockz opened this issue Oct 9, 2024 · 8 comments
Closed

XWayland coredumps on FreeBSD 14.1-RELEASE #722

tulilirockz opened this issue Oct 9, 2024 · 8 comments
Labels
bug Something isn't working

Comments

@tulilirockz
Copy link

tulilirockz commented Oct 9, 2024

For some reason Xwayland just coredumps on a failed assertion when running niri on FreeBSD 14.1 with drm-515-kmod, absolutely no idea what causes it tho. Doesnt seem to happen on Sway

❯ Xwayland
Assertion failed: (dev->size == sizeof(dev_t)), function xwl_dmabuf_feedback_main_device, file ../hw/xwayland/xwayland-dmabuf.c, line 475.
(EE) 
Fatal server error:
(EE) Caught signal 6 (Abort trap). Server aborting
(EE)

System Information

  • Distro: FreeBSD 14.1-RELEASE-p5 with PkgBase

  • APU: AMD Ryzen 3 2200g with Vega 8 integrated graphics

@tulilirockz tulilirockz added the bug Something isn't working label Oct 9, 2024
@YaLTeR
Copy link
Owner

YaLTeR commented Oct 9, 2024

Uhhhhhh? No idea honestly

@tulilirockz
Copy link
Author

tulilirockz commented Oct 9, 2024

This looks like what is going on here, but instead of the compositor crashing its just Xwayland: hyprwm/Hyprland#6408

this also seems related: https://reviews.freebsd.org/D26642

@tulilirockz
Copy link
Author

Trying to nest sway in niri causes this to happen, too:
Assertion failed: (dev_id_arr->size == sizeof(dev_id)), function linux_dmabuf_feedback_v1_handle_main_device, file backend/wayland/backend.c, line 159.

@tulilirockz
Copy link
Author

After testing out a ton of stuff, apparently nesting niri on.. niri... makes it work! - its just the tty backend that doesnt like Xwayland for some reason

@YaLTeR
Copy link
Owner

YaLTeR commented Oct 24, 2024

Does this still happen?

@YaLTeR
Copy link
Owner

YaLTeR commented Nov 2, 2024

Feel free to reopen with more info if you think this is a niri issue.

@YaLTeR YaLTeR closed this as completed Nov 2, 2024
@tulilirockz
Copy link
Author

Hello! Sorry for not answering earlier, I completely forgot about it. This is most likely an upstream issue. I tried manually updating smithay and tons of dependencies but even then it didnt fix the issue. Nowadays I dont use FreeBSD anymore so I cant really do anything about this issue anymore

@esad
Copy link

esad commented Jan 15, 2025

I am just testing FreeBSD 14.2 and this is still happening with Xwayland as well as e.g. cage when invoked from niri. This is very probably due to dev_t in libc crate having different definitions depending on which FreeBSD version it targets (see pop-os/cosmic-comp#1028 and referenced smithay fix at https://github.com/Smithay/client-toolkit/blob/25079ae75cb6952b0542aa343bd5a52c81d135d4/src/dmabuf.rs#L15-L19), I think this could also be worked around in niri freebsd port

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants