Arfoundation-samples: [bug][reproducible]Session can't be destroyed or re-enabled on Android after querying availability

Created on 21 Feb 2020  路  2Comments  路  Source: Unity-Technologies/arfoundation-samples

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:

  • Start samplescene
  • Click one of the buttons to either query availability and destroy the session or query availibity and enable the session twice
  • Observe crash

Ar Foundation Ar Session Bug.zip
EnableSessionTwice.log
DestroySession.log

bug

All 2 comments

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.

Was this page helpful?
0 / 5 - 0 ratings