Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error while loading shared libraries: libcrypt.so.1 on latest Arch Linux, and fails to boot on X11 plasma #2331

Closed
ericfont opened this issue Jul 26, 2022 · 13 comments

Comments

@ericfont
Copy link

When I execute the AppImage on my arch linux machine (5.15.55-2-lts), I get:

./Mu_Editor-1.1.1-x86_64.AppImage 
/tmp/.mount_Mu_EdiPjLa4a/usr/bin/python3.8: error while loading shared libraries: libcrypt.so.1: cannot open shared object file: No such file or directory

My machine has /usr/lib/libcrypt.so.2.0.0 as well as links to it named /usr/lib/libcrypt.so and /usr/lib/libcrypt.so.2

@carlosperate carlosperate transferred this issue from mu-editor/docker-mu-appimage Aug 16, 2022
@carlosperate
Copy link
Member

Thanks for the report @ericfont. I've moved the issue from the https://github.com/mu-editor/docker-mu-appimage/ issue tracker to the mu-editor/mu, as that's were we are looking into Mu issues.

@carlosperate
Copy link
Member

If you install libxcrypt-compat package do you get the same error?

@ericfont
Copy link
Author

After installing libxcrypt-compat, I no longer get the same error, however I now get a segfault:

./Mu_Editor-1.1.1-x86_64.AppImage 
No settings file found at /home/e/.local/share/mu/venv.json; skipping
Segmentation fault (core dumped)

@carlosperate
Copy link
Member

Thanks for the quick test! Okay, we are getting one step closer.

Are you using Wayland or X11? Does the X11 seg fault happens when running the appimage with this env variable set?

QT_QPA_PLATFORM=wayland Mu_Editor-1.1.1-x86_64.AppImage

Or when using the AppImage from this PR build?
https://github.com/mu-editor/mu/actions/runs/2699412265

@ericfont
Copy link
Author

I was on X11. Here is output when setting the env variable:

QT_QPA_PLATFORM=wayland ./Mu_Editor-1.1.1-x86_64.AppImage
No settings file found at /home/e/.local/share/mu/venv.json; skipping
Failed to create wl_display (No such file or directory)
qt.qpa.plugin: Could not load the Qt platform plugin "wayland" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl, xcb.

Aborted (core dumped)

@ericfont
Copy link
Author

here is output from PR build 2699412265 on X11:

QT_QPA_PLATFORM=X11 ./Mu_Editor-1.1.1-x86_64.AppImage
No settings file found at /home/e/.local/share/mu/venv.json; skipping
qt.qpa.plugin: Could not find the Qt platform plugin "x11" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl, xcb.

Aborted (core dumped)

@ericfont
Copy link
Author

FYI, I also have wayland installed on this same computer. Earlier I ran with an X11 plasma desktop. However if I now relogin and start in wayland plasma desktop, both of the Mu-editor app images seem to work (it at least opens at least to the python editor...haven't tested the program further).

@carlosperate
Copy link
Member

And if you run this?

QT_QPA_PLATFORM=xcb ./Mu_Editor-1.1.1-x86_64.AppImage

I assume that'd likely throw the same seg fault at before?

@ericfont ericfont changed the title error while loading shared libraries: libcrypt.so.1 on latest Arch Linux error while loading shared libraries: libcrypt.so.1 on latest Arch Linux, and fails to boot on X11 plasma Aug 17, 2022
@ericfont
Copy link
Author

I get a segfault with =xcb, on both the official AppImage and run 2699412265's AppImage. Both when booted into X11 or wayland.

@carlosperate
Copy link
Member

Okay, so it looks like the seg happens on X11, but it works on Wayland (with the env variable, or without it if using the PR AppImage, which sets the flag internally).

We'll need to look into why that might be happening in Arch, as it seems to work fine in X11 in Ubuntu 20.04 and 22.04.

Thanks for all the testing!

@carlosperate
Copy link
Member

carlosperate commented Nov 16, 2022

I think maybe you are seeing this issue as well: #2318

I've created a test AppImage in CI, and it seems to work for Ubuntu 22.04 with X11. Would you be able to test it to see if it works on your environment as well? It'd be really appreciated.

You'll need to be logged into GitHub to be able to click on the download link from this page:
https://github.com/mu-editor/mu/actions/runs/3479069676
image

@ericfont
Copy link
Author

Unfortunately I deleted my arch linux boot and so can't test. Since you say you were able to reproduce this issue in an Ubuntu 22.04 VM configured to run with X11, and that your new build doesn't have that issue on that VM, then I am confident that arch linux X11 is fixed as well.

@agilum
Copy link

agilum commented Nov 18, 2022

Hi carlosperate, Your created mu-editor AppImage (Mu_Editor-1.2.0-x86_64.AppImage) runs on Manjaro (Arch based) while the official MuEditor-Linux-1.2.0-x86_64.AppImage does not. Segmentation fault. libxcrypt-compat is installed.

Rgds

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants