amethyst icon indicating copy to clipboard operation
amethyst copied to clipboard

Amethyst crashes on start after altering relay list

Open DireMunchkin opened this issue 2 years ago • 10 comments

Hello, after the update to 0.10.7 I updated my relay list. This appears to have caused Amethyst to crash consistently though. After I published the new relay list from Astral, now Amethyst crashes less than a second after opening the app.

My pubkey is npub1mxrt3fyvaay4plrz7lwzurf80jjs2atmt2nn7z2ekgr9necl0jkqekkyq5 so you can see what my relay list is.

DireMunchkin avatar Jan 26 '23 13:01 DireMunchkin

This is still present in 0.11.0

DireMunchkin avatar Jan 27 '23 16:01 DireMunchkin

Are you going back and forth between the APK and the Google Play release?

If so, see if going into Settings/Apps, choose Amethyst and clear storage and cache. Different signatures between Google Store and APK encrypt the information with different keys and the app is not able to see the previous user. This will crash on opening.

vitorpamplona avatar Jan 27 '23 17:01 vitorpamplona

I had to uninstall 0.10.7 entirely to try 0.11.0 due to something about conflicting APK signatures. I'm not going back and forth. Clearing localstorage does nothing, it still crashes instantly after start if I've input my pubkey.

DireMunchkin avatar Jan 27 '23 17:01 DireMunchkin

Ohhh your relay list has one item with a space before the address: " wss://nostr-relay.untethr.me"

vitorpamplona avatar Jan 27 '23 17:01 vitorpamplona

Hmm, okay. I tried removing that relay but it doesn't really seem to improve the stability in Amethyst even after clearing storage and logging back in.

DireMunchkin avatar Jan 27 '23 17:01 DireMunchkin

I will release a version to trim the url in case this happens.

You still have other 2 addresses with space: " wss://relay.nostr.info" " wss://nostr.coinos.io"

vitorpamplona avatar Jan 27 '23 17:01 vitorpamplona

Ok thanks. You can't really see leading whitespace in most web clients.

DireMunchkin avatar Jan 27 '23 17:01 DireMunchkin

Please @YellowWords does this issue still occur?

KotlinGeekDev avatar Jan 31 '23 12:01 KotlinGeekDev

Latest version it seems to work well - Although it maybe displays a bit weird in the relay list, maybe trim that string as well? Screenshot_20230131-132751

DireMunchkin avatar Jan 31 '23 12:01 DireMunchkin

Oh, I see. OK.

KotlinGeekDev avatar Jan 31 '23 15:01 KotlinGeekDev