firefox-esr-102.4.0,1 (quarterly) does not start when launched under wayland. It gives segmentation fault & dumps core. [PS: The same problem exists under gentoo-linux]
Thanks, > [PS: The same problem exists under gentoo-linux] Would it help to have a reference to a bug report upstream somewhere? If there is one …
I can't reproduce. Works fine locally and within a clean jail: $ pkg install cage firefox-esr $ export MOZ_ENABLE_WAYLAND=1 XDG_RUNTIME_DIR=/tmp $ cage -d env -u DISPLAY firefox https://freebsd.org/ Need more details about the execution environment and backtrace from the crash.
This is how i start wayland, ``` #!/usr/local/bin/zsh export BEMENU_BACKEND=wayland export CLUTTER_BACKEND=wayland export GDK_BACKEND=wayland export MOZ_ENABLE_WAYLAND=1 export QT_QPA_PLATFORM=wayland export QT_QPA_PLATFORMTHEME="qt5ct" export QT_WAYLAND_DISABLE_WINDOWDECORATION=0 export SDL_VIDEODRIVER=wayland export WM=labwc export XDG_RUNTIME_DIR=/home/TMP export XDG_SESSION_TYPE=wayland export XKB_DEFAULT_LAYOUT="be(nodeadkeys)" export XKB_DEFAULT_RULES=evdev exec labwc ``` Can i dump some info when firefox dies ?
(In reply to Alain De Vos from comment #3) > export BEMENU_BACKEND=wayland > export CLUTTER_BACKEND=wayland > export GDK_BACKEND=wayland > export QT_QPA_PLATFORM=wayland Already default (when run under Wayland compositor). Worse, this may crash (instead of using Xwayland) any app that calls X11 directly (e.g., editors/vim@gtk3) even if the toolkit itself supports Wayland. > export XDG_SESSION_TYPE=wayland Already default since ports 70148c11889b, see https://gitlab.freedesktop.org/wlroots/wlroots/-/commit/90c845295947 > export XKB_DEFAULT_RULES=evdev Already default since ports 13d4989f6b56. > export XDG_RUNTIME_DIR=/home/TMP Is /home/TMP writeable by current user? Setting XDG_RUNTIME_DIR manually is error-prone. It's a common place to store various unix(4) sockets, not just by Wayland compositor. Better use sysutils/pam_xdg or sysutils/consolekit2 (pam_ck_connector or ck_launch_session). > Can i dump some info when firefox dies ? Better run from under debugger e.g., $ lldb -- $(which firefox) https://freebsd.org/ (lldb) run (lldb) bt
See also bug 240884. Fighting posix_fallocate(2) misuse is an uphill battle (due to emulation in glibc), so sysutils/pam_xdg/pkg-message recommends tmpfs(5) for XDG_RUNTIME_DIR.
Alain, is this reproducible with 102.10.0,1 or greater on FreeBSD 13.2-RELEASE?