Since November 25, I've started seeing the following crash in my app:
Fatal Exception: java.lang.RuntimeException
Unable to create application com.doximity.doximitydroid.bases.DoxApp:
java.lang.RuntimeException: Using WebView from more than one process at once with the
same data directory is not supported.
https://crbug.com/558377 : Current process com.doximity.doximitydroid (pid 9862),
lock owner com.doximity.doximitydroid (pid 8728)
It only happens in the background on Samsung Galaxy S21 devices running Android 12. My app currently targets Android 11 and it does not seem to be related to any changes in my app. I tested on a Samsung Galaxy S21 device but was not able to reproduce (seems like its only a subset of users).
Reading up on the specific crash, it appears to be due to multiple processes in our app being created and attempting to write to the default data directory for the WebView. Again, this popped up out of nowhere and is only happening to a very specific subset of users, so I'm not certain it's an issue with my app.
Hoping someone might have some insight on this issue.
I did find this SO post discussing a similar issue but I never saw on Android 11 and unfortunately it looks like no resolution was ever reached by the author.