pi-apps icon indicating copy to clipboard operation
pi-apps copied to clipboard

Lokinet crashes on launch

Open theofficialgman opened this issue 2 years ago • 11 comments

Confirmations

  • [X] I searched for similar bug reports in https://github.com/Botspot/pi-apps/issues and found none were relevant.
  • [X] I tried updating Pi Apps and the issue is still not fixed. How to update Pi Apps?

What happened?

lokinet crashes on launch

Description

lokinet apt repo has official bionic binaries. these appear to be broken currently. need testing for other users to see if lokinet is functional on arm64 buster or bullseye or if its broken on everything

What is your operating system?

L4T Ubuntu Bionic

(Optional) Error log? Terminal output? Debug messages?

/usr/bin/lokinet-gui --notray
------ Lokinet Control Panel ------
Compile-time Qt Version: 5.9.5
Run-time Qt Version: 5.9.5
nohide:  T
notray:  T
Gtk-Message: 17:20:18.852: Failed to load module "canberra-gtk-module"
lokinet-gui: /drone/src/oxenmq/jobs.cpp:114: void oxenmq::OxenMQ::_queue_timer_job(int): Assertion `b->size() == std::make_pair(size_t{1}, thread > 0)' failed.
Aborted (core dumped

theofficialgman avatar May 17 '22 21:05 theofficialgman

~~I can't seem to find any reference to the lokinet GUI for linux in the upstream github repo, only on macos and windows. maybe it was removed or added by the oxen deb repo maintainer?~~

ah yes it was removed, the qt5 GUI is no more, the new gui upstream is in a separate repo and is electron based https://github.com/oxen-io/lokinet-gui . they have not made any debs for the new GUI yet 😢

the old gui (the one still in the deb packages) is here: https://github.com/oxen-io/lokinet-control-panel/tree/master it appears it was too much work for them as they had a specific branch per debian/ubuntu release

theofficialgman avatar May 18 '22 20:05 theofficialgman

@necro-nemesis

Botspot avatar May 18 '22 20:05 Botspot

v0.9.9 is anticipated to release in the next couple weeks once packages are built for the various distros and will feature a revised GUI built on Electron. Installer changes will be forthcoming to manage these updates.

Ubuntu/Bionic currently is a build target for the old GUI. https://github.com/oxen-io/lokinet-control-panel/tree/ubuntu/bionic so the error is not related to the repo not having a bionic target for the old GUI.

As stated major changes are imminent and will be addressed when released.

necro-nemesis avatar May 19 '22 01:05 necro-nemesis

@necro-nemesis I've looked at the lokinet electron repo. unfortunatly, due to electron 11.X used there, this can not be included on modern linux distros https://github.com/oxen-io/lokinet-gui/blob/569f90ad88fd820aa47825bbac4b34795425c6ce/package.json#L85 . you need to upgrade to a minimum of electron 13 https://github.com/electron/electron/pull/31091. refer to the blacklist below

gmans electron blacklist: electron 18.0.0-18.2.3 electron 19.0.0-19.0.4 electron < 13.5.0

theofficialgman avatar Jun 04 '22 00:06 theofficialgman

@necro-nemesis, I have pinged you several times over the past few months whenever I spot a Lokinet installation failure in the Botspot Software Discord server.

Have you checked Discord recently and are you still reviewing these logs?

Botspot avatar Oct 08 '22 00:10 Botspot

currently hidden in the GUI of pi-apps since it quite literally has near 0 successful installs over the past many months

I see that the new electron GUI has just released 5 days ago https://github.com/oxen-io/lokinet/releases/tag/v0.9.10... however I'm in favor of removing this from pi-apps as I have no interest in maintaining or testing it, unless another maintainer would like to do so.

theofficialgman avatar Nov 20 '22 05:11 theofficialgman

The latest version of Lokinet including the new GUI just dropped into the repo as of Friday where Pi-Apps acquires it from. It will require some testing on various platforms including pi that are reliant on the repo hosting Lokinet to test it's installation from there. Although tagged 5 days ago it took that additional amount time for it to be added to the repo.

necro-nemesis avatar Nov 20 '22 15:11 necro-nemesis

I took a look at the repo yesterday and found lokinet-gui to only be available for amd64. no arm64 or armhf releases https://deb.oxen.io/pool/main/l/lokinet-gui/. the releases for the GUI in the pool/main/l/loki-network-control-panel are only the old GUI.

in addition 18.04 support appears to not be there for all packages and all architectures

theofficialgman avatar Nov 20 '22 16:11 theofficialgman

the issues with the arm build is related to some idiosyncrasies in node/electron. there is/was an old abandoned npm module or two that are holding version back a bit. we are planning on addressing these in the next up coming tag.

majestrate avatar Nov 20 '22 18:11 majestrate

For now Lokinet is hidden in Pi-Apps. Existing users (assuming there are any) will receive no change, but new users will not be able to find it.

Botspot avatar Nov 22 '22 22:11 Botspot

I'm waiting on the electron dev to build 64 bit ARM version of the gui for addition to the repo before reworking the installer. I see where the app is hidden and appreciate how to gain access to it within my own fresh installation of Pi-Apps when I am able to proceed with required changes. From my testing and discussions it appears this is the last step required before Pi-Apps can be reworked to support both Lokinet ARM 32 and 64 bit. Currently lokinet and lokinet-bin 32 and 64 bit are the latest versions (v0.9.11) in the repo but the repo currently lacks the final 64 bit electron gui build to fully support Pi-Apps as a desktop application.

necro-nemesis avatar Dec 16 '22 23:12 necro-nemesis