Godot: Octree error on editor launch with visible collision shapes

Created on 2 Dec 2017  路  10Comments  路  Source: godotengine/godot

Operating system or device, Godot version, GPU Model and driver (if graphics related):
Windows 10 x64, Godot 3 Beta 1

Issue description:

When launching a 2D game from the editor, there is a seemingly random chance for the following error to pop up in the Debugger dock, under Errors, when Visible Collision Shapes is enabled under the Debug menu:

ERROR: Octree<struct VisualServerScene::Instance,1,class DefaultAllocator>::create: Condition ' p_aabb.position.x > 1e15 || p_aabb.position.x < -1e15 ' is true. returned: 0
   At: core\math\octree.h:800

It does not seem to actually affect anything and causes no harm outside of confusing the user into thinking there is an actual error, the game itself runs fine.

Steps to reproduce:
Create a project, place a Body with a CollisionShape2D and Visible Collision Shapes enabled, then hit play over and over until you see an error in the Debugger dock.

bug core

Most helpful comment

Just figure I would add I also encounter this. It only happens with visible collision shapes on.

Using Godot 3.0.2 on Ubuntu Linux 17.10 in a 2D project

All 10 comments

(Edited because I figured out that it was visible collision shapes causing this to happen, at the very least it did not happen for 20 launches in a row after disabling them and re-appeared immediately upon re-enabling them.)

it may be possible that the body falling eventually reached really large values, which the octree complained about because of the visibility. Not quite sure if this could be considered a bug. Is this at the beginning, or after a while?

This is immediately on launch, and the body does not move.
It and its collision shape are both visible at (0,0).

We have now entered release freeze for Godot 3.0 and want to focus only on release critical issues for that milestone. Therefore, we're moving this issue to the 3.1 milestone, though a fix may be made available for a 3.0.x maintenance release after it has been tested in the master branch during 3.1 development. If you consider that this issue is critical enough to warrant blocking the 3.0 release until fixed, please comment so that we can assess it more in-depth.

I could create a sample project for this.

Error on launch.zip

run with Visible Collision Shapes option at Debug menu.
weird thing is that error is gone if icon.png is assigned instead of icon_630x360.png to sprite texture in the sample project.

Just figure I would add I also encounter this. It only happens with visible collision shapes on.

Using Godot 3.0.2 on Ubuntu Linux 17.10 in a 2D project

I can no longer reproduce this. Tested on Ubuntu an Windows. may have been fixed. Please reopen if you manage to find a different way to do it.

I am getting a similar readout with Godot 3.0.6 on OS X El Capitan. With visible collision shapes, I get the following error:

0:00:00:0922 - Condition ' p_aabb.position.x > 1e15 || p_aabb.position.x < -1e15 ' is true. returned: 0

Type:Error
Description:
Time: 0:00:00:0922
C Error: Condition ' p_aabb.position.x > 1e15 || p_aabb.position.x < -1e15 ' is true. returned: 0
C Source: core/math/octree.h:801
C Function: create

I've also ran into this as well. For my setup, I'm preloading the scene in a global and assigning it to a dictionary to reference throughout the game. It happens immediately on boot without actually instancing the scene in the game.

I hope that helps, happy to provide further details if needed.

I am experiencing the issue too. Its not threatening but its there. I ran all my scenes individually and I noticed that the error (For Me) occurs in my parallax scene which only has a ParallaxBackground Node 4 ParrallaxLayer Child Nodes. And for Each ParrallaxLayer I have 1 Sprite Node for the Background Images.

also Mine is not the position property but the size.x property for the object p_aabb

Was this page helpful?
0 / 5 - 0 ratings