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

Tracking Issue: Invisible Window on Linux #16428

Open
notpeter opened this issue Aug 18, 2024 · 15 comments
Open

Tracking Issue: Invisible Window on Linux #16428

notpeter opened this issue Aug 18, 2024 · 15 comments
Labels
ignore top-ranking issues [ignored label] linux workspace Feedback for workspace management, layout, interactions, etc

Comments

@notpeter
Copy link
Member

notpeter commented Aug 18, 2024

No Zed Window on Launch (Linux)

This is a tracking issue to help consolidate the many distinct issues where this has been reported in an attempt to identify the configurations and determine whether there are one or more common issues behind this.

Apologies for spam on mentioned issues and users @ mentions. Just hoping to raise visibility of potential workarounds for users still impacted by this issue.

Broken:

  • Trixie (Ubuntu 24.04, Ubuntu 23.10 on WSL2)
  • Bookworm (Ubuntu 20.04, Ubuntu 22.04, Ubuntu 22.04 on WSL2, Mint 20.3, Mint, Mint 21.2, Mint 21.3, Pop!_OS 22.04, Debian 12.5, LMDE6)
  • RedHat (RHEL 9.4, RHEL 9.3, Rocky 9.3, Fedora 39)
  • Arch (Arch 2024.07.01, Arch on WSL2, EndevourOS, Manjaro)
  • NixOS

Fixed:

Leads:

CPUs/GPUs

Potentially Related Issues:

@Moshyfawn Moshyfawn added workspace Feedback for workspace management, layout, interactions, etc linux ignore top-ranking issues [ignored label] labels Aug 18, 2024
@notpeter
Copy link
Member Author

notpeter commented Aug 18, 2024

I've read every comment in each of these issue and here is my current takeaways.

  • Ubuntu:
    • Ideally upgrade to Ubuntu 24
    • Ubuntu 20, Ubuntu 22, MintOS 20/21/22: Consider
      sudo apt-get install libvulkan-dev
      sudo add-apt-repository ppa:kisak/kisak-mesa
      sudo apt update && sudo apt upgrade
    • Ubuntu on WSL2: Consider above + forcing running under X11 instead of wayland:
      WAYLAND_DISPLAY='' zed --foreground
  • Pop!_OS 22.04: Please try Pop!_OS 24.04 LTS alpha and report back.
  • Arch:
  • Redhat: TBD
  • NixOS: TBD

Still working on identifying solutions for users without a Vulkan-supported GPU (e.g. no modern Intel Graphics, AMD GPU, AMD APU or Nvidia GPU, etc) who are trying to use the llvmpipe software emulation and encounter this issue.

@eyelash
Copy link

eyelash commented Aug 18, 2024

If Zed could detect the situation where the Vulkan drivers don't support Vulkan 1.3 and print a message along the lines of "please update your drivers/OS" instead of silently not opening a window, that would probably go a long way in terms of user experience.

@stalkerg

This comment was marked as off-topic.

@mgroenbroek

This comment was marked as resolved.

@murl-digital

This comment was marked as resolved.

@LeCongNam

This comment was marked as resolved.

@Coaxus-ux
Copy link

Using fedora with wyland it didn't open, so change to ea X11 and it opened normally, I guess it's incompatibility with wyland, just change and that's it.

A very simple solution, be careful not to depend on some wayland feature.

@clseibold
Copy link

clseibold commented Sep 29, 2024

So, I have an AMD Radeon integrated graphics as well as NVIDIA RTX 3060 Laptop GPU, and under WSL-2 (Ubuntu 24) I was able to get vkcube to recognize my nvidia gpu by installing kisak-mesa and liquorix kernel.

However, Zed does not pick the correct GPU - it picks llvmpipe when there are two other GPUs that are available. My guess is because the api versions for the two are 1.2, rather than 1.3. I'm not sure why 1.2 is only supported for my GPUs only under WSL-2.

