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

Crash on launch on wayland (sway) with mixed-scaled dual monitor setup #873

Open
nidico opened this issue Apr 16, 2023 · 3 comments
Open

Comments

@nidico
Copy link

nidico commented Apr 16, 2023

Description

Since a couple of weeks / months, element-desktop-nightly fails to start on wayland (sway 1.8.1) - the window opens and immediately closes.

Today I took the time to investigate this further.

Launching element-desktop-nightly --enable-features=UseOzonePlatform --ozone-platform=wayland immediately crashes with the following error message:

[14094:0416/110801.824532:ERROR:wayland_event_watcher.cc(39)] libwayland: xdg_wm_base@15: error 4: wrong configure serial: 6263

This only (and always) happens on a specific dual monitor configuration (one monitor scaled, another monitor unscaled) when launching element on the right (no matter if the left or the right monitor is scaled!) monitor. Launching element on the left monitor and moving it afterwards does not cause this issue. (<- Simple Workaround!)

This is a sample sway config causing the issue:

output HDMI-A-1 pos 0 0 res 1920x1200
output DP-1 pos 1920 0 res 3840x2160 scale 2

As I assume that this is an electron issue (also reported for chromium: arch bug tracker, nix bug tracker, upstream), I tried to replicate the issue with other versions and other apps:

  • element-desktop-nightly 2023041501 (current nightly, electron 4.0.0) has the issue (this report).
  • element-desktop 1.11.29 (current stable, electron 23.1.3) behaves similarly, but not as reliably (sometimes crashes only after a couple of seconds, also on the left monitor) and doesn't output above error.
  • signal-desktop 6.14.0 (electron 22.3.5) doesn't have that issue.
  • wire-desktop 3.30.3018 (electron 21.3.3) doesn't have this issue.
  • chromium 112.0.5615 also has this issue - same error message as above.

Unfortunately I wasn't able to provoke this issue with the much simpler electron/electron-quick-start with either electron 24.0.0 or 24.1.1.

Operating system

Debian Linux

Application version

Element nightly 2023041501

How did you install the app?

element.io deb repository

Homeserver

matrix.org

Will you send logs?

No

@mwaltersva
Copy link

+1ing this. I'm experiencing the exact issue and behavior described on Manjaro Sway. Any browser based on a chromium version greater than 110.0.5481.177 crashes for me if launched on a monitor other than the left most monitor. I have similar multimonitor set up. scale 2, 1, 1. Can provide more details if needed/wanted.

@nidico
Copy link
Author

nidico commented Jun 19, 2023

Update with current versions:

@nidico
Copy link
Author

nidico commented Jun 29, 2023

Update with current versions:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants