Search Issue Tracker
Fixed in 1.6.1
Votes
0
Found in [Package]
1.5.0
Issue ID
1287357
Regression
No
[XR SDK] [Oculus] SetFoveation Level throws Error exception when executed in Play mode
Reproduction steps:
1. Open the attached project ("U2021.zip")
2. Open SampleScene scene
3. Enter Play mode
4. Open the Console Window
Expected result: No errors thrown
Actual result: Exception/Error thrown:
Oculus 1.5.0:
EntryPointNotFoundException: GetOvrJava
Unity.XR.Oculus.Utils.SetFoveationLevel (System.Int32 level) (at Library/PackageCache/com.unity.xr.oculus@1.5.0/Runtime/FFR.cs:23)
EnableFFR.OnEnable () (at Assets/EnableFFR.cs:12)
Oculus 1.6.1, 1.7.0:
Can't set foveation level
UnityEngine.Debug:LogError(Object)
Unity.XR.Oculus.Utils:SetFoveationLevel(Int32) (at Library/PackageCache/com.unity.xr.oculus@1.6.1/Runtime/FFR.cs:25)
EnableFFR:OnEnable() (at Assets/EnableFFR.cs:12)
Reproducible with: Oculus XR Plugin 1.5.0, 1.6.1, 1.7.0 (2019.4.18f1, 2020.2.2f1, 2021.1.0b2)
Not reproducible with: 2018.4.30f1 (XR SDK not available)
-
fherbst
Jan 08, 2021 14:39
One note on this: it seems that while the Java exception is catched in recent plugin versions (1.6 and 1.7) but still an error is logged.
For Quest development, the main mode of usage is the Unity Editor set to Android build target, testing via Link on Desktop and then deploying to device. This means the Editor is always set to "Android" build target. Logging an error on every play is annoying and cluttering the console.
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Animation Clip with Legacy enabled does not play when Time.timeScale is set to 0 despite Update mode set to "Unscaled time"
- Rename is enabled on subfolder empty space - "Can't rename to empty name" warning
- SamplerState Property Missing Anisotropic Filtering
- Visual glitches when using Handles API
- The RGBA color values are inconsistent when comparing two identical colors set in the Inspector
Resolution Note (fix version 1.6.1):
Fixed with Oculus XR Plugin 1.6.1 (2019.4.18f1)