VSCodium / vscodium

binary releases of VS Code without MS branding/telemetry/licensing
https://vscodium.com
MIT License
25.21k stars 1.09k forks source link

Wrong memory page alignment on Linux arm64 Apple Silicon #1720

Closed janvhs closed 4 months ago

janvhs commented 11 months ago

Describe the bug The snap uses the wrong memory page alignment. I think it has to use 16k, but I'm not sure.

/snap/codium/360/usr/lib/aarch64-linux-gnu/gdk-pixbuf-2.0/gdk-pixbuf-query-loaders: error while loading shared libraries: libgmodule-2.0.so.0: ELF load command alignment not page-aligned
/snap/codium/360/usr/share/codium/bin/../codium: error while loading shared libraries: libffmpeg.so: ELF load command alignment not page-aligned

Please confirm that this problem is VSCodium-specific

Please confirm that the issue/resolution isn't already documented

To Reproduce Steps to reproduce the behavior:

  1. Install Linux on Apple Silicon (Fedora Asahi Remix)
  2. Install Snap
  3. Install Codium via Snap
  4. Start Codium

Expected behavior Start Codium

Desktop (please complete the following information):

Additional context The Flatpak version has no issues starting.

segabor commented 11 months ago

The very same issue hits my Raspberry Pi 5 as well.

segabor@bigfive:~ $ codium
/snap/codium/366/usr/lib/aarch64-linux-gnu/gdk-pixbuf-2.0/gdk-pixbuf-query-loaders: error while loading shared libraries: libgmodule-2.0.so.0: ELF load command alignment not page-aligned
/snap/codium/366/usr/share/codium/bin/../codium: error while loading shared libraries: libffmpeg.so: ELF load command alignment not page-aligned

OS: Raspberry OS 64 bit (Debian 12 based). Install Command: sudo snap install codium --classic

janvhs commented 11 months ago

I think one has to update the snap runtime to core20 or even better core22.

I tried that, but building the Snap fails with an error that certain packages are not found.

github-actions[bot] commented 5 months ago

This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment, and we'll keep it open. If you have any new additional information, please include it with your comment!

github-actions[bot] commented 4 months ago

This issue has been closed due to inactivity, and will not be monitored. If this is a bug and you can reproduce this issue, please open a new issue.