Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Oct 2019 14:32:53 -0700
From:      John Kennedy <warlock@phouka.net>
To:        Jan Beich <jbeich@freebsd.org>
Cc:        freebsd-x11@freebsd.org
Subject:   Re: sway-1.2_1 crashes
Message-ID:  <20191010213253.GD46984@phouka1.phouka.net>
In-Reply-To: <20191010182705.GC46984@phouka1.phouka.net>
References:  <20191007165337.GA85696@phouka1.phouka.net> <wodg-9qj1-wny@FreeBSD.org> <20191007232340.GB85696@phouka1.phouka.net> <20191008172007.GA89365@phouka1.phouka.net> <d0f4-pju3-wny@FreeBSD.org> <20191010182705.GC46984@phouka1.phouka.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Oct 10, 2019 at 11:27:05AM -0700, John Kennedy wrote:
>   I've had a good couple of days without starting firefox.  I know GTK3 has some
> wayland compile options, but firefox seems to depend on both GTK2 (which doesn't)
> and GTK3 as far as pkg is concerned.

  So, I think I've found at least one reliable (repeatable) way to crash sway.

  Starting up sway, I pop one floating window (xterm).  Run this little script:

	#!/bin/sh

	for y in 0 1 # 2 3 4 5 6 7 8 9
	    do
	    for x in 0 1 2 3 4 5 6 7 8 9
		do
			urxvt &
			echo $y $x
			sleep 1
		done
	    done

  It makes it to ~17 or (tiled) urxvt windows so before sway "crashes".  IE,
bails out to virtual terminal (where I can log in remotely and run vidcontrol
to get my original console).  I've done that about 8 times in a row.

    [from `sway -d']
	...
	2019-10-10 14:06:10 - [xwayland/xwm.c:941] XCB_MAP_NOTIFY (41943047)
	2019-10-10 14:06:10 - [xwayland/xwm.c:1206] XCB_CLIENT_MESSAGE (41943047)
	2019-10-10 14:06:10 - [types/wlr_surface.c:609] New wlr_surface 0x80483b700 (res 0x803ab4480)
	2019-10-10 14:06:10 - [xwayland/xwm.c:1375] New xwayland surface: 0x80483b700
	2019-10-10 14:06:10 - [xwayland/xwm.c:391] XCB_ATOM_WM_CLASS: urxvt URxvt
	2019-10-10 14:06:10 - [xwayland/xwm.c:441] XCB_ATOM_WM_NAME: urxvt
	2019-10-10 14:06:10 - [xwayland/xwm.c:525] WM_PROTOCOLS (2)
	2019-10-10 14:06:10 - [xwayland/xwm.c:555] WM_HINTS (9)
	2019-10-10 14:06:10 - [xwayland/xwm.c:607] WM_NORMAL_HINTS (18)
	2019-10-10 14:06:10 - [xwayland/xwm.c:441] XCB_ATOM_WM_NAME: urxvt
	2019-10-10 14:06:10 - [xwayland/xwm.c:479] NET_WM_PID 7257
	(EE) 
	Fatal server error:
	(EE) failed to read Wayland events: Broken pipe
	(EE) 
	xterm: fatal IO error 35 (Resource temporarily unavailable) or KillClient on X server ":0"
	Segmentation fault

  It died about 17 debugging lines into a ~226-line series for opening a urxvt window.

  If you run it without the sleep, it'll complain that the X display isn't available but
not crash, at least in my simple test of ~20 runs.

    [pkg info | grep -e sway- -e wlroot -e wayland]
	sway-1.2_3                     i3-compatible Wayland compositor
	wayland-1.16.0_1               Wayland composite "server"
	wayland-protocols-1.17         Wayland protocols
	wlroots-0.8.1                  Modular Wayland compositor library
	xwayland-1.19.1_11,1           X Clients under Wayland




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20191010213253.GD46984>