Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some errors don't show proper details in debug console #15885

Closed
mysticfall opened this issue Jan 20, 2018 · 1 comment
Closed

Some errors don't show proper details in debug console #15885

mysticfall opened this issue Jan 20, 2018 · 1 comment
Assignees
Milestone

Comments

@mysticfall
Copy link
Contributor

Godot version:
master / eb9fa02

OS/device including version:
Manjaro Linux 17.1.1

Issue description:
In a C# project, some error messages do not show proper details in the editor console, while more relevant information can be read in the terminal, if Godot is launched from there.

For example, below shows how Godot displays two different errors in the editor console:
godot-error-console

On the other hand, below shows what was logged in the terminal when the same errors occur:

ERROR: add_child: Parent node is busy setting up children, add_node() failed. Consider using call_deferred("add_child", child) instead.
   At: scene/main/node.cpp:1336.
ERROR: add_child: Parent node is busy setting up children, add_node() failed. Consider using call_deferred("add_child", child) instead.
   At: scene/main/node.cpp:1336.
Node has been detached from parent, or already disposed.
  at AlleyCat.Common.DisposableCollector.Add (System.IDisposable disposable) [0x00021] in /home/fender/workspace/AlleyCat/Program/AlleyCat/Common/DisposableCollector.cs:19 
  at AlleyCat.Common.DisposableExtensions.AddTo (System.IDisposable disposable, Godot.Node node) [0x00025] in /home/fender/workspace/AlleyCat/Program/AlleyCat/Common/DisposableExtensions.cs:15 
  at AlleyCat.UI.Console.Console.OnInitialize () [0x00019] in /home/fender/workspace/AlleyCat/Program/AlleyCat/UI/Console/Console.cs:68 
  at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke(System.Reflection.MonoMethod,object,object[],System.Exception&)
  at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00032] in /home/fender/.cache/pacaur/mono-nightly/src/mono-5.9.0.375/mcs/class/corlib/System.Reflection/MonoMethod.cs:305

Steps to reproduce:
I encountered the problem when I tried to add a child node to the parent from another of its children inside its _EnterTree() callback, which apparently seems to be not allowed.

@akien-mga
Copy link
Member

It's likely not Mono-related but a duplicate of #32276, which was fixed by #33517.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants