Figma-Linux / figma-linux

Figma is the first interface design tool based in the browser, making it easier for teams to create software. Join us in https://t.me/figma_linux
GNU General Public License v2.0
2.71k stars 164 forks source link

/opt/figma-linux/libstdc++.so.6: version `GLIBCXX_3.4.29' not found #211

Open exdeniz opened 3 years ago

exdeniz commented 3 years ago

figma-linux 0.7.4 from AUR

MESA-LOADER: failed to open radeonsi: /opt/figma-linux/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /usr/lib/dri/radeonsi_dri.so) (search paths /usr/lib/dri)
failed to load driver: radeonsi
MESA-LOADER: failed to open kms_swrast: /opt/figma-linux/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /usr/lib/dri/kms_swrast_dri.so) (search paths /usr/lib/dri)
failed to load driver: kms_swrast
MESA-LOADER: failed to open swrast: /opt/figma-linux/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /usr/lib/dri/swrast_dri.so) (search paths /usr/lib/dri)
failed to load swrast driver
libEGL warning: MESA-LOADER: failed to open radeonsi: /opt/figma-linux/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /usr/lib/dri/radeonsi_dri.so) (search paths /usr/lib/dri)

libEGL warning: MESA-LOADER: failed to open swrast: /opt/figma-linux/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /usr/lib/dri/swrast_dri.so) (search paths /usr/lib/dri)

MESA-LOADER: failed to open radeonsi: /opt/figma-linux/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /usr/lib/dri/radeonsi_dri.so) (search paths /usr/lib/dri)
failed to load driver: radeonsi
MESA-LOADER: failed to open kms_swrast: /opt/figma-linux/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /usr/lib/dri/kms_swrast_dri.so) (search paths /usr/lib/dri)
failed to load driver: kms_swrast
MESA-LOADER: failed to open swrast: /opt/figma-linux/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /usr/lib/dri/swrast_dri.so) (search paths /usr/lib/dri)
failed to load swrast driver

Fixed delete /opt/figma-linux/libstdc++.so.6 and create symlink from /usr/lub/libstdc++.so.6. After OpenGL work fine.

XEmpty commented 3 years ago

I just delete that file and no more lags on opened document.

NyaomiDEV commented 3 years ago

The useless and problematic files are:

For cleanness' sake, the package could also omit the icons folder, since all icons should be moved to the appropriate location.

The PKGBUILD should have some instructions that strip them before packaging the Arch package

EDIT: I looked at the actual package and there are a lot of things that could be dropped! This is insane bloat on the system

143mailliw commented 3 years ago

This seems to be because they're building the snap in a really poor fashion. Instead of packaging the snap manually, they should delete all of the libraries except for libfreetype.so.6 as to prevent unnecessary (and right now harmful, as it breaks GPU acceleration) inclusion of libraries, and then use electron-builder's snap feature to build Snap packages. The libraries should be packaged by specifying the Ubuntu packages instead of including them in the folder with the program.

Deleting these files does seem to have no effect on the program's operation, at least on Arch.

NyaomiDEV commented 3 years ago

All in all, it isn't really good to include libs in the repo at all

and the AUR package should be redone for so many reasons, but to cite a few:

sudhanshuprasad2002 commented 2 years ago

create symlink from /usr/lub/libstdc++.so.6

what does this means?

sudhanshuprasad2002 commented 2 years ago

i have removed /opt/figma-linux/libstdc++.so.6 this but now don't know what to do next

mmirus commented 2 years ago

I added a post-install hook to remove the list of files in the earlier comment after installation/upgrade:

[Trigger]
Operation = Install
Operation = Upgrade
Type = Package
Target = figma-linux

[Action]
When = PostTransaction
Exec = /bin/sh -c "rm -r /opt/figma-linux/libstdc++.so.6 /opt/figma-linux/libm.so.6 /opt/figma-linux/libpng16.so.16 /opt/figma-linux/libz.so.1 /opt/figma-linux/libvulkan.so.1 /opt/figma-linux/lib/ /opt/figma-linux/usr/"

I've only tested it with installation so far.

snarkyalyx commented 2 years ago

Check new release v0.9.6, that removed libstdc++. Works for me

mmirus commented 2 years ago

Great!