Search Unity

Bug Screen position out of view frustum

Discussion in 'AR/VR (XR) Discussion' started by FlightOfOne, May 26, 2020.

  1. FlightOfOne

    FlightOfOne

    Joined:
    Aug 1, 2014
    Posts:
    381
    Screen position out of view frustum (screen pos 1852.000000, 0.000000, 1000.000000) (Camera rect 0 0 1852 2056)
    UnityEngine.GUIUtility processEvent(Int32, IntPtr)

    I keep getting this message every time I play. It does not stop the game play, I can continue thorugh but keeps popping up every time. Only happens in VR. Tried on a clean project too and still happened.

    I am using XR management with OpenVR XR plugin.

    Thanks!
     
  2. FlightOfOne

    FlightOfOne

    Joined:
    Aug 1, 2014
    Posts:
    381
    I think I figured it out. If I disable the camera, press play and then after the game loads I enable the camera, this error does not show up. I am not sure if this is a bug or not but it looks like you have to wait a few frames for other things to initialize?
     
  3. andyz

    andyz

    Joined:
    Jan 5, 2010
    Posts:
    1,630
    This is a long running bug, I get it in the editor at the moment with latest 2019 LTS.
    Can Unity just fix? It happens in Unity camera cpp code for me so not like we can avoid. It may be because of extreme camera clip planes or something but in which case their code should check and exit, not throw an error from internal code
    My editor log:
    Code (CSharp):
    1. [C:\buildslave\unity\build\Runtime/Camera/Camera.cpp line 3488]
    2. (Filename: Assets/Plugins/PlanarRealtimeReflection.cs Line: 123)
    3. Screen position out of view frustum (screen pos 0.000000, 0.000000, 2149.964355) (Camera rect 0 0 1024 1024)
    4. UnityEngine.Camera:Render()
    5. PlanarRealtimeReflection:OnWillRenderObject() (at Assets\Plugins\PlanarRealtimeReflection.cs:123)
    6. UnityEditor.EditorGUIUtility:RenderPlayModeViewCamerasInternal_Injected(RenderTexture, Int32, Vector2&, Boolean, Boolean)
    7. UnityEditor.EditorGUIUtility:RenderPlayModeViewCamerasInternal(RenderTexture, Int32, Vector2, Boolean, Boolean)
    8. UnityEditor.PlayModeView:RenderView(Vector2, Boolean)
    9. UnityEditor.GameView:OnGUI()
     
unityunity