obsidian-slide-note icon indicating copy to clipboard operation
obsidian-slide-note copied to clipboard

Excessive RAM usage

Open MA-Diab opened this issue 1 year ago • 2 comments

opening a file containing multiple pdf pages adds a few megabytes of allocated memory. closing the file does not free ram. it keeps adding up until the entire pc is slow. the problem seems with duplicates of pdf.worker.min.js {B226FABD-4F6D-4AEA-B7E4-241F66BC6CFE}

MA-Diab avatar Sep 22 '24 12:09 MA-Diab

Ops, I've never tried profiling memory before. Can you provide minimal instructions on how to reproduce this issue? Thanks.

Phantom1003 avatar Jan 13 '25 16:01 Phantom1003

To reproduce the issue:

  1. Enable Developer Tools (View > Toggle Developer Tools)
  2. Navigate to Sources
  3. Open a markdown file including slide-note-snippets
  4. Observe the amount of pdf.worker.min instances within the sources tab
  5. Closing the markdown file does not close the associated pdf workers.
  6. Opening the same markdown file again will result in new pdf.worker instances to be created.

Hemki avatar Apr 17 '25 16:04 Hemki