Closed oxwivi closed 1 year ago
Seeing the same thing on a Librem 5 running PureOS.
Confirmed, same here on pinephone with arch-linux plasma-mobile.
Could it be that this is an issue coming from Electron only allowing, per default, 6 connections per host?
From what I understand, the communication between the axolotl backend and frontend is done with WebSockets.
Electron offers a --ignore-connections-limit
flag - perhaps setting the localhost domain as without limits could be a solution.
https://www.electronjs.org/docs/api/command-line-switches#--ignore-connections-limitdomains
https://github.com/electron/electron/blob/master/shell/common/options_switches.cc#L260
Did some initial testing, and I am starting to believe that this issue is not related to Electron, but to the go-helper go-astilectron
which is used. The below issue mentions some problems regarding event handlers.
https://github.com/asticode/go-astilectron/issues/267
Another method might be to provide a known working Electron as a bundle bundle and not rely on downloading it at startup. That would definitely increase the install size though.
https://github.com/asticode/go-astilectron-bundler
We do have a QT version of the Flatpak which can be used, which does not rely on Electron. That could potentially be seen as a workaround as well.
https://github.com/nanu-c/axolotl/blob/main/docs/INSTALL.md#qt-version
We do have a QT version of the Flatpak which can be used, which does not rely on Electron. That could potentially be seen as a workaround as well.
https://github.com/nanu-c/axolotl/blob/main/docs/INSTALL.md#qt-version
Doesn't seem like existing flatpak can switch over to the Qt version on the fly.
Unfortunately the Qt version doesn't work either for me on the pinephone.
+1 on Failed to start on Mobian Pinephone Attempted flathub repo and local build, same result as oxwivi
I am seeing the same issue on Artix Linux with the Flatpak I just downloaded.
I am seeing the same issue on Artix Linux with the Flatpak I just downloaded.
The flatpak builds on flathub are currently outdated (v0.9.9 vs v1.0.9 ) and broken. There is WIP MR for fixing that.
In the meantime it should be possible to install like this: https://github.com/nanu-c/axolotl/discussions/615
The work on a new Flathub release is completed, and in the coming days there will be a new, updated, Axolotl Flathub version ready to install (using the latest Axolotl release, v1.1.0)
This release not only uses the latest and greatest of the axolotl and axolotl-web projects, but also includes the new libraries and perhaps most importantly, bundles Electron with the installer instead of installing it when first started as was the case previously.
To test this build already, install it from the testing repository:
flatpak install --user https://dl.flathub.org/build-repo/78531/org.nanuc.Axolotl.flatpakref
Seems like the bug use of closed network connection while TCP accepting
still resides in version 1.2.0.
And lastly I tried the to run the flatpak version on my Pinephone. There it hang for 45 seconds after the time="2022/04/16 22:39:56" level=info msg="[crayfish] establishing client connection... WebSocket\n"
but then succeeded! Here is the log:
Thanks for getting back!
To rule out local issues with Electron, can you start it without Axolotl?
$HOME/.var/app/org.nanuc.Axolotl/data/vendor/electron-linux-amd64/electron https://github.com/nanu-c/axolotl/issues/433
Additionally, just as to allow for a better understanding of your systems, what Desktop Environment do they use, and are you using Wayland or not?
I'm using XFCE4 with xorg.
uname -r
: 5.15.34-1-lts
xfwm4 --version
: 4.16.1 (revision 5f61a84ad) for Xfce 4.16
$HOME/.var/app/org.nanuc.Axolotl/data/vendor/electron-linux-amd64/electron https://github.com/nanu-c/axolotl/issues/433
I'm using Phosh with wayland.
uname -r
: 5.17.2-1-danctnix
phosh --version
: 0.17.0
$HOME/.var/app/org.nanuc.Axolotl/data/vendor/electron-linux-arm64/electron https://github.com/nanu-c/axolotl/issues/433
When started via ssh:
arm64/electron https://github.com/nanu-c/axolotl/issues/433
Trace/breakpoint trap (core dumped)
When started in a terminal on the phone:
[5250:0423/163656.903352:ERROR:object_proxy.cc(623)] Failed to call method: org.freedesktop.DBus.Properties.Get: object_path= /org/freedesktop/portal/desktop: org.freedesktop.DBus.Error.InvalidArgs: No such interface “org.freedesktop.portal.FileChooser”
[5250:0423/163656.905436:ERROR:select_file_dialog_impl_portal.cc(243)] Failed to read portal version property
[5286:0423/163657.436212:ERROR:sandbox_linux.cc(377)] InitializeSandbox() called with multiple threads in process gpu-process.
Is the folder $HOME/.var/app/org.nanuc.Axolotl/
on my PinePhone from the flatpak installation? And where would electron reside when I'm using the AUR version? I could test that electron version as well. At the moment I have the AUR version uninstalled (as flatpak is working).
Flatpak Axolotl on Fedora 36, KDE Plasma and Wayland. Basically the save behavior as the last comment except for the STDOUT:
$ $HOME/.var/app/org.nanuc.Axolotl/data/vendor/electron-linux-amd64/electron https://github.com/nanu-c/axolotl/issues/433
Gtk-Message: 04:47:20.929: Failed to load module "appmenu-gtk-module"
libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
[32700:0709/044721.011540:ERROR:sandbox_linux.cc(377)] InitializeSandbox() called with multiple threads in process gpu-process.
[32700:0709/044723.526082:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 1 times!
[32700:0709/044726.362623:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 2 times!
[32700:0709/044731.454342:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 3 times!
Description
On Manjaro and Manjaro ARM, running the flatpak results in crash before any sort of UI can load:
Steps to Reproduce
.desktop
file orflatpak run
Expected behavior: [What you expect to happen] Axolotl running.
Actual behavior: [What actually happens] Axolotl crashes.
Versions
Please provide the Version as written in
Settings->About Axolotl
N/ADevice
What device or OS are you using? Manjaro/Manjaro ARM
Link to Debug Log
Please provide a link to debug from ~/.cache/upstart/application-click-textsecure.nanuc_textsecure*.log Be careful it contains sensible data N/A (Can't find it in
.var/app/org.nanuc.Axolotl
dir, doesn't seem like Axolotl got to the point of generating the log; no equivalents on host home folder outside flatpak)