Could you please provide code snippet around the exception?
The "fragment not attached to a context" message suggests the exception has something to do with the fragment manipulation, eg the fragment is not properly added to its holder. Similar issue can be found here.
Any Suggestions? Happens only on android 9+