Godot: mac build / get_parent is returning boolean

Created on 10 Jul 2017  路  16Comments  路  Source: godotengine/godot

when using the latest mac build (july 9th) get_parent is returning a boolean type.
this also happened in the previous build (july 8th) and those were the only ones that I've tried.

my project is just a blank scene with 2 node2D objects. the child one is calling get_parent() on _ready(). really easy to reproduce. I think this is exclusive to the mac build since other linux users where not able to reproduce it.

bug macos core

Most helpful comment

1sbb33

All 16 comments

Where did you get the build from ?
Have you tried compiling from source ?

I've got the build from fixnum. Will try to compile from source and post the results here.

From what I read, the fixnum OS X build is broken :

Notes
I currently can't build for iOS. OS X builds are generated with osxcross, using Xcode 7.3.1.
Prior to June 10, 2016 I was unable to produce builds for OS X as well. tonymtbird helped out by making sporadic builds of the tools and templates on his Mac to be provided here. Note that these builds might not correspond to the exact commit of the other platforms.

Try compiling from source.

Please attach a zip of the project you use to reproduce this bug. I don't see how it could be a platform-related bug, a compiler wouldn't change a return type automatically from Node to bool: https://github.com/godotengine/godot/blob/master/scene/main/node.cpp#L1575

From what I read, the fixnum OS X build is broken :

Notes
I currently can't build for iOS. OS X builds are generated with osxcross, using Xcode 7.3.1.
Prior to June 10, 2016 I was unable to produce builds for OS X as well. tonymtbird helped out by making sporadic builds of the tools and templates on his Mac to be provided here. Note that these builds might not correspond to the exact commit of the other platforms.

This actually says that iOS builds are broken, not OS X ;) The part about pre-June 2016 is likely outdated by now.

Ok. But well, I don't see other reason how a Node* could be converted into a bool but from a problem in the code version. As the fixnum builds are "unofficial", I assumed the problem should probably come from the build. But I might be wrong... ^^
Also, this cannot be reproduced on ubuntu.

Just built it from source and the issue remains.
There are some errors on the console though:

captura de tela 2017-07-10 as 11 16 16 am

Here's a barebones project that reproduces the error:

godot_get_parent_issue.zip

I'm using macOS Sierra in a macbook pro retina mid 2012.

I've just tested your project with latest master and I can confirm this too a OS X Yosemite.

Some paranormal activity on OS X :D

Runs as expected (returns position of parent object) using latest build from Git master, Ubuntu Linux 17.04 64-bit.

I made a build yesterday from master and got the same problem, using Mac and get_parent returning True.

Ditto here.... doesn't make any sense..

1sbb33

Does this still happen? Could anyone confirm?

Just re-tested with latest master and its fixed :D

\o/
Closing.

Was this page helpful?
0 / 5 - 0 ratings