Hello,
We have further debugged and found the root cause of these two bugs I logged previously:
https://github.com/Unity-Technologies/arfoundation-samples/issues/411
https://github.com/Unity-Technologies/arfoundation-samples/issues/412
There is a bug in the arcore package which crashes the device if you have queried arsession availability and then try to either destroy the session or enable it _twice_
This regression was introduced in arcore xr plugin 3.1.0-preview.4, preview.2 works fine
This is perfectly reproducible across Android and Unity versions, we have attached a minimal reproduction case:
Ar Foundation Ar Session Bug.zip
EnableSessionTwice.log
DestroySession.log
Thanks for bisecting this issue. I am still looking into the cause but this is a huge help!
We have a fix out that will be in the next release. I can't say when that will be exactly but it should be fixed in the next preview version.