- Home /
Random Invalid AABB inAABB error
Ok, so I don't know if this is exactly a question or if submit it as an issue but here's the problem:
I have an application where you input text in a textfield and the sign language gesture of this word plays as an animation of a 3D model in the scene. At completely random times an "Invalid AABB inAABB" error appears and after that the input doesn't work anymore at all. All buttons/ textfields/text etc. are correctly scaled (all 1,1,1), font is the Unity default (Arial) and the problem appears to be much more profound in slower PCs. Is this maybe an Event System issue? A problem with the Animator? The exact problem is:
Invalid AABB inAABB
UnityEngine.Canvas.SendWillRenderCanvases ()
EDIT:
Ok, so I had forgotten an
!isIdle
flag and now at least the input works but the
Invalid AABB inAABB
UnityEngine.Canvas.SendWillRenderCanvases
problem remains at completely random times. I've checked all the menu elements at runtime and in the editor. It's just random. If anyone has any idea why this might happen please help. Thanks! :D
Answer by IgorAherne · Jun 01, 2017 at 01:22 AM
Somewhere you have a script which divided by zero, then tried to assign NaN as a position to one of your transforms.
Try looking at transforms to see which one has positions as NaN, and determine which script influenced it
Ok, this only applies to GUI elements (Axis Aligned Bounding Box) for a 3D scene right? I've checked all the Pos X, Pos Y, Pos, Z, Width, Height, Anchors, Pivot, Rotation and Scale attributes in all my GUI elements and none is NaN or negative (in the case of Scale -> All scales are (1,1,1) so I can use fonts in a proper way).Pos Z is zero in all GUI elements but the rendering mode of the Canvas is "Screen Space - Overlay" (if this could cause a problem).
Also, there is no script manipulation of the GUI elements' appearance attributes whatsoever except from using the Listener functions (defined in the Editor - not by scripting) for buttons and InputFields. In fact, the only scripting I've done is get the text from a "Search" Inputfield and just divide it into tokens, so I can use each word of the text separately and I also have "Play", "Pause", "Stop", "FB", "FF" and an animation Speed InputField so I can manipulate the playback of an animation. The whole scene can be seen in the image below (the character model doesn't move at all although the camera rotates around some position on the Y-Axis (0, y, 0)).
As a sidenote I would like to say that I haven't even moved the GUI elements. I only moved them using the Anchors and Pivot attributes so I wouldn't have scaling problems in different resolutions.
Thanks for the help! :D
@ sDarklinkk have you found the solution for this? I have had a problem with scaleing at different resolutions and aspect ratios on Android, and when doing the anchor/scaleWScreenSize/rectTransform voodoo I somehow caused this error to apear.
Answer by manu6366 · Sep 09, 2021 at 03:51 PM
I also facing this issue and the issue was in my ui image's local scale. So solved it by changing from localscale to fill amount for progress bars..