Skip to content

Possible memory leak inside emscripten_sleep #14768

@MizantropLoL

Description

@MizantropLoL

Anytime emscripten_sleep runs, it slightly increases usage of memory by the app (due to windows task manages). I thought it can be asynchronously calls, but memory usage kept increasing even if I remove functionality and run only

while(1)
emscripten_sleep(0));

Then I thought, It might be because of the allocator, which is deallocating memory but not letting it get to the system. Then I saw message for heap reallocation happening, I set breakpoint and at the time it was shooting, in the callstack I saw Asyncify.allocateData() inside handleSleep.
Asan detected no errors.
Would be great to hear some ideas of how to solve this issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions