I got this crash after a few seconds of browsing the map. I had previously opened and closed the Settings page, if that's relevant.
Version is 1.6.0 (not 1.7.1) due to #63.
java.lang.IllegalStateException: Fragment ElementDetailsFragment{71c75bb} (snip) not attached to a context.
at androidx.fragment.app.Fragment.requireContext(SourceFile:18)
at net.pfiers.osmfocus.view.fragments.ElementDetailsFragment$elementDetailsVM$2.invoke(SourceFile:10)
at kotlin.SynchronizedLazyImpl.getValue(SourceFile:21)
at net.pfiers.osmfocus.view.fragments.ElementDetailsFragment$fetchAndAddUrlsToTag$1.invokeSuspend(SourceFile:49)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(SourceFile:9)
at kotlinx.coroutines.DispatchedTask.run(SourceFile:115)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(SourceFile:92)
Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@e7b916, Dispatchers.Default]java.lang.IllegalStateException: Fragment ElementDetailsFragment{71c75bb} (snip) not attached to a context.
at androidx.fragment.app.Fragment.requireContext(SourceFile:18)
at net.pfiers.osmfocus.view.fragments.ElementDetailsFragment$elementDetailsVM$2.invoke(SourceFile:10)
at kotlin.SynchronizedLazyImpl.getValue(SourceFile:21)
at net.pfiers.osmfocus.view.fragments.ElementDetailsFragment$fetchAndAddUrlsToTag$1.invokeSuspend(SourceFile:49)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(SourceFile:9)
at kotlinx.coroutines.DispatchedTask.run(SourceFile:115)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(SourceFile:92)
Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@e7b916, Dispatchers.Default]
I got this crash after a few seconds of browsing the map. I had previously opened and closed the Settings page, if that's relevant.
Version is 1.6.0 (not 1.7.1) due to #63.