- Home /
aabb.IsValid() error
Hi guys,
I've created an unity android game. The game run smoothly inside android devices but errors comes out when I test inside editor mode.
Here's the error message:- aabb.IsValid() Assert in file: C:/BuildAgent/work/b0asdassda/Runtime/Camera/UnityScene.cpp at line 294
!IsFinite(outDistanceForSort) !IsFinite(outDistanceAlongView) ...... !IsFinite(outDistanceForSort) !IsFinite(outDistanceAlongView)
I don't understand what does these error mean. Please help me.
ps: I
Thanks.
Best regards, Jason
Answer by Drakestar · May 21, 2012 at 04:10 AM
An AABB is an axially aligned bounding box, which is a very quick early rejection test that can be used to test for 3D collisions.
This error (which seems to happen in the core Unity code) makes it look like the game created an infinitely large AABB for one of the objects. Not sure what you can do about this other than trying to identify the object that is causing the crash by selectively excluding objects from your runtime build.
Thanks @$$anonymous$$atthias Worch
You are right. Actually this problem arised because I mistakenly set my gameobject's scale to -ve value and whenever I do some changes/calculation, the program freezed and the error message comes out.
$$anonymous$$y solution is set back the -ve value to +ve value. :)
Cool! $$anonymous$$ark the answer as correct so that people searching in the future can identify it.
Answer by BubbaRichard · Jul 16, 2016 at 06:59 AM
Everywhere I've received this error it's been from an NaN in a number. Either a double or a float. And i've got it on canvas's and meshes and sprites
Your answer
![](https://koobas.hobune.stream/wayback/20220613071731im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Error building Player: Win32Exception - with plugin? 1 Answer
Build error 2 Answers
Android game crash startup 0 Answers
Argument out of Range Exception Error - Parameter Name: Index 1 Answer
Invalid Characters in Path 1 Answer