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

ObjectDB instances leaked #76

Open
thoraxe opened this issue Jun 27, 2023 · 1 comment
Open

ObjectDB instances leaked #76

thoraxe opened this issue Jun 27, 2023 · 1 comment

Comments

@thoraxe
Copy link
Contributor

thoraxe commented Jun 27, 2023

Unloading: Disposing tracked instances...
Unloading: Finished disposing tracked instances.
XR: Clearing primary interface
XR: Removed interfaceNative mobile
XR: Removed interfaceOpenXR
PulseAudio: context terminated
WARNING: ObjectDB instances leaked at exit (run with --verbose for details).
     at: cleanup (core/object/object.cpp:1982)
Leaked instance: AudioStreamPlaybackWAV:-9220774990389967721
Leaked instance: AudioStreamWAV:-9222444049040931688 - Resource path: res://Assets/Sounds/SRT_B_L2-80bpm-24bit.wav
Hint: Leaked instances typically happen when nodes are removed from the scene tree (with `remove_child()`) but not freed (with `free()` or `queue_free()`).
ERROR: Resources still in use at exit (run with --verbose for details).
   at: clear (core/io/resource.cpp:489)
Resource still in use: res://Assets/Sounds/SRT_B_L2-80bpm-24bit.wav (AudioStreamWAV)

Started after upgrading to GD4. May need to try a simple reproducer with just a stream player and catching the quit notification:

  public override void _Notification(int what)
  {
    // when the game window is closed, you get this notification
    if (what == NotificationWMCloseRequest)
    {
      _serilogger.Information("Game.cs: Got quit notification");

      // stop the background music
      backgroundMusic.Stop();

      // check if our UUID is set. If it isn't, we don't have to send a leave
      // message for our player, so we can just return
      if (myUuid == null) return;
      QuitGame();
    }
  }
@thoraxe
Copy link
Contributor Author

thoraxe commented Jun 27, 2023

godotengine/godot#76745

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

No branches or pull requests

1 participant