holochain / launcher

Desktop launcher to install and use Holochain apps locally
262 stars 22 forks source link

Launcher crashes in second run with only one app installed #217

Open guillemcordoba opened 5 months ago

guillemcordoba commented 5 months ago

Describe the bug After installing the launcher and launching it for the first time, and installing GameZ in it and trying reboot the launcher, it crashes with this error:

guillem@guillems-thinkpad:~$ cd Baixades/
guillem@guillems-thinkpad:~/Baixades$ holochain-v0.2.3-beta-rc.1 ^C
guillem@guillems-thinkpad:~/Baixades$ ./holochain-launcher-electron-0.0.13.AppImage

(process:196177): GLib-CRITICAL **: 18:54:28.644: g_file_test: assertion 'filename != NULL' failed
GOT CLI ARGS:  {}
VALIDATED CLI ARGS:  {
  profile: undefined,
  holochainVersion: { type: 'built-in', version: '0.2.6-rc.0' },
  lairBinaryPath: '/tmp/.mount_holochfqWP0p/resources/app.asar.unpacked/resources/bins/lair-keystore-v0.4.2',
  useDefaultPartition: false,
  bootstrapUrl: undefined,
  signalingUrl: undefined,
  rustLog: undefined,
  wasmLog: undefined
}
APP PATH:  /tmp/.mount_holochfqWP0p/resources/app.asar
RUNNING ON PLATFORM:  linux
defaultLogsPath:  /home/guillem/.config/holochain-launcher-electron/logs
defaultUserDataPath:  /home/guillem/.config/holochain-launcher-electron
BEING RUN IN __dirnmane:  /tmp/.mount_holochfqWP0p/resources/app.asar/out/main
(node:196201) UnhandledPromiseRejectionWarning: Error: ERR_FAILED (-2) loading 'app://-'
    at rejectAndCleanup (node:electron/js2c/browser_init:2:82635)
    at WebContents.stopLoadingListener (node:electron/js2c/browser_init:2:83022)
    at WebContents.emit (node:events:529:35)
(Use `holochain-launcher-electron --trace-warnings ...` to show where the warning was created)
(node:196201) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:196201) UnhandledPromiseRejectionWarning: Error: ERR_FAILED (-2) loading 'app://-'
    at rejectAndCleanup (node:electron/js2c/browser_init:2:82635)
    at WebContents.stopLoadingListener (node:electron/js2c/browser_init:2:83022)
    at WebContents.emit (node:events:529:35)
(node:196201) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)

Nothing else shows up and the process just terminates without showing any windows.

To Reproduce Steps to reproduce the behavior:

  1. Download https://github.com/holochain/launcher-electron/releases/tag/v0.0.13
  2. Install happ https://github.com/holochain-apps/gamez/releases/download/v0.3.12/gamez.webhapp
  3. Try to reboot the launcher

Desktop (please complete the following information):