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 when trying to move a file on wayland with sway #182435

Closed
Ranguna opened this issue May 14, 2023 · 3 comments
Closed

Crash when trying to move a file on wayland with sway #182435

Ranguna opened this issue May 14, 2023 · 3 comments
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s)

Comments

@Ranguna
Copy link

Ranguna commented May 14, 2023

Does this issue occur when all extensions are disabled?: Yes/No

Version: 1.78.2 and 1.79.0-insider

Steps to Reproduce:

  1. On a machine with linux and sway, with the 1.5 scaling on a display with 2560x1440;
  2. Open vscode with the following flags to enable wayland:
     --enable-features=UseOzonePlatform --ozone-platform=wayland
    
  3. Try moving a file by dragging.

What is expected:

  1. The "ghost" of the file should appear, and the user should be allowed to move the file.

What actually happens:

  1. vscode crashes with the following error:
[505523:0514/151651.871725:ERROR:wayland_event_watcher.cc(36)] libwayland: wl_surface@45: error 2: Buffer size (288x41) is not divisible by scale (2)

Workaround:

Changing the global scaling from 1.5 to 1 solves the issue (but the text becomes way too small for high dpi displays).

@Ranguna
Copy link
Author

Ranguna commented May 14, 2023

I'm not sure if this is a wayland/sway issue, a vscode issue or an Electron issue (or something else). Wayland world is a bit weird.

I found this old closed issue on sway: swaywm/sway#6014

@konradwojda
Copy link

konradwojda commented May 17, 2023

I have similar issue on GNOME 44.1. Same display resolution and scaling (2560x1440, 1.5).
Error:

[64637:0517/130100.673982:ERROR:wayland_event_watcher.cc(36)] libwayland: wl_surface@58: error 2: Buffer size (241x70) must be an integer multiple of the buffer_scale (2).

For me it happens when I try to move editor tabs, usually crash depends on length of opened file's name.

@deepak1556
Copy link
Collaborator

/duplicate #179836

@vscodenpa vscodenpa added the *duplicate Issue identified as a duplicate of another issue(s) label May 17, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Jul 1, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s)
Projects
None yet
Development

No branches or pull requests

4 participants