Bug 276331 - x11-wm/sway: artifacts and often sudden reboots
Summary: x11-wm/sway: artifacts and often sudden reboots
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-x11 (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-14 15:53 UTC by p5B2EA84B3
Modified: 2024-01-15 11:33 UTC (History)
1 user (show)

See Also:
jbeich: maintainer-feedback+
jbeich: maintainer-feedback? (x11)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description p5B2EA84B3 2024-01-14 15:53:28 UTC
sway-1.8.1_2 depends on deprecated wlroots016
wlroots016-0.16.2 depends on xwayland-devel
xwayland-devel-21.0.99.1.630 is outdated as xwayland-23.2.3_1,1 moved on.

Problems using sway:
First it starts with artifacts on the monitor showing boxes or lines of the desktop background picture.
Then tearing artifacts. At this point a sudden reboot can happen any time soon and this happens almost every hour.
Comment 1 Jan Beich freebsd_committer freebsd_triage 2024-01-15 03:02:32 UTC
(In reply to p5B2EA84B3 from comment #0)
> sway-1.8.1_2 depends on deprecated wlroots016

Upstream hasn't released sway 1.9 yet which supports wlroots 0.17 API. For WIP see x11-wm/sway-devel (to be removed once or rebased against wlroots 0.18 once sway 1.9 is released).

> wlroots016-0.16.2 depends on xwayland-devel

While ports 09721d1275ee is no longer relevant many of my comments in review D35662 (ignoring maintainership dispute since review D28782) haven't been addressed. Besides, I don't see much point in tracking releases: X11 is mostly frozen, updates rarely have regressions and those often propagate into releases, various Wayland compositors have different release cadence e.g., Hyprland may want newer due to https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1236 It's also way easier to bisect, debug and contribute upstream from compared to Xwayland releases, created from a separate branch with removed Xorg bits despite the development still happening with those bits untouched on the main branch.

> xwayland-devel-21.0.99.1.630 is outdated as xwayland-23.2.3_1,1 moved on.

The version is based on "git describe --tags" output (e.g., xorg-server-21.0.99.1-630-g777c3e000) and monotonically increases.
Comment 2 Jan Beich freebsd_committer freebsd_triage 2024-01-15 03:27:35 UTC
(In reply to Jan Beich from comment #1)
> First it starts with artifacts on the monitor showing boxes or lines of the
> desktop background picture.
> Then tearing artifacts. At this point a sudden reboot can happen any time soon
> and this happens almost every hour.

Over to x11@. I can't reproduce. Most FreeBSD bugs or regressions come from drm-*kmod and mesa-* updates which have a lot of platform-specific code.

Provide more details:
- "uname -a" output
- "pciconf -lv | fgrep -A4 vga" output
- "pkg info -x drm mesa seatd udev" output
- "dmesg" output after i915kms, amdgpu or radeonkms are loaded
- backtrace from kernel panic, causing auto-reboot (may be in /var/crash with textdump(4) enabled or in dmesg before ---<<BOOT>>--- if not power-cycled)
Comment 3 p5B2EA84B3 2024-01-15 11:14:33 UTC
13.2-RELEASE-p9 amd64

vgapci0@pci0:0:2:0:	class=0x030000 rev=0x09 hdr=0x00 vendor=0x8086 device=0x0122 subvendor=0x8086 subdevice=0x2003
    vendor     = 'Intel Corporation'
    device     = '2nd Generation Core Processor Family Integrated Graphics Controller'
    class      = display
    subclass   = VGA

drm-510-kmod-5.10.163_9
drm_info-2.6.0
libdrm-2.4.119,1
mesa-dri-23.3.2
mesa-libs-23.3.2
seatd-0.8.0
libgudev-237
libudev-devd-0.5.2
py39-pyudev-0.22.0

Thank you for your efforts.
Comment 4 p5B2EA84B3 2024-01-15 11:26:56 UTC
[6] Loading kernel modules:
[7] drmn0: <drmn> on vgapci0
[7] vgapci0: child drmn0 requested pci_enable_io
[7] vgapci0: child drmn0 requested pci_enable_io
[7] <5>[drm] Unable to create a private tmpfs mount, hugepage support will be disabled(-19).
[7] <6>[drm] Got stolen memory base rxdba00000, size 0x4000000
[7] lkpi_iic0: <LinuxKPI I2C> on drmn0
[7] iicbus0: <Philips I2C bus> on lkpi_iic0
[7] iic0: <I2C generic I/O> on iicbus0
[7] lkpi_iic1: <LinuxKPI I2C> on drmn0
[7] iicbus1: <Philips I2C bus> on lkpi_iic1
[7] iic1: <I2C generic I/O> on iicbus1
[7] lkpi_iic2: <LinuxKPI I2C> on drmn0
[7] iicbus2: <Philips I2C bus> on lkpi_iic2
[7] iic2: <I2C generic I/O> on iicbus2
[7] lkpi_iic3: <LinuxKPI I2C> on drmn0
[7] iicbus3: <Philips I2C bus> on lkpi_iic3
[7] iic3: <I2C generic I/O> on iicbus3
[7] lkpi_iic4: <LinuxKPI I2C> on drmn0
[7] iicbus4: <Philips I2C bus> on lkpi_iic4
[7] iic4: <I2C generic I/O> on iicbus4
[7] lkpi_iic5: <LinuxKPI I2C> on drmn0
[7] iicbus5: <Philips I2C bus> on lkpi_iic5
[7] iic5: <I2C generic I/O> on iicbus5
[7] lkpi_iic6: <LinuxKPI I2C> on drmn0
[7] iicbus6: <Philips I2C bus> on lkpi_iic6
[7] iic6: <I2C generic I/O> on iicbus6
[7] iic6: detached
[7] iicbus6: detached
[7] lkpi_iic6: detached
[7] sysctl_warn_reuse: can't re-use a leaf (hw.dri.debug)!
[7] lkpi_iic6: <LinuxKPI I2C> on drm3
[7] iicbus6: <Philips I2C bus> on lkpi_iic6
[7] iic6: <I2C generic I/O> on iicbus6
[7] lkpi_iic7: <LinuxKPI I2C> on drm5
[7] iicbus7: <Philips I2C bus> on lkpi_iic7
[7] iic7: <I2C generic I/O> on iicbus7
[7] <6>[drm] Initialized i915 1.6.0 20200917 for drmn0 on minor 0
[7] VT: Replacing driver "efifb" with new "fb".
[7] start FB_INFO:
[7] type=11 height=1200 width=1920 depth=32
[7] pbase=0xe01e2000 vbase=0xfffff800e01e2000
[7] name=drmn0 flags=0x0 stride=7680 bpp=32
[7] end FB_INFO
[7] Autoloading module: ichsmb
[7] ichsmb0: <Intel Cougar Point SMBus controller> port 0xf040-0xf05f mem 0xfe624000-0xfe6240ff irq 18 at device 31.3 on pci0
[7] smbus0: <System Management Bus> on ichsmb0
Comment 5 p5B2EA84B3 2024-01-15 11:33:25 UTC
And I can also offer errors from a sway.log which may help:

00:00:00.939 [ERROR] [sway/config/output.c:278] Configured mode for HDMI-A-1 not available
00:00:00.022 [ERROR] [swaybar/tray/tray.c:42] Failed to connect to user bus: No such file or directory
00:05:00.223 [ERROR] [wlr] [xwayland/xwm.c:1545] xcb error: op ChangeWindowAttributes (no minor), code Window (no extension), sequence 1600, value 10485795
00:21:44.327 [ERROR] [wlr] [xwayland/xwm.c:1545] xcb error: op ChangeProperty (no minor), code Window (no extension), sequence 4508, value 8388877
00:21:44.327 [ERROR] [wlr] [xwayland/xwm.c:1545] xcb error: op ConfigureWindow (no minor), code Window (no extension), sequence 4510, value 8388877
00:21:44.327 [ERROR] [wlr] [xwayland/xwm.c:1545] xcb error: op ChangeProperty (no minor), code Window (no extension), sequence 4520, value 8388877
00:21:44.327 [ERROR] [wlr] [xwayland/xwm.c:1545] xcb error: op ChangeProperty (no minor), code Window (no extension), sequence 4521, value 8388877