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

Memory leak after running exported project #53948

Closed
qarmin opened this issue Oct 18, 2021 · 0 comments · Fixed by #53950
Closed

Memory leak after running exported project #53948

qarmin opened this issue Oct 18, 2021 · 0 comments · Fixed by #53950
Milestone

Comments

@qarmin
Copy link
Contributor

qarmin commented Oct 18, 2021

Godot version

Godot 4 523e0d8

System information

Ubuntu 21.10, Intel HD 3000

Issue description

Running project which don't leak in editor, leaks memory in exported build

CI - https://github.com/qarmin/RegressionTestProject/runs/3919079769?check_suite_focus=true

Workflow file - https://github.com/qarmin/RegressionTestProject/actions/runs/1351571429/workflow

CC @vnen, not sure if #53545 caused this, because before that PR, exported build just not work

Memory leaks

Direct leak of 28 byte(s) in 1 object(s) allocated from:
    #0 0x7f2225f59bc8 in malloc (/lib/x86_64-linux-gnu/libasan.so.5+0x10dbc8)
    #1 0x555a064294d3 in Memory::alloc_static(unsigned long, bool) core/os/memory.cpp:75
    #2 0x5559eff197c5 in Variant::Type* memnew_arr_template<Variant::Type>(unsigned long) core/os/memory.h:145
    #3 0x555a089c32d4 in MethodBind::_generate_argument_types(int) core/object/method_bind.cpp:117
    #4 0x5559f85911fd in MethodBindT<Vector2 const&, bool>::MethodBindT(void (__UnexistingClass::*)(Vector2 const&, bool)) core/object/method_bind.h:295
    #5 0x5559f857db6e in MethodBind* create_method_bind<Control, Vector2 const&, bool>(void (Control::*)(Vector2 const&, bool)) core/object/method_bind.h:305
    #6 0x5559f856f75b in MethodBind* ClassDB::bind_method<MethodDefinition, void (Control::*)(Vector2 const&, bool)>(MethodDefinition, void (Control::*)(Vector2 const&, bool), Variant const&) core/object/class_db.h:230
    #7 0x5559f8506485 in Control::_bind_methods() scene/gui/control.cpp:2850
    #8 0x5559f746d592 in Control::initialize_class() scene/gui/control.h:48
    #9 0x5559f74adf10 in BaseButton::initialize_class() scene/gui/base_button.h:39
    #10 0x5559f75c9c45 in void ClassDB::register_virtual_class<BaseButton>() (/home/runner/work/RegressionTestProject/RegressionTestProject/test_project+0x3cf5bc45)
    #11 0x5559f73d8571 in register_scene_types() scene/register_scene_types.cpp:310
    #12 0x5559ef73d506 in Main::setup2(unsigned long) main/main.cpp:1789
    #13 0x5559ef721521 in Main::setup(char const*, int, char**, bool) main/main.cpp:1410
    #14 0x5559ef5a0e28 in main platform/linuxbsd/godot_linuxbsd.cpp:51
    #15 0x7f22250170b2 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x270b2)

Steps to reproduce

  1. Export project
  2. Run it
  3. Check for leaks

Minimal reproduction project

https://github.com/qarmin/RegressionTestProject

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

Successfully merging a pull request may close this issue.

2 participants