AnotherRedisDesktopManager icon indicating copy to clipboard operation
AnotherRedisDesktopManager copied to clipboard

[Feature request] Linux arm64 build

Open cmalvi opened this issue 1 year ago • 11 comments

OS

Fedora arm64 (Asahi)

ISSUE DESCRIPTION

Tried building myself but the resulted appimage gave segmentation fault

cmalvi avatar Feb 04 '24 20:02 cmalvi

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

qishibo avatar Feb 05 '24 04:02 qishibo

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

cmalvi avatar Feb 05 '24 07:02 cmalvi

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

qishibo avatar Feb 05 '24 10:02 qishibo

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

cmalvi avatar Feb 06 '24 17:02 cmalvi

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

qishibo avatar Feb 07 '24 01:02 qishibo

No only Linux arm64

On Wed, Feb 7, 2024 at 02:36, qii404 @.***(mailto:On Wed, Feb 7, 2024 at 02:36, qii404 < wrote:

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

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

cmalvi avatar Feb 07 '24 06:02 cmalvi

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

cmalvi avatar Feb 20 '24 20:02 cmalvi

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 https://github.com/qishibo/AnotherRedisDesktopManager/issues/1014

qishibo avatar Feb 21 '24 02:02 qishibo

Tried with same result

On Wed, Feb 21, 2024 at 03:39, qii404 @.***(mailto:On Wed, Feb 21, 2024 at 03:39, qii404 < wrote:

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

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

cmalvi avatar Feb 21 '24 06:02 cmalvi

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?

qishibo avatar Feb 21 '24 09:02 qishibo

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

cmalvi avatar Feb 21 '24 21:02 cmalvi