Skip to content

ERROR: cleanup: There are still MemoryPool allocs in use at exit! #275

Open

Description

@xDGameStudios

I have 2 classes in the GDNative plugin (Vertex and ListDigraph) and ListDigraph has a method add_vertex that return a Ref

Ref<Vertex> ListDigraph::add_vertex() {
	return Ref<Vertex>::__internal_constructor(Vertex::_new());
}

And is bound to the GDScript using:

register_method("add_vertex", &ListDigraph::add_vertex);

Having this code gives some silent errors:

  1. At editor start-up:
ERROR: set_path: Another resource is loaded from path: res://bin/list_digraph.gdns (possible cyclic resource inclusion)
   At: core/resource.cpp:79.
  1. At editor shut down
WARNING: cleanup: ObjectDB Instances still exist!
   At: core/object.cpp:2092.
ERROR: cleanup: There are still MemoryPool allocs in use at exit!
   At: core/pool_vector.cpp:70.

What am I doing wrong here?

Activity

  1. follower commented on Jun 22, 2020

    @follower

    Not sure about about (1) but there were a number of bugs/situations that could lead to (2) related to e.g. passing arrays of strings from GDScript to GDNative and associated reference counting.

    Issue (2) seems to be solved for me (due to a number of recent fixes) as of the commit mentioned in #417, so you might like to try it.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions