I downloaded shotcut-linux-x86_64-25.11.2.AppImage. I opened the app and started editing a video but as soon as I add an audio file (flac format), the app started to leak memory. The memory usage whent from 1GB to 36GB in few minutes. What to do.
My os is Ubuntu 24.04.3 LTS
I reproduce the problem with some .flac files but not some others. The one that does have a problem is 44.1 Khz and shows an invalid Duration in Properties–over 23860 hours. Some ways of adding this to the timeline prompts me for a duration but not others. If not prompted adding that many hours tries to allocate a huge chunk of memory to represent it on the timeline, which is an obvious problem. But even when prompted for a duration for this problematic file (for example, drag-n-drop from file manager to add), when I give it a correct or shorter duration it was problematic.
Another flac I have that is 96 Khz and has a correct Duration is working fine. Something about the way some tools or their version wrote the file seems to trigger the problem.
A workaround for me was:
- Remuxing it to .mkv with ffmpeg
ffmpeg -i problematic.flac -c copy ok.mkv - Or remuxing it to a new .flac with ffmpeg
ffmpeg -i problematic.flac -c copy ok.flac
I figured out the problem I had with the invalid Duration was causing a problem with generating the audio waveform data. It was trying to generate 23860 hours of it! I fixed this for the next version 25.12 by skipping its generation if more than 24 hours long.
Another workaround in the meantime is to disable waveforms in Settings > Timeline > Show Audio Waveforms.
Thank you!