figma-linux
figma-linux copied to clipboard
/opt/figma-linux/libstdc++.so.6: version `GLIBCXX_3.4.29' not found
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.
I just delete that file and no more lags on opened document.
The useless and problematic files are:
-
libstdc++.so.6
-
libm.so.6
-
libpng16.so.16
-
libz.so.1
-
libvulkan.so.1
- the whole
lib
directory - the whole
usr
directory
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
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.
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:
- it downloads a zip and extracts it to /opt (this is okay but the package should've been named
figma-linux-bin
); - it does not care about the system's electron installation (using that reduces package size dramatically);
- it does not strip unnecessary or out of date libraries, as we saw.
create symlink from /usr/lub/libstdc++.so.6
what does this means?
i have removed /opt/figma-linux/libstdc++.so.6 this but now don't know what to do next
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.
Check new release v0.9.6, that removed libstdc++. Works for me
Great!