Giter Club home page Giter Club logo

Comments (4)

hhyyrylainen avatar hhyyrylainen commented on June 1, 2024

Here's the relevant error:

USER ERROR: Method argument to Callable constructor must be a non-empty string
   at: Callable (core/variant/callable.cpp:334)
USER ERROR: Cannot connect to '': the provided callable is null.
   at: connect (core/object/object.cpp:1315)
USER ERROR: Index c.from &FLAG_MASK = 110 is out of bounds (nc = 17).
   at: instantiate (scene/resources/packed_scene.cpp:522)
USER ERROR: System.NullReferenceException: Object reference not set to an instance of an object.
   at Thriveopedia.AddPage(String name, IThriveopediaPage page) in /home/hhyyrylainen/Projects/Thrive/src/thriveopedia/Thriveopedia.cs:line 332
   at Thriveopedia.set_CurrentGame(GameProperties value) in /home/hhyyrylainen/Projects/Thrive/src/thriveopedia/Thriveopedia.cs:line 130
   at EditorBase`2.InitEditor(Boolean fresh) in /home/hhyyrylainen/Projects/Thrive/src/general/base_stage/EditorBase.cs:line 550
   at MicrobeEditor.InitEditor(Boolean fresh) in /home/hhyyrylainen/Projects/Thrive/src/microbe_stage/editor/MicrobeEditor.cs:line 140
   at EditorBase`2.OnEnterEditor() in /home/hhyyrylainen/Projects/Thrive/src/general/base_stage/EditorBase.cs:line 668
   at MicrobeEditor.OnEnterEditor() in /home/hhyyrylainen/Projects/Thrive/src/microbe_stage/editor/MicrobeEditor.cs:line 188
   at EditorBase`2._Ready() in /home/hhyyrylainen/Projects/Thrive/src/general/base_stage/EditorBase.cs:line 208
   at MicrobeEditor._Ready() in /home/hhyyrylainen/Projects/Thrive/src/microbe_stage/editor/MicrobeEditor.cs:line 70
   at Godot.Node.InvokeGodotClassMethod(godot_string_name& method, NativeVariantPtrArgs args, godot_variant& ret)
   at EditorBase`2.InvokeGodotClassMethod(godot_string_name& method, NativeVariantPtrArgs args, godot_variant& ret) in /home/hhyyrylainen/Projects/Thrive/Godot.SourceGenerators/Godot.SourceGenerators.ScriptMethodsGenerator/EditorBase(Of TAction, TStage)_ScriptMethods.generated.cs:line 458
   at MicrobeEditor.InvokeGodotClassMethod(godot_string_name& method, NativeVariantPtrArgs args, godot_variant& ret) in /home/hhyyrylainen/Projects/Thrive/Godot.SourceGenerators/Godot.SourceGenerators.ScriptMethodsGenerator/MicrobeEditor_ScriptMethods.generated.cs:line 228
   at Godot.Bridge.CSharpInstanceBridge.Call(IntPtr godotObjectGCHandle, godot_string_name* method, godot_variant** args, Int32 argCount, godot_variant_call_error* refCallError, godot_variant* ret)
   at: void Godot.NativeInterop.ExceptionUtils.LogException(System.Exception) (:0)
USER ERROR: System.InvalidOperationException: Editor component not initialized
   at EditorComponentWithActionsBase`2.UpdateMutationPointsBar(Boolean tween) in /home/hhyyrylainen/Projects/Thrive/src/general/base_stage/EditorComponentWithActionsBase.cs:line 78
   at EditorBase`2.OnMutationPointsChanged() in /home/hhyyrylainen/Projects/Thrive/src/general/base_stage/EditorBase.cs:line 833
   at EditorBase`2.CalculateMutationPointsLeft() in /home/hhyyrylainen/Projects/Thrive/src/general/base_stage/EditorBase.cs:line 928
   at EditorBase`2._Process(Double delta) in /home/hhyyrylainen/Projects/Thrive/src/general/base_stage/EditorBase.cs:line 281
   at Godot.Node.InvokeGodotClassMethod(godot_string_name& method, NativeVariantPtrArgs args, godot_variant& ret)
   at EditorBase`2.InvokeGodotClassMethod(godot_string_name& method, NativeVariantPtrArgs args, godot_variant& ret) in /home/hhyyrylainen/Projects/Thrive/Godot.SourceGenerators/Godot.SourceGenerators.ScriptMethodsGenerator/EditorBase(Of TAction, TStage)_ScriptMethods.generated.cs:line 458
   at MicrobeEditor.InvokeGodotClassMethod(godot_string_name& method, NativeVariantPtrArgs args, godot_variant& ret) in /home/hhyyrylainen/Projects/Thrive/Godot.SourceGenerators/Godot.SourceGenerators.ScriptMethodsGenerator/MicrobeEditor_ScriptMethods.generated.cs:line 228
   at Godot.Bridge.CSharpInstanceBridge.Call(IntPtr godotObjectGCHandle, godot_string_name* method, godot_variant** args, Int32 argCount, godot_variant_call_error* refCallError, godot_variant* ret)
   at: void Godot.NativeInterop.ExceptionUtils.LogException(System.Exception) (:0)

That last part then repeats indefinitely as the editor load has failed, which causes a ton of code to be skipped and it is an inconsistent state so it cannot work.

Here's my initial thoughts after looking at the code: this seems like a Godot scene instancing failure. The failing code is calling AddPage("PatchMap"); in the Thriveopedia and it crashes on line if (page.ParentPageName != null && allPages.Keys -- which should only be possible if the page variable is null. And the only reason that would be null if the scene instantiation fails, which Godot does seem to give some error message parts:

USER ERROR: Method argument to Callable constructor must be a non-empty string
   at: Callable (core/variant/callable.cpp:334)
USER ERROR: Cannot connect to '': the provided callable is null.
   at: connect (core/object/object.cpp:1315)
USER ERROR: Index c.from &FLAG_MASK = 110 is out of bounds (nc = 17).
   at: instantiate (scene/resources/packed_scene.cpp:522)

My initial conclusion is that this also seems like a random Godot scene loading failure where it just randomly decides to not load a scene file correctly that usually loads completely fine. I haven't yet looked if there is an existing issue in Godot repository about this.

Edit: I can also confirm that this doesn't happen each time you load a save made in the microbe stage and wait until getting to the editor. I just did that with a random save I had and I didn't see this error.

from thrive.

Teashrock avatar Teashrock commented on June 1, 2024

@hhyyrylainen
Should I attach my current save file?

from thrive.

hhyyrylainen avatar hhyyrylainen commented on June 1, 2024

Only if loading it and going to the editor consistently causes the issue. I suspect it wouldn't but if it does then I'd be very interested to take a look.

from thrive.

Teashrock avatar Teashrock commented on June 1, 2024

Nope. This time everything was good. Seems like a random Godot crash. They should debug the engine well.

from thrive.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.