SourceCodeSyntaxHighlight
SourceCodeSyntaxHighlight copied to clipboard
Quick looking imovie library killed computer (Memory leak)
I'm running an M2 Max macbook pro with 32 GB of ram.
The following happened
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.
Same on MPB16 M2 Pro in macOS 26
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...
I was opening a sparse bundle folder a finder, which is huge (~1T). Then same issue happens here, I have to kill the app.
I have a consistent repro steps:
- I have a sparse bundle file for Time Machine backup. The file is ~1TB size.
- Use Finder to show package content for that sparse bundle.
- Navigate to the
bandsfolder which contains a lot of band file. Each file is ~5GB. - Click on one of those band file. I think that triggers the highlight module.
- Check the activity monitor, the highlight module is growing its memory crazily.
Workaround:
Force quick the highlight module in activity monitor.
In the main app, try to put a limit for the file size (for example 1 mb). A value of 0 means no limit.
Thanks! Set a limit mitigates the issue!
We should set a number as default value if that is causing serious memory issue.