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

[Feature request] Linux arm64 build #1161

Open
cmalvi opened this issue Feb 4, 2024 · 11 comments
Open

[Feature request] Linux arm64 build #1161

cmalvi opened this issue Feb 4, 2024 · 11 comments

Comments

@cmalvi
Copy link

cmalvi commented Feb 4, 2024

OS

Fedora arm64 (Asahi)

ISSUE DESCRIPTION

Tried building myself but the resulted appimage gave segmentation fault

@qishibo
Copy link
Owner

qishibo commented Feb 5, 2024

https://cowtransfer.com/s/b13db83af20f42 click link to check [ Another Redis Desktop Manager.1.6.2.AppImage ] or access cowtransfer.com and input extract code: w330qw to check;

try this package, build by electron-builder --project=dist -l -p never --arm64

@cmalvi
Copy link
Author

cmalvi commented Feb 5, 2024

Tried the appimage but same error, segmentation fault.

Maybe the problem could be the electron version used (12), due to kernel page size on asahi kernel (16k), this problem is fixed from version 19

@qishibo
Copy link
Owner

qishibo commented Feb 5, 2024

you can just modify the electron version in dist/package.json, then try to build the app again

@cmalvi
Copy link
Author

cmalvi commented Feb 6, 2024

Tried with same result.
I have no idea how to solve, i'll try in the next days when I have spare time

@qishibo
Copy link
Owner

qishibo commented Feb 7, 2024

thx a lot, did you build in an arm Linux os? or in a x86 os

@cmalvi
Copy link
Author

cmalvi commented Feb 7, 2024 via email

@cmalvi
Copy link
Author

cmalvi commented Feb 20, 2024

Here an update! I've tried updating electron to v29.0.0:

  • need export NODE_OPTIONS=--openssl-legacy-provider for npm start otherwise throws an error about ERR_OSSL_EVP_UNSUPPORTED

  • npm run electron seems to works correctly but the app doesn't render anything except a white screen due to gpu error
    [18105:0220/210223.474464:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 1 times!

EDIT: After some research i've tried to run the app without hw acceleration using --disable-gpu-compositing with the same result.
Giving a look to the unpacked folder i've seen a vulkan library: at the moment there is no vulkan support in Apple gpu driver for Linux, only OpenGL

@qishibo
Copy link
Owner

qishibo commented Feb 21, 2024

Aha thx for your try!
AppImage issues about GPU may cause this error, try this
./Another-Redis-Desktop-Manager.1.5.2.AppImage --no-sandbox every time.
or run sudo sysctl kernel.unprivileged_userns_clone=1 once and then reopen Another

ref #1014

@cmalvi
Copy link
Author

cmalvi commented Feb 21, 2024 via email

@qishibo
Copy link
Owner

qishibo commented Feb 21, 2024

Giving a look to the unpacked folder i've seen a vulkan library: at the moment there is no vulkan support in Apple gpu driver for Linux, only OpenGL

so this may a reason?

@cmalvi
Copy link
Author

cmalvi commented Feb 21, 2024

I'm not sure because it should work disabling hw acceleration.
Maybe some other packages need update to work on latest electron?

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