Vulkaninfo gives me these 3 GPUs:

GPU0:
        apiVersion         = 1.2.289
        driverVersion      = 24.2.3
        vendorID           = 0x10de
        deviceID           = 0x2520
        deviceType         = PHYSICAL_DEVICE_TYPE_DISCRETE_GPU
        deviceName         = Microsoft Direct3D12 (NVIDIA GeForce RTX 3060 Laptop GPU)
        driverID           = DRIVER_ID_MESA_DOZEN
        driverName         = Dozen
        driverInfo         = Mesa 24.2.3 - kisak-mesa PPA
        conformanceVersion = 0.0.0.0
        deviceUUID         = abd52523-22df-9a9a-4448-6dd05cfebe81
        driverUUID         = 6ee2028a-2063-39d1-a78b-ff50217faeb8
GPU1:
        apiVersion         = 1.2.289
        driverVersion      = 24.2.3
        vendorID           = 0x1002
        deviceID           = 0x1636
        deviceType         = PHYSICAL_DEVICE_TYPE_INTEGRATED_GPU
        deviceName         = Microsoft Direct3D12 (AMD Radeon(TM) Graphics)
        driverID           = DRIVER_ID_MESA_DOZEN
        driverName         = Dozen
        driverInfo         = Mesa 24.2.3 - kisak-mesa PPA
        conformanceVersion = 0.0.0.0
        deviceUUID         = 7e26c875-6315-f8d1-9939-81a6392cab84
        driverUUID         = 6ee2028a-2063-39d1-a78b-ff50217faeb8
GPU2:
        apiVersion         = 1.3.289
        driverVersion      = 0.0.1
        vendorID           = 0x10005
        deviceID           = 0x0000
        deviceType         = PHYSICAL_DEVICE_TYPE_CPU
        deviceName         = llvmpipe (LLVM 17.0.6, 256 bits)
        driverID           = DRIVER_ID_MESA_LLVMPIPE
        driverName         = llvmpipe
        driverInfo         = Mesa 24.2.3 - kisak-mesa PPA (LLVM 17.0.6)
        conformanceVersion = 1.3.1.1
        deviceUUID         = 6d657361-3234-2e32-2e33-202d206b6900
        driverUUID         = 6c6c766d-7069-7065-5555-494400000000

glxinfo -B seems to show that the AMD integrated GPU is the default selected:

WARNING: dzn is not a conformant Vulkan implementation, testing use only.
WARNING: Some incorrect rendering might occur because the selected Vulkan device (Microsoft Direct3D12 (NVIDIA GeForce RTX 3060 Laptop GPU)) doesn't support base Zink requirements: feats.features.logicOp have_EXT_custom_border_color have_EXT_line_rasterization
display: :0  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: Microsoft Corporation (0xffffffff)
    Device: D3D12 (AMD Radeon(TM) Graphics) (0xffffffff)
    Version: 24.2.3
    Accelerated: yes
    Video memory: 8390MB
    Unified memory: yes
    Preferred profile: core (0x1)
    Max core profile version: 4.2
    Max compat profile version: 4.2
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.1
OpenGL vendor string: Microsoft Corporation
OpenGL renderer string: D3D12 (AMD Radeon(TM) Graphics)
OpenGL core profile version string: 4.2 (Core Profile) Mesa 24.2.3 - kisak-mesa PPA
OpenGL core profile shading language version string: 4.20
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 4.2 (Compatibility Profile) Mesa 24.2.3 - kisak-mesa PPA
OpenGL shading language version string: 4.20
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile

OpenGL ES profile version string: OpenGL ES 3.1 Mesa 24.2.3 - kisak-mesa PPA
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.10

And vkcube seems to use the nvidia GPU:

WARNING: dzn is not a conformant Vulkan implementation, testing use only.
Selected GPU 0: Microsoft Direct3D12 (NVIDIA GeForce RTX 3060 Laptop GPU), type: DiscreteGpu

