Open akibasocial opened 1 year ago
Symbolicated:
7 Mastonaut 0x102f5b200 closure #1 in closure #1 in SearchViewController.dispatchSearch(client:searchTerm:) (in Mastonaut) (SearchViewController.swift:127) + 1192448
8 Mastonaut 0x102ed46a4 thunk for @escaping @callee_guaranteed () -> () (in Mastonaut) (<compiler-generated>:0) + 640676
case .failure(let error): self.handle(error: error as! ClientError)
Oops.
(Apparently, this is the only other remaining place where I use as! ClientError
.)
This can also be an NSURLError
, for example:
Error Domain=NSURLErrorDomain Code=-999 "cancelled" UserInfo={NSErrorFailingURLStringKey=https://norden.social/api/v2/search?q=@chuc@librem.one&resolve=true, NSErrorFailingURLKey=https://norden.social/api/v2/search?q=@chuc@librem.one&resolve=true, _NSURLErrorRelatedURLSessionTaskErrorKey=(
"LocalDataTask <CFF4BD7E-B6D8-457C-849F-2529E223EDFA>.<21>"
), _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <CFF4BD7E-B6D8-457C-849F-2529E223EDFA>.<21>, NSLocalizedDescription=cancelled}
@akibasocial lemme know if you still see this in 1.7.0.
Not happening so far
How to reproduce
With the app open and loaded, open the search window (magnifying icon) and search for an username typing on wrong order
In my case I was looking for
@vincent@librem.one
, but I copied@librem.one/@vincent
then I removed the@vincent
from the textbox and started writing it at the beggining:@vinc...@librem.one
at some point the app crashesTried with other usernames, always typing the username with the domain already written
The way it happens looks like it's related somehow with typing another character while the app is still searching the previous text
Can reproduce it multiple times
Full log