Open major-mayer opened 10 months ago
I believe that this issue is caused by a bug in the VSCode snapcraft.yaml.
confinement: classic
and base: core20
. As such it is based on Ubuntu 20.04libgl1-mesa-dri
package into the snap and configuring LIBGL_DRIVERS_PATH
to point to the dri driver directory within the snap.--- snapcraft.yaml 2024-04-01 18:39:12.742475423 +0100
+++ snapcraft-mesa.yaml 2024-04-01 18:45:08.677398621 +0100
@@ -70,12 +70,30 @@
cd "/snap/$snap/current" && find . -type f,l -exec rm -f "$SNAPCRAFT_PRIME/{}" \;
done
patchelf --print-rpath $SNAPCRAFT_PRIME/usr/share/@@NAME@@/chrome_crashpad_handler
+ mesa-patchelf:
+ plugin: nil
+ stage-packages:
+ - libgl1-mesa-dri
+ stage:
+ # The libraries in .../dri need no-patchelf, so they come from the mesa-unpatched part
+ - -usr/lib/${SNAPCRAFT_ARCH_TRIPLET}/dri
+ mesa-no-patchelf:
+ plugin: nil
+ stage-packages:
+ - libgl1-mesa-dri
+ build-attributes:
+ - no-patchelf # Otherwise snapcraft may strip the build ID and cause the driver to crash
+ stage:
+ # Only the libraries in .../dri need to not be patched, the rest come from the mesa part
+ - usr/lib/${SNAPCRAFT_ARCH_TRIPLET}/dri
apps:
@@NAME@@:
command: electron-launch $SNAP/usr/share/@@NAME@@/bin/@@NAME@@ --no-sandbox
common-id: @@NAME@@.desktop
+ environment:
+ LIBGL_DRIVERS_PATH: $SNAP/usr/lib/${SNAPCRAFT_ARCH_TRIPLET}/dri
url-handler:
command: electron-launch $SNAP/usr/share/@@NAME@@/bin/@@NAME@@ --open-url --no-sandbox
Thanks @brianfcoleman , the mesa driver issue would be good solve but that is not the direct cause of this issue. We would need to address the incorrect settings configured for snap (code-insiders:340245): GLib-GIO-ERROR **: 20:23:58.596: Settings schema 'org.gnome.settings-daemon.plugins.xsettings' does not contain a key named 'antialiasing'
Any updates on this issue?
Any updates on this issue?
I've removed snap version and installed deb from https://code.visualstudio.com/docs/setup/linux and this fixed it for me.
Any updates on this? Having the ELECTRON_OZONE_PLATFORM_HINT set to auto crashes the application, and I woudn't want to remove that, so other electron apps can read it and scale properly.
Does this issue occur when all extensions are disabled?: Yes
VS Code Version: 1.86.0-insider fb769554405bee9be16e21ceb0a496bd29126941 x64
OS Version: Ubuntu 23.10
Steps to Reproduce:
code-insiders --ozone-platform-hint=auto --verbose