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
- Memory Leak warnings are thrown when creating a new material
- The type selector in the UI Builder does not display primitive types when trying to select one in the "Select Type…" window
- Inspector's custom tooltip is displayed incorrectly when the name is truncated in UI toolkit
- Crash on ScriptableRenderLoopDraw when rendering a specific VFX in Play Mode
- The script is not renamed in the Project window when renaming and a compilation Error is present
Resolution Note (fix version 1.6.1):
Fixed with Oculus XR Plugin 1.6.1 (2019.4.18f1)