Codium cannot start on wayland (?)

Warning: 'ozone-platform-hint' is not in the list of known options, but still passed to Electron/Chromium.
Warning: 'enable-features' is not in the list of known options, but still passed to Electron/Chromium.

The window pop up once then kill itself.

 - system: `"x86_64-linux"`
 - host os: `Linux 6.1.74, NixOS, 24.05 (Uakari), 24.05.20240124.5cd2baa`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.1`
 - channels(Peal): `""`
 - channels(root): `"nixos"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

I’m running unstable nixos

A quick fix would be to delete the contents of ~/.config/VSCodium/GPUCache and/or ~/.config/VSCodium/Crashpad

If those don’t work, you can also try setting the --disable-gpu flag when launching VSCodium from the terminal

doesn’t work for me
still the same error

ok idk what’s going on

Jan 28 20:23:54 Windows11 systemd-coredump[22066]: Process 21899 (codium) of user 1000 dumped core.
                                                   
                                                   Module libxkbfile.so.1 without build-id.
                                                   Module libudev.so.1 without build-id.
                                                   Module libdconfsettings.so without build-id.
                                                   Module libncursesw.so.6 without build-id.
                                                   Module libstdc++.so.6 without build-id.
                                                   Module libbrotlicommon.so.1 without build-id.
                                                   Module libdatrie.so.1 without build-id.
                                                   Module libxml2.so.2 without build-id.
                                                   Module libjson-glib-1.0.so.0 without build-id.
                                                   Module libjpeg.so.62 without build-id.
                                                   Module libbrotlidec.so.1 without build-id.
                                                   Module libbz2.so.1 without build-id.
                                                   Module libgraphite2.so.3 without build-id.
                                                   Module libXinerama.so.1 without build-id.
                                                   Module libXcursor.so.1 without build-id.
                                                   Module libcap.so.2 without build-id.
                                                   Module libgmp.so.10 without build-id.
                                                   Module libhogweed.so.6 without build-id.
                                                   Module libnettle.so.8 without build-id.
                                                   Module libtasn1.so.6 without build-id.
                                                   Module libunistring.so.5 without build-id.
                                                   Module libidn2.so.0 without build-id.
                                                   Module libp11-kit.so.0 without build-id.
                                                   Module libssp.so.0 without build-id.
                                                   Module libpcre.so.1 without build-id.
                                                   Module libXdmcp.so.6 without build-id.
                                                   Module libXau.so.6 without build-id.
                                                   Module libxcb-randr.so.0 without build-id.
                                                   Module libxcb-shm.so.0 without build-id.
                                                   Module libxcb-render.so.0 without build-id.
                                                   Module libXrender.so.1 without build-id.
                                                   Module libfreetype.so.6 without build-id.
                                                   Module libpng16.so.16 without build-id.
                                                   Module libthai.so.0 without build-id.
                                                   Module libtracker-sparql-3.0.so.0 without build-id.
                                                   Module libXi.so.6 without build-id.
                                                   Module libepoxy.so.0 without build-id.
                                                   Module libfribidi.so.0 without build-id.
                                                   Module libfontconfig.so.1 without build-id.
                                                   Module libpangoft2-1.0.so.0 without build-id.
                                                   Module libharfbuzz.so.0 without build-id.
                                                   Module libpangocairo-1.0.so.0 without build-id.
                                                   Module libsystemd.so.0 without build-id.
                                                   Module libgnutls.so.30 without build-id.
                                                   Module libavahi-client.so.3 without build-id.
                                                   Module libavahi-common.so.3 without build-id.
                                                   Module libplc4.so without build-id.
                                                   Module libplds4.so without build-id.
                                                   Module libselinux.so.1 without build-id.
                                                   Module libz.so.1 without build-id.
                                                   Module libpcre2-8.so.0 without build-id.
                                                   Module libffi.so.8 without build-id.
                                                   Module libGLX.so.0 without build-id.
                                                   Module libGLdispatch.so.0 without build-id.
                                                   Module libgcc_s.so.1 without build-id.
                                                   Module libatspi.so.0 without build-id.
                                                   Module libasound.so.2 without build-id.
                                                   Module libxkbcommon.so.0 without build-id.
                                                   Module libxcb.so.1 without build-id.
                                                   Module libexpat.so.1 without build-id.
                                                   Module libXrandr.so.2 without build-id.
                                                   Module libXfixes.so.3 without build-id.
                                                   Module libXext.so.6 without build-id.
                                                   Module libXdamage.so.1 without build-id.
                                                   Module libXcomposite.so.1 without build-id.
                                                   Module libX11.so.6 without build-id.
                                                   Module libpango-1.0.so.0 without build-id.
                                                   Module libdrm.so.2 without build-id.
                                                   Module libcups.so.2 without build-id.
                                                   Module libatk-bridge-2.0.so.0 without build-id.
                                                   Module libatk-1.0.so.0 without build-id.
                                                   Module libnspr4.so without build-id.
                                                   Module libsmime3.so without build-id.
                                                   Module libnssutil3.so without build-id.
                                                   Module libnss3.so without build-id.
                                                   Module libGLESv2.so.2 without build-id.
                                                   Module libGL.so.1 without build-id.
                                                   Module libEGL.so.1 without build-id.
