lutzroeder / netron

Visualizer for neural network, deep learning and machine learning models
https://netron.app
MIT License
27.71k stars 2.75k forks source link

Find sidebar virtualization #1358

Open beru opened 1 week ago

beru commented 1 week ago

Steps to Reproduce:

  1. Open efficientdet-d3.onnx file.
  2. Open the FIND sidebar.
  3. Close the sidebar
  4. Repeat open/close until the problem occurs.

Please attach or link model files to reproduce the issue.

lutzroeder commented 1 week ago

@beru can you investigate why this is happening.

beru commented 1 week ago

@lutzroeder

can you investigate why this is happening.

Chromium based browsers show Error code: Out of Memory though my PC has 64.0 GB of installed RAM. This problem happens on both of Windows and Linux.

screenshots ## Google Chrome Version 128.0.6613.138 (Official Build) (64-bit) ![image](https://github.com/user-attachments/assets/19683283-538a-4c3c-aa7c-0f855a70e089) ## Microsoft Edge Version 128.0.2739.79 (Official build) (64-bit) ![image](https://github.com/user-attachments/assets/ee076aa5-fbbb-4bcb-ad52-75e7a9e4b13e)
lutzroeder commented 1 week ago

@beru any insights why this is happening? Are there any structures not getting disposed?

beru commented 1 week ago

any insights why this is happening? Are there any structures not getting disposed?

I'm not sure since I still haven't debugged Chromium for this. I suspect this is a memory leak defect.

beru commented 1 week ago

I've noticed that even without using a lot of <svg> elements in FIND sidebar, this problem eventually occurs after repeatedly open/close the sidebar.

screenshot ![image](https://github.com/user-attachments/assets/06aee036-157a-4ae1-b478-8981ad56a5f8)