Open zmanian opened 5 years ago
Do you know a way to reproduce this crash? Is there a specific room that regularly crashes like this?
Interesting. This happened in the first room I clicked on but I just started the app up again and it's been stable for a few minutes. Will see if I can reproduce.
I have this bug too. I changed the login server (probably, to nothing, hoping it will try to search for it automatically), the the app crashes. Now I cannot start it - it always crashes on start:
Fatal error: Unexpectedly found nil while unwrapping an Optional value
Illegal instruction: 4
I tried to clean caches and preferences, but still no chance to start the application again :(
The exception is thrown in refreshUsernamePlaceholder()
on the following line:
let homeserver = URL(string: defaults.string(forKey: "Homeserver") ?? "https://matrix.org")!.host ?? "matrix.org"
I could successfully start Seaglass with the fillowing fix:
let homeserver = URL(string: defaults.string(forKey: "Homeserver") ?? "https://matrix.org")?.host ?? "matrix.org"
@Peter2121 , what file is that line found in?
LoginViewController.swift
Is there a workaround for this that doesn't involve building from source? A config file somewhere that can be changed or deleted, perhaps?
@Peter2121 I don't think this issue is related to your crash. This issue (#100) has to do with viewing media after login. I filed #118 for your issue.
@dericke It is unclear which issue you are experiencing. If you open Terminal and type in defaults write eu.neilalexander.seaglass "Homeserver" "https://matrix.org"
and that fixes your issue then you are experiencing #118.
Thanks @aaronraimist, that did it for me.