SourceCodeSyntaxHighlight icon indicating copy to clipboard operation
SourceCodeSyntaxHighlight copied to clipboard

Quick looking imovie library killed computer (Memory leak)

Open Dandandooo opened this issue 7 months ago • 1 comments

I'm running an M2 Max macbook pro with 32 GB of ram.

The following happened Image

Dandandooo avatar May 02 '25 02:05 Dandandooo

I am having the same issue. The syntax highlight xpc render process takes over 100GB ram on my MBP16 M3 Max. OS is 15.4.1.

tomtangtrp avatar May 31 '25 07:05 tomtangtrp

Same on MPB16 M2 Pro in macOS 26

ko6an avatar Oct 09 '25 12:10 ko6an

This happens when you try to preview the file ~/Movies/iMovieLibrary.imovielibrary?

This is a special folder and it shouldn't be handled by my program...

sbarex avatar Oct 09 '25 19:10 sbarex

I was opening a sparse bundle folder a finder, which is huge (~1T). Then same issue happens here, I have to kill the app.

lijunle avatar Nov 04 '25 23:11 lijunle

I have a consistent repro steps:

  1. I have a sparse bundle file for Time Machine backup. The file is ~1TB size.
  2. Use Finder to show package content for that sparse bundle.
  3. Navigate to the bands folder which contains a lot of band file. Each file is ~5GB.
  4. Click on one of those band file. I think that triggers the highlight module.
  5. Check the activity monitor, the highlight module is growing its memory crazily.

Workaround:

Force quick the highlight module in activity monitor.

lijunle avatar Nov 05 '25 05:11 lijunle

In the main app, try to put a limit for the file size (for example 1 mb). A value of 0 means no limit.

Image

sbarex avatar Nov 05 '25 13:11 sbarex

Thanks! Set a limit mitigates the issue!

We should set a number as default value if that is causing serious memory issue.

lijunle avatar Nov 07 '25 19:11 lijunle