lightningrodlabs / we-tauri

Creating a group coherence with holochain apps
https://lightningrodlabs.org/we
Other
43 stars 5 forks source link

We crashes when enabling developer mode #41

Open guillemcordoba opened 10 months ago

guillemcordoba commented 10 months ago

I get this error in the logs:

Launching lair keystore process...
Launching keystore for path: "/home/guillem/.local/share/org.lightningrodlabs.we-alpha/0.6.x/default/keystore"
Launching lair sidecar binary...
Writing password...
Password written...
Trying to print lair version...
Launched lair keystore at url unix:///tmp/lair.kIeQJInpeapw_/socket?k=Er28JP1R4lNmUReHFFnp7AJK8qkf16_wUO1g6EzEoGc
Launched lair keystore process.
Spawned lair keystore and got MetaLairClient.
Wrote conductor config.
Launched holochain process.
############
Launched holochain with app port 18542 and admin port 23916
thread 'tokio-runtime-worker' panicked at src-tauri/src/commands/devhub.rs:83:25:
index out of bounds: the len is 0 but the index is 0

Os: Ubuntu 22.04 We version: v0.6.2-holochain 0.2.3-beta-rc.1

Steps to reproduce:

  1. Start we.
  2. Select "Install Applet"
  3. Select "Enable developer mode"
  4. We crashes
matthme commented 10 months ago

Oh, looks like that got introduced with PR #39. Should have tested it better before releasing...

guillemcordoba commented 10 months ago

Oh shoot what? So sorry about this...

matthme commented 10 months ago

It was not an easy one to spot without testing. The problem is that it filtered by disabled apps and then took the public key from the first app in the ListAppsResponse (and there are no other disabled apps at that point). But actually, taking the same pubkey for the devhub as for appstore doesn't work anyway because the same cell (portal) can't be installed twice.

guillemcordoba commented 10 months ago

Ohhh... great catch. Let me know if you need help with this!

matthme commented 10 months ago

I just switched back to generating a random public key for the devhub. I think there's no way around it anyway without getting cell collisions...