Skip to content

Memory leak on web when using "sample" playback type #106098

Open
@vicguedez

Description

@vicguedez

Tested versions

Reproducible in 4.4.1.stable with Firefox 137.0.2 (64-bit, Pop!_OS)

System information

Godot v4.4.1.stable - Pop!_OS 22.04 LTS on X11 - X11 display driver, Multi-window, 1 monitor - OpenGL 3 (Compatibility) - AMD Radeon Vega 8 Graphics (radeonsi, raven, LLVM 15.0.7, DRM 3.57, 6.9.3-76060903-generic) - AMD Ryzen 5 3500U with Radeon Vega Mobile Gfx (8 threads)

Issue description

When exporting a project to web, using "sample" playback type results in increased memory usage over time, on mobile this causes a crash after a couple of stream changes.

Here is a pic when using sample playback type, you can see memory footprint baseline and then increasing with each change of the stream.

Image

Here is a pic when using stream playback type, you can see memory footprint baseline and it stays there after multiple changes of the stream.

Image

Steps to reproduce

Run provided MRP on the web and cycle between "Stream 1" and "Stream 2" multiple times.

Minimal reproduction project (MRP)

web-audio-sample-test.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    For team assessment

    Status

    For team assessment

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions