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

Can't run appimage #7

Open
BenBlumer opened this issue Sep 27, 2024 · 3 comments
Open

Can't run appimage #7

BenBlumer opened this issue Sep 27, 2024 · 3 comments

Comments

@BenBlumer
Copy link

BenBlumer commented Sep 27, 2024

Does this issue occur when all extensions are disabled?: Can't run the first time. No extensions enabled -- unless it's picking up extensions from my existing vscode installation.

  • VS Code Version: haystack-editor-0.18.AppImage

  • OS Version: Ubuntu 24.04.1 LTS

Steps to Reproduce:

  1. chmod +x haystack-editor-0.18.AppImage. Get error:
 ./haystack-editor-0.18.AppImage 
dlopen(): error loading libfuse.so.2

AppImages require FUSE to run. 
You might still be able to extract the contents of this AppImage 
if you run it with the --appimage-extract option. 
See https://github.com/AppImage/AppImageKit/wiki/FUSE 
for more information
  1. Install Fuse:
    sudo add-apt-repository universe
    sudo apt install libfuse2t64

  2. Run the app image again:

$ ./haystack-editor-0.18.AppImage 
sed: /tmp/.mount_haystagAJKR9/lib/x86_64-linux-gnu/libselinux.so.1: no version information available (required by sed)
haystack-editor: /tmp/.mount_haystagAJKR9/lib/x86_64-linux-gnu/libselinux.so.1: no version information available (required by /lib/x86_64-linux-gnu/libgio-2.0.so.0)
haystack-editor: /tmp/.mount_haystagAJKR9/lib/x86_64-linux-gnu/libselinux.so.1: no version information available (required by /lib/x86_64-linux-gnu/libmount.so.1)
The setuid sandbox is not running as root. Common causes:
  * An unprivileged process using ptrace on it, like a debugger.
  * A parent process set prctl(PR_SET_NO_NEW_PRIVS, ...)
Failed to move to new namespace: PID namespaces supported, Network namespace supported, but failed: errno = Operation not permitted
[6172:0927/110927.638833:FATAL:zygote_host_impl_linux.cc(202)] Check failed: . : Invalid argument (22)
/tmp/.mount_haystagAJKR9/usr/share/haystack-editor/haystack-editor: /tmp/.mount_haystagAJKR9/lib/x86_64-linux-gnu/libselinux.so.1: no version information available (required by /lib/x86_64-linux-gnu/libgio-2.0.so.0)
/tmp/.mount_haystagAJKR9/usr/share/haystack-editor/haystack-editor: /tmp/.mount_haystagAJKR9/lib/x86_64-linux-gnu/libselinux.so.1: no version information available (required by /lib/x86_64-linux-gnu/libmount.so.1)
Trace/breakpoint trap (core dumped)

Note: Other app images (e.g. "Libre Office Fresh Basic") work fine.

@jay2142
Copy link
Contributor

jay2142 commented Oct 1, 2024

Looking into this

@jay2142
Copy link
Contributor

jay2142 commented Oct 1, 2024

sed: /tmp/.mount_haystajqF5is/lib/x86_64-linux-gnu/libselinux.so.1: no version information available (required by sed)
haystack-editor: /tmp/.mount_haystajqF5is/lib/x86_64-linux-gnu/libselinux.so.1: no version information available (required by /lib/x86_64-linux-gnu/libgio-2.0.so.0)
haystack-editor: /tmp/.mount_haystajqF5is/lib/x86_64-linux-gnu/libselinux.so.1: no version information available (required by /lib/x86_64-linux-gnu/libmount.so.1)
/tmp/.mount_haystajqF5is/usr/share/haystack-editor/haystack-editor: /tmp/.mount_haystajqF5is/lib/x86_64-linux-gnu/libselinux.so.1: no version information available (required by /lib/x86_64-linux-gnu/libgio-2.0.so.0)
/tmp/.mount_haystajqF5is/usr/share/haystack-editor/haystack-editor: /tmp/.mount_haystajqF5is/lib/x86_64-linux-gnu/libselinux.so.1: no version information available (required by /lib/x86_64-linux-gnu/libmount.so.1)
/tmp/.mount_haystajqF5is/usr/share/haystack-editor/haystack-editor: /tmp/.mount_haystajqF5is/lib/x86_64-linux-gnu/libselinux.so.1: no version information available (required by /lib/x86_64-linux-gnu/libgio-2.0.so.0)
/tmp/.mount_haystajqF5is/usr/share/haystack-editor/haystack-editor: /tmp/.mount_haystajqF5is/lib/x86_64-linux-gnu/libselinux.so.1: no version information available (required by /lib/x86_64-linux-gnu/libmount.so.1)
/proc/self/exe: /tmp/.mount_haystajqF5is/lib/x86_64-linux-gnu/libselinux.so.1: no version information available (required by /lib/x86_64-linux-gnu/libgio-2.0.so.0)
/proc/self/exe: /tmp/.mount_haystajqF5is/lib/x86_64-linux-gnu/libselinux.so.1: no version information available (required by /lib/x86_64-linux-gnu/libmount.so.1)
[1002659:1001/191957.309808:ERROR:viz_main_impl.cc(196)] Exiting GPU process due to errors during initialization
[]
[]
[1002717:1001/191957.602685:ERROR:viz_main_impl.cc(196)] Exiting GPU process due to errors during initialization
[]
[main 2024-10-01T19:19:57.689Z] update#setState disabled
[main 2024-10-01T19:19:57.707Z] update#ctor - updates are disabled as there is no update URL
[1002770:1001/191957.956453:ERROR:viz_main_impl.cc(196)] Exiting GPU process due to errors during initialization
[1002760:1001/191958.162055:ERROR:command_buffer_proxy_impl.cc(131)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
[1002815:1001/191959.812635:ERROR:gl_utils.cc(424)] [.WebGL-0x397004234000]GL Driver Message (OpenGL, Performance, GL_CLOSE_PATH_NV, High): GPU stall due to ReadPixels
[1002815:1001/191959.826876:ERROR:gl_utils.cc(424)] [.WebGL-0x39700416a900]GL Driver Message (OpenGL, Performance, GL_CLOSE_PATH_NV, High): GPU stall due to ReadPixels
[1002815:1001/191959.935479:ERROR:gl_utils.cc(424)] [.WebGL-0x397004234000]GL Driver Message (OpenGL, Performance, GL_CLOSE_PATH_NV, High): GPU stall due to ReadPixels
[main 2024-10-01T19:19:59.999Z] vscode-file: Refused to load resource /tmp/.mount_haystajc5VGY/usr/share/haystack-editor/resources/app/extensions/theme-seti/icons/seti.woff from vscode-file: protocol (original URL: vscode-file://vscode-app/tmp/.mount_haystajc5VGY/usr/share/haystack-editor/resources/app/extensions/theme-seti/icons/seti.woff)
[1002815:1001/192000.143999:ERROR:gl_utils.cc(424)] [.WebGL-0x397004234000]GL Driver Message (OpenGL, Performance, GL_CLOSE_PATH_NV, High): GPU stall due to ReadPixels (this message will no longer repeat)

For reference, This is the output I get when running the AppImage on the Ubuntu 22 AWS instance (no GPU) that I have on hand. Haystack runs normally in this scenario.

Main takeaway for me is that the libselinux.so.1 messages are expected and are not the cause of the failure. Continuing to investigate.

@jay2142
Copy link
Contributor

jay2142 commented Oct 3, 2024

Set up an Ubuntu 24.04 instance with a display, and was able to reproduce the issue.

For the following error:

The setuid sandbox is not running as root. Common causes:
  * An unprivileged process using ptrace on it, like a debugger.
  * A parent process set prctl(PR_SET_NO_NEW_PRIVS, ...)

I am able to get past it by passing the --no-sandbox argument to the AppImage. Does this work for you?

Afterwards, I encounter another issue. Not sure if you will encounter this.
Screenshot 2024-10-02 at 10 08 53 PM

In case you do run into this, I was able to solve this with the following:

export XDG_DATA_HOME="$HOME/.local/share:/root/.local/share:/usr/local/share/:/usr/share/"
export XDG_DATA_DIRS="$HOME/.local/share:/root/.local/share:/usr/local/share/:/usr/share/"

based on the solution described here: bottlesdevs/Bottles#230 (comment)

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

No branches or pull requests

2 participants