And here's Zed giving me an unsupported GPU dialog:
image

@KristoferHansson
Copy link

Having basically the exact same issue as clseibold, same resulting error popup.
Thou running WSL2 22.04.3 LTS (Jammy Jellyfish) on WSL2:

wsl --version
WSL version: 2.3.26.0
Kernel version: 5.15.167.4-1
WSLg version: 1.0.65
MSRDC version: 1.2.5620
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.26100.1-240331-1435.ge-release
Windows version: 10.0.22631.4460
>vulkaninfo --summary
....
Devices:
========
GPU0:
        apiVersion         = 4202785 (1.2.289)
        driverVersion      = 100671495 (0x6002007)
        vendorID           = 0x8086
        deviceID           = 0xa7a1
        deviceType         = PHYSICAL_DEVICE_TYPE_INTEGRATED_GPU
        deviceName         = Microsoft Direct3D12 (Intel(R) Iris(R) Xe Graphics)
        driverID           = UNKNOWN_VkDriverId_value23
        driverName         = Dozen
        driverInfo         = Mesa 24.2.7 - kisak-mesa PPA
        conformanceVersion = 0.0.0.0
        deviceUUID         = 8f0baa7a-2dea-957d-d331-6bdc89d841fa
        driverUUID         = a89763fc-a21b-5517-2a44-091e0c0011ae
GPU1:
        apiVersion         = 4206881 (1.3.289)
        driverVersion      = 1 (0x0001)
        vendorID           = 0x10005
        deviceID           = 0x0000
        deviceType         = PHYSICAL_DEVICE_TYPE_CPU
        deviceName         = llvmpipe (LLVM 15.0.7, 256 bits)
        driverID           = DRIVER_ID_MESA_LLVMPIPE
        driverName         = llvmpipe
        driverInfo         = Mesa 24.2.7 - kisak-mesa PPA (LLVM 15.0.7)
        conformanceVersion = 1.3.1.1
        deviceUUID         = 6d657361-3234-2e32-2e37-202d206b6900
        driverUUID         = 6c6c766d-7069-7065-5555-494400000000
❯ vkcube
WARNING: dzn is not a conformant Vulkan implementation, testing use only.
Selected GPU 0: Microsoft Direct3D12 (Intel(R) Iris(R) Xe Graphics), type: 1

@JosephTLyons
Copy link
Collaborator

JosephTLyons commented Dec 3, 2024

@jolexxa
Copy link

jolexxa commented Dec 7, 2024

I just ran into this on a 2024 Asus G14 (AMD Integrated, NVIDIA Discrete) running Nobara (basically Fedora) when doing either DRI_PRIME=1 zed or DRI_PRIME=1 WAYLAND_DISPLAY='' zed. Just running Zed works, but it is super slow and laggy. VKCube and all that are working fine.

@ryukinix
Copy link

ryukinix commented Dec 21, 2024

I can still reproduce this problem using Artix Linux with Nvidia GTX 760 and official 470xx drivers. vkcube is working fine. Zed doesn't crash neither, the profess continue fine, but window doesn't appears. Using Xorg as well.

image

@ali-ghamdan
Copy link

I was using zed 100%, until i open NVIDIA Server X Settings (Ubuntu 24.04 LTS) and i changed the prime profile from "NVIDIA On-Demand" to "NVIDIA (PERFORMANCE MODE)", this issue appeared until i restore it to "NVIDIA On-Demand", and now it back and works great.

@andreymal
Copy link

official 470xx drivers

@ryukinix too old for Zed, see #14314 (comment)

@ryukinix
Copy link

official 470xx drivers

@ryukinix too old for Zed, see #14314 (comment)

Thank you for pointing out the real issue around this problem in my case!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ignore top-ranking issues [ignored label] linux workspace Feedback for workspace management, layout, interactions, etc
Projects
None yet
Development

No branches or pull requests