microsoft / microsoft/onnxruntime

Memory Leak in Onnx Session Release [Web]

Open
#21,673 2 comments 0 reactions 1 assignee Claimed by @fs-eire View on GitHub
performance platform:web
Dominant language
C++
Stars
21.9k
Forks
4.2k
Avg merge
4d 11h
Merged PRs (30d)
184

Description

### Describe the issue

memory leak is found after doing `session.release()`

![image](https://github.com/user-attachments/assets/9b97fe9c-89e3-4491-b784-bdc626e37972)

### To reproduce

npm install -g memlab

unzip the zip file provided below and run `index.html` in some server and return that url in url() function in `scenario_file.js`

and just run

memlab run --scenario scenario_file.js
memlab find-leaks --trace-all-objects

you can see the leaks

![image](https://github.com/user-attachments/assets/4cc90a48-4403-4011-a8fc-825e886bbdd7)

[Archive.zip](https://github.com/user-attachments/files/16548882/Archive.zip)

### Urgency

Very Urgent Need this Fix For complete my project

### ONNX Runtime Installation

Released Package

### ONNX Runtime Version or Commit ID

1.18.0

### Execution Provider

'wasm'/'cpu' (WebAssembly CPU)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.