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

Startup Crash - Gnome 46 w/ Scaling #5340

Open
peteigel opened this issue Apr 26, 2024 · 8 comments
Open

Startup Crash - Gnome 46 w/ Scaling #5340

peteigel opened this issue Apr 26, 2024 · 8 comments
Labels
bug Something isn't working fixed-in-nightly This is (or is assumed to be) fixed in the nightly builds. Wayland

Comments

@peteigel
Copy link

peteigel commented Apr 26, 2024

What Operating System(s) are you seeing this problem on?

Linux Wayland

Which Wayland compositor or X11 Window manager(s) are you using?

Mutter (Gnome 46)

WezTerm version

20240203-110809-5046fc22

Did you try the latest nightly build to see if the issue is better (or worse!) than your current version?

I tried building from source. It launches fine at any scale, but doesn't show window decorations. I think I had built it successfully from source before.

Describe the bug

Wezterm Flatpak crashes on Gnome 46 display scale is not 100%.

I used wezterm with 125% scaling daily in Fedora 39, and it won't start on Fedora 40. I was able to reproduce at both 125% and 200% scale.

To Reproduce

  • Install WezTerm flatpack on Fedora 40
  • Set display scale to a value other than 100%
  • Launch WezTerm

Configuration

no config

Expected Behavior

App launches properly

Logs

wl_surface@44: error 2: Buffer size (12x575) must be an integer multiple of the buffer_scale (2).

Anything else?

@peteigel peteigel added the bug Something isn't working label Apr 26, 2024
@l-c-g
Copy link

l-c-g commented Apr 26, 2024

I see the same thing, Gnome 46 on Fedora 40, with 2x scaling on my laptop display (fractional scaling is enabled, though, to run in 1.5x docked):

wl_surface@44: error 2: Buffer size (12x613) must be an integer multiple of the buffer_scale (2).

@farmerbb
Copy link

farmerbb commented Apr 27, 2024

Disabling Wayland in my config allows WezTerm to start for me on Gnome 46:

config.enable_wayland = false

Alternatively, start WezTerm with the WAYLAND_DISPLAY environment variable set to 1.

@4ndv
Copy link

4ndv commented May 4, 2024

Same issue for me on Hyprland. Starting on non-scaled display is fine, but not on scaled. Moving wezterm window from non-scaled display to a scaled one also causes crash.

Logs:

03:13:41.298  WARN   wezterm_gui::termwindow::resize > cannot resize window to match Some(RowsAndCols { rows: 47, cols: 82 }) because window_state is MAXIMIZED
xdg_surface@27: error 3: xdg_surface has never been configured
Protocol error 3 on object xdg_surface@27: 
03:13:41.333  ERROR  wezterm_gui                     > running message loop: Protocol error 3 on object xdg_surface@27: ; terminating

@wez wez added the Wayland label May 5, 2024
@wez
Copy link
Owner

wez commented May 5, 2024

Please try with the very latest nightly build, as a lot of wayland changes have recently been merged

@4ndv
Copy link

4ndv commented May 6, 2024

Please try with the very latest nightly build, as a lot of wayland changes have recently been merged

Built latest main (8fa4ba9), still same error.

Also tested on Gnome 46.1, both 2024-04-29-102818-0184e88e and the latest source build are working fine on scaled display 🤔 So probably my issue is Hyprland (or wlroots?)-specific

@l-c-g
Copy link

l-c-g commented May 6, 2024

I tested the AppImage nightly downloaded today and version wezterm-20240505_232355_e6db4408-0.x86_64 from the COPR repo. Both start on my Fedora 40/Gnome 46 installation with 200% scaling, so my issue with Gnome 46 appears to be fixed.

@broizter
Copy link

broizter commented May 7, 2024

Please try with the very latest nightly build, as a lot of wayland changes have recently been merged

Nightly AppImage fixes the issue.

@wez wez added the fixed-in-nightly This is (or is assumed to be) fixed in the nightly builds. label May 7, 2024
@peteigel
Copy link
Author

peteigel commented May 9, 2024

In the latest main scaling is fixed, but window decorations missing. I've reproduced that both building from source and from the latest nightly in the COPR repo, I suppose I can open a separate issue for that if that would be helpful.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fixed-in-nightly This is (or is assumed to be) fixed in the nightly builds. Wayland
Projects
None yet
Development

No branches or pull requests

6 participants