Search Unity

Upgrading from 2017 to 2019 - New Errrors

Discussion in 'Editor & General Support' started by andrew210, May 23, 2019.

  1. andrew210

    andrew210

    Joined:
    Apr 23, 2014
    Posts:
    159
    Hello! On moving from 2017 to 2019 I am now getting some new sporadic errors when moving a character controller around the screen.

    I've pasted the stack trace below for the errors hoping to shed some light on things. The first error looks as though it derives from a mouse event (no mouse click is occurring in game).

    The error was not present in Unity 5.4 / 2017 but has become an issue in 2019. Googling the error shows some results that mentioned scaling in particle effects, I've stripped back the scene so it's running the bare minimum (no particle effects) and haven't been able to find a culprit for what's causing the issue.

    First I get this error:

    Code (CSharp):
    1. Screen position out of view frustum (screen pos 492.000000, 289.000000) (Camera rect 0 0 989 540)
    2. 0x00007FF7607E74EC (Unity) StackWalker::GetCurrentCallstack
    3. 0x00007FF7607EA9A1 (Unity) StackWalker::ShowCallstack
    4. 0x00007FF75EF4E675 (Unity) GetStacktrace
    5. 0x00007FF761209130 (Unity) DebugStringToFile
    6. 0x00007FF75FAB767A (Unity) Camera::ScreenPointToRay
    7. 0x00007FF76089B5EB (Unity) Camera_CUSTOM_ScreenPointToRay_Injected
    8. 0x0000021FAFA1E0FD (Mono JIT Code) (wrapper managed-to-native) UnityEngine.Camera:ScreenPointToRay_Injected (UnityEngine.Camera,UnityEngine.Vector2&,UnityEngine.Camera/MonoOrStereoscopicEye,UnityEngine.Ray&)
    9. 0x0000021FAFA1DEEB (Mono JIT Code) UnityEngine.Camera:ScreenPointToRay (UnityEngine.Vector2,UnityEngine.Camera/MonoOrStereoscopicEye)
    10. 0x0000021FAFA1DD4B (Mono JIT Code) [Camera.bindings.cs:158] UnityEngine.Camera:ScreenPointToRay (UnityEngine.Vector3,UnityEngine.Camera/MonoOrStereoscopicEye)
    11. 0x0000021FAFA1DABB (Mono JIT Code) [Camera.bindings.cs:159] UnityEngine.Camera:ScreenPointToRay (UnityEngine.Vector3)
    12. 0x0000021FA1573EDB (Mono JIT Code) [MouseEvents.cs:146] UnityEngine.SendMouseEvents:DoSendMouseEvents (int)
    13. 0x0000021FA157506E (Mono JIT Code) (wrapper runtime-invoke) <Module>:runtime_invoke_void_int (object,intptr,intptr,intptr)
    14. 0x00007FF8E15EBBCB (mono-2.0-bdwgc) [mini-runtime.c:2809] mono_jit_runtime_invoke
    15. 0x00007FF8E1572252 (mono-2.0-bdwgc) [object.c:2919] do_runtime_invoke
    16. 0x00007FF8E157B25F (mono-2.0-bdwgc) [object.c:2966] mono_runtime_invoke
    17. 0x00007FF760779416 (Unity) scripting_method_invoke
    18. 0x00007FF760773705 (Unity) ScriptingInvocation::Invoke
    19. 0x00007FF7602908A6 (Unity) `InitPlayerLoopCallbacks'::`2'::PreUpdateSendMouseEventsRegistrator::Forward
    20. 0x00007FF760279E38 (Unity) ExecutePlayerLoop
    21. 0x00007FF760279F16 (Unity) ExecutePlayerLoop
    22. 0x00007FF76027EAD0 (Unity) PlayerLoop
    23. 0x00007FF75EF9CC00 (Unity) PlayerLoopController::UpdateScene
    24. 0x00007FF75EF99C79 (Unity) Application::TickTimer
    25. 0x00007FF75F25A76B (Unity) MainMessageLoop
    26. 0x00007FF75F264177 (Unity) WinMain
    27. 0x00007FF761BA167E (Unity) __scrt_common_main_seh
    28. 0x00007FF94D314034 (KERNEL32) BaseThreadInitThunk
    29. 0x00007FF94DD83691 (ntdll) RtlUserThreadStart
    30.  
    Following that, I get 7 of these errors:

    Code (CSharp):
    1. Assertion failed on expression: 'IsNormalized(normal, 0.001f)'
    2. 0x00007FF7607E74EC (Unity) StackWalker::GetCurrentCallstack
    3. 0x00007FF7607EA9A1 (Unity) StackWalker::ShowCallstack
    4. 0x00007FF75EF4E675 (Unity) GetStacktrace
    5. 0x00007FF761209130 (Unity) DebugStringToFile
    6. 0x00007FF761208E9B (Unity) AssertImplementation
    7. 0x00007FF75FA684D2 (Unity) InitLocalLightCullingParameters
    8. 0x00007FF75FB0517E (Unity) CullLights
    9. 0x00007FF75FB05640 (Unity) CullScene
    10. 0x00007FF75FAA8C6E (Unity) Camera::CustomCull
    11. 0x00007FF75FAB2B61 (Unity) RenderManager::RenderCameras
    12. 0x00007FF75ED41C2E (Unity) RepaintController::RenderGameViewCameras
    13. 0x00007FF75F770D22 (Unity) EditorGUIUtility_CUSTOM_RenderGameViewCamerasInternal_Injected
    14. 0x0000021FA8797A81 (Mono JIT Code) (wrapper managed-to-native) UnityEditor.EditorGUIUtility:RenderGameViewCamerasInternal_Injected (UnityEngine.RenderTexture,int,UnityEngine.Rect&,UnityEngine.Vector2&,bool,bool)
    15. 0x0000021FA879792B (Mono JIT Code) UnityEditor.EditorGUIUtility:RenderGameViewCamerasInternal (UnityEngine.RenderTexture,int,UnityEngine.Rect,UnityEngine.Vector2,bool,bool)
    16. 0x0000021F99472453 (Mono JIT Code) [GameView.cs:910] UnityEditor.GameView:OnGUI ()
    17. 0x0000021F99381010 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)
    18. 0x00007FF8E15EBBCB (mono-2.0-bdwgc) [mini-runtime.c:2809] mono_jit_runtime_invoke
    19. 0x00007FF8E1572252 (mono-2.0-bdwgc) [object.c:2919] do_runtime_invoke
    20. 0x00007FF8E157B432 (mono-2.0-bdwgc) [object.c:3071] mono_runtime_invoke_checked
    21. 0x00007FF8E157BBC9 (mono-2.0-bdwgc) [object.c:5262] mono_runtime_try_invoke_array
    22. 0x00007FF8E157B3C6 (mono-2.0-bdwgc) [object.c:5140] mono_runtime_invoke_array_checked
    23. 0x00007FF8E1520254 (mono-2.0-bdwgc) [icall.c:3358] ves_icall_InternalInvoke
    24. 0x0000021F8BFA6276 (Mono JIT Code) (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
    25. 0x0000021F8BFA483B (Mono JIT Code) System.Reflection.MonoMethod:Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo)
    26. 0x0000021F8C67FE4F (Mono JIT Code) System.Reflection.MethodBase:Invoke (object,object[])
    27. 0x0000021F98A72CA3 (Mono JIT Code) [HostView.cs:345] UnityEditor.HostView:Invoke (string,object)
    28. 0x0000021F98A72AF3 (Mono JIT Code) [HostView.cs:340] UnityEditor.HostView:Invoke (string)
    29. 0x0000021F9946AF6B (Mono JIT Code) [HostView.cs:308] UnityEditor.HostView:InvokeOnGUI (UnityEngine.Rect,UnityEngine.Rect)
    30. 0x0000021F9946A41B (Mono JIT Code) [DockArea.cs:374] UnityEditor.DockArea:DrawView (UnityEngine.Rect,UnityEngine.Rect,bool,bool)
    31. 0x0000021F994549E3 (Mono JIT Code) [DockArea.cs:346] UnityEditor.DockArea:OldOnGUI ()
    32. 0x0000021F99421421 (Mono JIT Code) [IMGUIContainer.cs:278] UnityEngine.UIElements.IMGUIContainer:DoOnGUI (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,bool,UnityEngine.Rect)
    33. 0x0000021F9941EA0B (Mono JIT Code) [IMGUIContainer.cs:483] UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect)
    34. 0x0000021FA165CDC3 (Mono JIT Code) [IMGUIContainer.cs:455] UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent ()
    35. 0x0000021FA165C252 (Mono JIT Code) [UIRenderers.cs:447] UnityEngine.UIElements.UIR.ImmediateRenderer:Draw (UnityEngine.UIElements.UIR.DrawChainState)
    36. 0x0000021FA165ADD0 (Mono JIT Code) [UIRenderDevice.cs:842] UnityEngine.UIElements.UIR.UIRenderDevice:ContinueChain (UnityEngine.UIElements.UIR.RendererBase,UnityEngine.UIElements.UIR.DrawChainState,bool)
    37. 0x0000021FA16523DB (Mono JIT Code) [UIRenderDevice.cs:825] UnityEngine.UIElements.UIR.UIRenderDevice:DrawChain (UnityEngine.UIElements.UIR.RendererBase,UnityEngine.Rect,UnityEngine.Matrix4x4,UnityEngine.Texture)
    38. 0x0000021FA164F8E7 (Mono JIT Code) [UIRRepaintUpdater.cs:219] UnityEngine.UIElements.UIRRepaintUpdater:DrawChain (UnityEngine.Rect,UnityEngine.Matrix4x4)
    39. 0x0000021FA15F8005 (Mono JIT Code) [UIRRepaintUpdater.cs:191] UnityEngine.UIElements.UIRRepaintUpdater:Update ()
    40. 0x0000021FA15DD1CF (Mono JIT Code) [VisualTreeUpdater.cs:71] UnityEngine.UIElements.VisualTreeUpdater:UpdateVisualTree ()
    41. 0x0000021FA15DCC93 (Mono JIT Code) [Panel.cs:591] UnityEngine.UIElements.Panel:Repaint (UnityEngine.Event)
    42. 0x0000021F993F3E33 (Mono JIT Code) [UIElementsUtility.cs:246] UnityEngine.UIElements.UIElementsUtility:DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel)
    43. 0x0000021F993F397B (Mono JIT Code) [UIElementsUtility.cs:78] UnityEngine.UIElements.UIElementsUtility:ProcessEvent (int,intptr)
    44. 0x0000021F993F32DE (Mono JIT Code) [GUIUtility.cs:179] UnityEngine.GUIUtility:ProcessEvent (int,intptr)
    45. 0x0000021F993F3503 (Mono JIT Code) (wrapper runtime-invoke) <Module>:runtime_invoke_bool_int_intptr (object,intptr,intptr,intptr)
    46. 0x00007FF8E15EBBCB (mono-2.0-bdwgc) [mini-runtime.c:2809] mono_jit_runtime_invoke
    47. 0x00007FF8E1572252 (mono-2.0-bdwgc) [object.c:2919] do_runtime_invoke
    48. 0x00007FF8E157B25F (mono-2.0-bdwgc) [object.c:2966] mono_runtime_invoke
    49. 0x00007FF760779416 (Unity) scripting_method_invoke
    50. 0x00007FF760773705 (Unity) ScriptingInvocation::Invoke
    51. 0x00007FF76076E97A (Unity) ScriptingInvocation::Invoke<bool>
    52. 0x00007FF75DEF1F29 (Unity) Scripting::UnityEngine::GUIUtilityProxy::ProcessEvent
    53. 0x00007FF75EDF75DC (Unity) GUIView::ProcessRetainedMode
    54. 0x00007FF75F25B99D (Unity) GUIView::OnInputEvent
    55. 0x00007FF75EDF74EC (Unity) GUIView::ProcessInputEvent
    56. 0x00007FF75F252ABC (Unity) GUIView::DoPaint
    57. 0x00007FF75F25E3DD (Unity) GUIView::RepaintAll
    58. 0x00007FF75EF9CE22 (Unity) PlayerLoopController::UpdateScene
    59. 0x00007FF75EF99C79 (Unity) Application::TickTimer
    60. 0x00007FF75F25A76B (Unity) MainMessageLoop
    61. 0x00007FF75F264177 (Unity) WinMain
    62. 0x00007FF761BA167E (Unity) __scrt_common_main_seh
    63. 0x00007FF94D314034 (KERNEL32) BaseThreadInitThunk
    64. 0x00007FF94DD83691 (ntdll) RtlUserThreadStart
    65.  

    Following that, 8 of these errors:

    Code (CSharp):
    1. Invalid AABB a
    2. 0x00007FF7607E74EC (Unity) StackWalker::GetCurrentCallstack
    3. 0x00007FF7607EA9A1 (Unity) StackWalker::ShowCallstack
    4. 0x00007FF75EF4E675 (Unity) GetStacktrace
    5. 0x00007FF761209130 (Unity) DebugStringToFile
    6. 0x00007FF761208E9B (Unity) AssertImplementation
    7. 0x00007FF75FE977EF (Unity) IntersectAABBPlaneBoundsOptimized
    8. 0x00007FF75FB40E27 (Unity) CullObjectsWithoutUmbra
    9. 0x00007FF75FA8A58D (Unity) CullDynamicObjectsJob
    10. 0x00007FF76012A574 (Unity) JobQueue::Exec
    11. 0x00007FF76012C7D4 (Unity) JobQueue::ProcessJobs
    12. 0x00007FF760130EA8 (Unity) JobQueue::WorkLoop
    13. 0x00007FF76047FAB7 (Unity) Thread::RunThreadWrapper
    14. 0x00007FF94D314034 (KERNEL32) BaseThreadInitThunk
    15. 0x00007FF94DD83691 (ntdll) RtlUserThreadStart
    16.  
    And finally 5061 errors that look like this:

    Code (CSharp):
    1. Assertion failed on expression: 'IsFinite(outDistanceForSort)'
    2. 0x00007FF7607E74EC (Unity) StackWalker::GetCurrentCallstack
    3. 0x00007FF7607EA9A1 (Unity) StackWalker::ShowCallstack
    4. 0x00007FF75EF4E675 (Unity) GetStacktrace
    5. 0x00007FF761209130 (Unity) DebugStringToFile
    6. 0x00007FF761208E9B (Unity) AssertImplementation
    7. 0x00007FF75FB4FD82 (Unity) BuildRenderObjectData
    8. 0x00007FF75FB53525 (Unity) DoRenderLoop
    9. 0x00007FF75FAA996D (Unity) Camera::DoRender
    10. 0x00007FF75FAA924A (Unity) Camera::CustomRender
    11. 0x00007FF75FAB2BE3 (Unity) RenderManager::RenderCameras
    12. 0x00007FF75ED41C2E (Unity) RepaintController::RenderGameViewCameras
    13. 0x00007FF75F770D22 (Unity) EditorGUIUtility_CUSTOM_RenderGameViewCamerasInternal_Injected
    14. 0x0000021FA8797A81 (Mono JIT Code) (wrapper managed-to-native) UnityEditor.EditorGUIUtility:RenderGameViewCamerasInternal_Injected (UnityEngine.RenderTexture,int,UnityEngine.Rect&,UnityEngine.Vector2&,bool,bool)
    15. 0x0000021FA879792B (Mono JIT Code) UnityEditor.EditorGUIUtility:RenderGameViewCamerasInternal (UnityEngine.RenderTexture,int,UnityEngine.Rect,UnityEngine.Vector2,bool,bool)
    16. 0x0000021F99472453 (Mono JIT Code) [GameView.cs:910] UnityEditor.GameView:OnGUI ()
    17. 0x0000021F99381010 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)
    18. 0x00007FF8E15EBBCB (mono-2.0-bdwgc) [mini-runtime.c:2809] mono_jit_runtime_invoke
    19. 0x00007FF8E1572252 (mono-2.0-bdwgc) [object.c:2919] do_runtime_invoke
    20. 0x00007FF8E157B432 (mono-2.0-bdwgc) [object.c:3071] mono_runtime_invoke_checked
    21. 0x00007FF8E157BBC9 (mono-2.0-bdwgc) [object.c:5262] mono_runtime_try_invoke_array
    22. 0x00007FF8E157B3C6 (mono-2.0-bdwgc) [object.c:5140] mono_runtime_invoke_array_checked
    23. 0x00007FF8E1520254 (mono-2.0-bdwgc) [icall.c:3358] ves_icall_InternalInvoke
    24. 0x0000021F8BFA6276 (Mono JIT Code) (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
    25. 0x0000021F8BFA483B (Mono JIT Code) System.Reflection.MonoMethod:Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo)
    26. 0x0000021F8C67FE4F (Mono JIT Code) System.Reflection.MethodBase:Invoke (object,object[])
    27. 0x0000021F98A72CA3 (Mono JIT Code) [HostView.cs:345] UnityEditor.HostView:Invoke (string,object)
    28. 0x0000021F98A72AF3 (Mono JIT Code) [HostView.cs:340] UnityEditor.HostView:Invoke (string)
    29. 0x0000021F9946AF6B (Mono JIT Code) [HostView.cs:308] UnityEditor.HostView:InvokeOnGUI (UnityEngine.Rect,UnityEngine.Rect)
    30. 0x0000021F9946A41B (Mono JIT Code) [DockArea.cs:374] UnityEditor.DockArea:DrawView (UnityEngine.Rect,UnityEngine.Rect,bool,bool)
    31. 0x0000021F994549E3 (Mono JIT Code) [DockArea.cs:346] UnityEditor.DockArea:OldOnGUI ()
    32. 0x0000021F99421421 (Mono JIT Code) [IMGUIContainer.cs:278] UnityEngine.UIElements.IMGUIContainer:DoOnGUI (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,bool,UnityEngine.Rect)
    33. 0x0000021F9941EA0B (Mono JIT Code) [IMGUIContainer.cs:483] UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect)
    34. 0x0000021FA165CDC3 (Mono JIT Code) [IMGUIContainer.cs:455] UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent ()
    35. 0x0000021FA165C252 (Mono JIT Code) [UIRenderers.cs:447] UnityEngine.UIElements.UIR.ImmediateRenderer:Draw (UnityEngine.UIElements.UIR.DrawChainState)
    36. 0x0000021FA165ADD0 (Mono JIT Code) [UIRenderDevice.cs:842] UnityEngine.UIElements.UIR.UIRenderDevice:ContinueChain (UnityEngine.UIElements.UIR.RendererBase,UnityEngine.UIElements.UIR.DrawChainState,bool)
    37. 0x0000021FA16523DB (Mono JIT Code) [UIRenderDevice.cs:825] UnityEngine.UIElements.UIR.UIRenderDevice:DrawChain (UnityEngine.UIElements.UIR.RendererBase,UnityEngine.Rect,UnityEngine.Matrix4x4,UnityEngine.Texture)
    38. 0x0000021FA164F8E7 (Mono JIT Code) [UIRRepaintUpdater.cs:219] UnityEngine.UIElements.UIRRepaintUpdater:DrawChain (UnityEngine.Rect,UnityEngine.Matrix4x4)
    39. 0x0000021FA15F8005 (Mono JIT Code) [UIRRepaintUpdater.cs:191] UnityEngine.UIElements.UIRRepaintUpdater:Update ()
    40. 0x0000021FA15DD1CF (Mono JIT Code) [VisualTreeUpdater.cs:71] UnityEngine.UIElements.VisualTreeUpdater:UpdateVisualTree ()
    41. 0x0000021FA15DCC93 (Mono JIT Code) [Panel.cs:591] UnityEngine.UIElements.Panel:Repaint (UnityEngine.Event)
    42. 0x0000021F993F3E33 (Mono JIT Code) [UIElementsUtility.cs:246] UnityEngine.UIElements.UIElementsUtility:DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel)
    43. 0x0000021F993F397B (Mono JIT Code) [UIElementsUtility.cs:78] UnityEngine.UIElements.UIElementsUtility:ProcessEvent (int,intptr)
    44. 0x0000021F993F32DE (Mono JIT Code) [GUIUtility.cs:179] UnityEngine.GUIUtility:ProcessEvent (int,intptr)
    45. 0x0000021F993F3503 (Mono JIT Code) (wrapper runtime-invoke) <Module>:runtime_invoke_bool_int_intptr (object,intptr,intptr,intptr)
    46. 0x00007FF8E15EBBCB (mono-2.0-bdwgc) [mini-runtime.c:2809] mono_jit_runtime_invoke
    47. 0x00007FF8E1572252 (mono-2.0-bdwgc) [object.c:2919] do_runtime_invoke
    48. 0x00007FF8E157B25F (mono-2.0-bdwgc) [object.c:2966] mono_runtime_invoke
    49. 0x00007FF760779416 (Unity) scripting_method_invoke
    50. 0x00007FF760773705 (Unity) ScriptingInvocation::Invoke
    51. 0x00007FF76076E97A (Unity) ScriptingInvocation::Invoke<bool>
    52. 0x00007FF75DEF1F29 (Unity) Scripting::UnityEngine::GUIUtilityProxy::ProcessEvent
    53. 0x00007FF75EDF75DC (Unity) GUIView::ProcessRetainedMode
    54. 0x00007FF75F25B99D (Unity) GUIView::OnInputEvent
    55. 0x00007FF75EDF74EC (Unity) GUIView::ProcessInputEvent
    56. 0x00007FF75F252ABC (Unity) GUIView::DoPaint
    57. 0x00007FF75F25E3DD (Unity) GUIView::RepaintAll
    58. 0x00007FF75EF9CE22 (Unity) PlayerLoopController::UpdateScene
    59. 0x00007FF75EF99C79 (Unity) Application::TickTimer
    60. 0x00007FF75F25A76B (Unity) MainMessageLoop
    61. 0x00007FF75F264177 (Unity) WinMain
    62. 0x00007FF761BA167E (Unity) __scrt_common_main_seh
    63. 0x00007FF94D314034 (KERNEL32) BaseThreadInitThunk
    64. 0x00007FF94DD83691 (ntdll) RtlUserThreadStart
    65.  
    66.  
     
  2. tsibiski

    tsibiski

    Joined:
    Jul 11, 2016
    Posts:
    274
    For lack of the proper explanation, the first camera frustum error occurs when the camera is moved and oriented in an unsuitable way in relation to the screen. A frustum is basically the 3d volume / (conal/pyramidal) space from the camera viewport and objects it sees and renders (https://en.wikipedia.org/wiki/Frustum). Again, I don't know the underlying logic to explain why this occurs on a technical level.

    But I have received this error when I first started coding in Unity, and one of my camera movement scripts had bad logic that did not properly move and rotate it. I recall that I fixed it by examining my camera movement and rotation logic in a way that mimicked examples I found in the Unity documentation.

    And based on the way Unity updates occur, it is possible that your scripts worked fine before and will err now. Likely the code used before was not the proper way to move the camera, but still managed to work in a way that looked right to you. But now, that is no longer the case.

    It seems like the other errors are a result of the camera frustum error.
     
    andrew210 likes this.
  3. andrew210

    andrew210

    Joined:
    Apr 23, 2014
    Posts:
    159
    Thanks so much Tisbiski - at the very least this gives me a new avenue for trying to figure out whats going on and where to focus. Really appreciate the reply