Search Issue Tracker

Fixed

Fixed in 0.4.5-exp.1

Votes

0

Found in [Package]

0.4.5-exp.1

Issue ID

AXRB-148

Regression

No

ARCameraManager continuously tries to create light estimation tracker even after it fails

Package: Android XR

-

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Sometimes a device may not support light estimation, therefore everytime ARCameraManager tries to call TryGetLatestFrame the native code should not continuously try to create light estimation tracker if light estimation is not supported, otherwise it spams the log.

[https://github.cds.internal.unity3d.com/unity/xr.sdk.androidxr-openxr/blob/main/com.unity.xr.androidxr-openxr/Source~/Source/Providers/CameraProvider.cpp#L22]
This function should probably have a check if it tried to create light estimation tracker previously but failed due to no support, it should not try to create a tracker again.

In essence, there should be some sort of mechanism to not spam log and have a one time error mentioning that light estimation will not be used if it failed to create light estimator due to unsupported error.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.