Open sentry-io[bot] opened 4 months ago
See also #10112 - it triggers the same kind of error, but for packages in general. Also includes a repro!
Based on observations about #10112's repro, I feel that these two issues should pretty low priority. No user-facing functionality is affected save, possibly, for a 'toast' notification about the update completing.
OK with lowpri, triage to 19.0 if you like.
Sentry Issue: KEYMAN-ANDROID-3Q8
@jahorton here.
Based on my analysis of where this error is generated in the overall app/keyboard control flow... it appears that this is called when a lexical model is updated, but the
context
corresponding to the entity that requested the update is no longer valid.The logging line in question was originally added in #3499... to investigate errors we saw before we started using Sentry. Whatever those errors were... is likely now lost to history, though.
My interpretation of this scenario is that we'd previously triggered a background update, which has now succeeded... but only after the host's lifetime is completed.
References:
https://github.com/keymanapp/keyman/blob/b068f94537e6bf8703068143473aec7d30ff584c/android/KMEA/app/src/main/java/com/keyman/engine/logic/ResourcesUpdateTool.java#L446-L449
Note the
.isFinishing
check:https://developer.android.com/reference/android/app/Activity#isFinishing()
https://stackoverflow.com/q/10847526
From the Android docs link above: