Unity-Technologies / arfoundation-samples

Example content for Unity projects based on AR Foundation
Other
3.07k stars 1.15k forks source link

[bug][reproducible]Session can't be destroyed or re-enabled on Android after querying availability #414

Closed nilsk123 closed 4 years ago

nilsk123 commented 4 years ago

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

DavidMohrhardt commented 4 years ago

Thanks for bisecting this issue. I am still looking into the cause but this is a huge help!

DavidMohrhardt commented 4 years ago

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.

saurabhburadkar commented 2 years ago

preloadedAssets issue still there in 4.1.13 ar foundation version unity 2020.3.30f1