David Stolarsky
05/12/2019, 9:30 AMUncaught Kotlin exception: kotlin.native.IncorrectDereferenceException: illegal attempt to access non-shared kotlin.collections.HashMap@8015aa08 from other thread
How do I go about avoiding this? Can I simply make the HashMap in question shared? Immutable? Freeze it? Throw a bunch of DispatchQueue.main.async { } wrappers everywhere?
The stack trace goes from Kotlin to Swift and back to Kotlin at least once, likely more than once.
The thread that is crashing is com.google.firebase.auth.globalWorkQueueDominaezzz
05/12/2019, 10:54 AM.freeze() it.kpgalligan
05/12/2019, 7:21 PMDavid Stolarsky
05/13/2019, 1:51 AM.freeze() available?kpgalligan
05/13/2019, 1:58 AMDavid Stolarsky
05/13/2019, 2:26 AMexpect fun freeze(x: Any): Any and actual fun freeze(x: Any) = x.freeze()?David Stolarsky
05/13/2019, 2:30 AM.freeze() does not exist on the android side i seekpgalligan
05/13/2019, 2:52 AMkpgalligan
05/13/2019, 2:53 AMPaul Idstein
05/13/2019, 8:52 AM