Stack trace: ... skip those

Stack trace of thread 22016:
                                                   #0  0x0000
7fc00b8bfe6e __futex_abstimed_wait_common (libc.so.6 + 0x87e6e)
                                                   #1  0x00007fc00b8c29e5 pthread_cond_timedwait@@GLIBC_2.3.2 (libc.so.6 + 0x8a9e5)
                                                   #2  0x000055dd745a7d10 n/a (codium + 0x56aed10)
                                                   #3  0x000055dd745d18b7 n/a (codium + 0x56d88b7)
                                                   #4  0x000055dd74552cee n/a (codium + 0x5659cee)
                                                   #5  0x000055dd7458d4a6 n/a (codium + 0x56944a6)
                                                   #6  0x000055dd7458e108 n/a (codium + 0x5695108)
                                                   #7  0x000055dd7458dd8d n/a (codium + 0x5694d8d)
                                                   #8  0x000055dd7458dc7a n/a (codium + 0x5694c7a)
                                                   #9  0x000055dd745a8455 n/a (codium + 0x56af455)
                                                   #10 0x00007fc00b8c3333 start_thread (libc.so.6 + 0x8b333)
                                                   #11 0x00007fc00b945efc __clone3 (libc.so.6 + 0x10defc)
                                                   
                                                   Stack trace of thread 21978:
                                                   #0  0x00007fc00b946316 epoll_wait (libc.so.6 + 0x10e316)
                                                   #1  0x000055dd713305ed n/a (codium + 0x24375ed)
                                                   #2  0x000055dd712fc2a7 n/a (codium + 0x24032a7)
                                                   #3  0x00007fc00b8c3333 start_thread (libc.so.6 + 0x8b333)
                                                   #4  0x00007fc00b945efc __clone3 (libc.so.6 + 0x10defc)
                                                   ELF object binary architecture: AMD x86-64
Jan 28 20:23:54 Windows11 kernel: codium[21899]: segfault at 1010129 ip 000055dd75d5ffea sp 00007fff5599eb50 error 4 in codium[55dd70dee000+785e000] likely on CPU 4 (core 8, socket 0)

It’s probably the very long-running issue affecting VSCode on Wayland due to a suspected underlying Electron issue. AFAIK it’s fixed in the Insiders build. (I’m rocking OpenVSCode-Server these days).

https://bbs.archlinux.org/viewtopic.php?id=266203

So acording to this similar-ish thread, the problem was caused by a gtk cursor theme

However, I’m using hyprland, and have never change the cursor theme before, what’s going on…

Pls send help…
I kinda understand that it might be because of the cursor, apparently hyprland is using gtk cursor, and when I load other application from the terminal, i sometime see the message

Gdk-Message: Unable to load hand2 from the cursor theme

Pls send help…

all you need is this in your home-manager config:

 home.pointerCursor = {
    gtk.enable = true;
    x11.enable = true;
    package = pkgs.bibata-cursors;
    name = "Bibata-Modern-Amber";
    size = 28;
  };

Nope that was not a fix, the probpem fixes itself for like 4 reboots but then come back again

it is know still refuses to start sometimes, but if you restart the program 2 - 3 times it works fine
??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ???

by changing the cursor theme???
???