0 votes
by (350 points)
recategorized by

Hello.
I use

  • a Pico G2 4S (PIUI 4.0.5)
  • Unity 2019.4.32f
  • Pico XR Plugin 1.2.4

and when I start my app and open the Unity logcat there is two errors that spam my console :

2021/11/25 15:40:10.486 13396 13418 Error Unity NullReferenceException: Object reference not set to an instance of an object.
2021/11/25 15:40:10.486 13396 13418 Error Unity at Unity.XR.PXR.PXRPlugin+System.UPxrCallStaticMethod[T] (T& result, UnityEngine.AndroidJavaClass jclass, System.String name, System.Object[] args) [0x00000] in <00000000000000000000000000000000>:0
2021/11/25 15:40:10.486 13396 13418 Error Unity at Unity.XR.PXR.PXRPlugin+Controller.UPxrGetControllerType () [0x00000] in <00000000000000000000000000000000>:0
2021/11/25 15:40:10.486 13396 13418 Error Unity at Unity.XR.PXR.PXR_ControllerLoader.Update () [0x00000] in <00000000000000000000000000000000>:0

&

2021/11/25 15:40:10.505 13396 13449 Error Unity OPENGL NATIVE PLUG-IN ERROR: GLINVALIDENUM: enum argument out of range
2021/11/25 15:40:10.505 13396 13449 Error Unity (Filename: ./Runtime/GfxDevice/opengles/GfxDeviceGLES.cpp Line: 442)

enter image description here

2 Answers

0 votes
by (44.1k points)

Dear developer,

For the first error, you can try to remove and reimport Pico SDK in Package Manager. If the error still spams, could you please provide a log for us in order to troubleshoot? We can't see the screenshot clearly.

To capture a log, you may refer to this link:
https://sdk.picovr.com/docs/FAQ/chapter_sixteen.html#how-to-capture-log

For the second error, sorry for the inconvenience. This is a known issue and we had reported it to Unity but haven't got a solution yet. According to the feedback from other developers, the spam logs have no side-effect on application performance, so you can move forward at the moment.

by (350 points)

Yes I know there is no side-effect perfomance but it is nearly impossible to see my logs inside this mess :(

by (44.1k points)

The system also has a lot of irrelevant logs, so the best way is adding keywords to search the logs you want to find. Hope this information helps you.

0 votes
by (140 points)

I have same trouble. Maybe because you dont add PXR_Manager on scene. This help for me

...