OS crashes/reboots on high zoom levels

What is your operating system?

Ubuntu 24.04.1 LTS version on an older PC.
Mainboard Gigabyte Technology Co., Ltd. F2A88XM-HD3
AMD A10-5800K APU with Radeon™ HD Graphics × 4
RAM 8 GB
Hard disk 500 GB

What is your Shotcut version (see Help > About Shotcut)?

Shotcut version 24.11.17

Can you repeat the problem? If so, what are the steps?

Everything was fine while editing a video. in the end I added a picture and want to zoom in to the maximum - and fade it out.
I used 4 keyframes, first zooming in a little bit. Stay on this position and in the end it should zoom to max. 1000%
But as soon as I used the fader and zoomed over 600%, I heard the harddisk working very hard… and computer gets slow.
Then, suddenly I saw the ubuntu bootscreen. Shotcut crashed the whole operation system! I never saw this before.

After reboot, I tried again but only with 936%.
Then it showed that the memory is low…

I know I have less memory on this old computer. But it should never crash whole system.

How much free memory do you have exactly? Also do you have enough swap set up to push ram into hdd? I can do 1000% no problem.

If the system has 100% RAM and no swap available it will always crash no matter what program you use. You need to set up more swap.

Hello,

Swap file is set to default ubuntu settings, I didn’t change it. Perhaps I should increase it.

after opening shotcut and the project, total RAM usage is 2 GB of 7,5 GB total.
Shotcut only: 480 MB
Swap file is still 0 Bytes.

Then I go to the picture with the keyframes with high zoom level.

Opening tab keyframes: RAM usage of shotcut jumps directly up to 3,6 GB

Playing that part of video with high zoom level: RAM of shotcut goes to 5,1 GB.
And page file uses 129 MB.
Even after stopping play file, it stays high. Memory leak in program?

Then, total Ram usage is 6,8 GB of 7,5 GB (91%) and computer gets slow.

It is a very huge difference between 480 MB and 5,1 GB - which is only caused by the zoom feature.

Then I closed this project in shotcut. Shotcut then uses 615 MB RAM.
This is more than it uses before - even if the project was opened (see above, it was 480 MB).
So it doesn’t free all RAM which was used before for the zoom feature.

Hello,

Shotcut does not have the best memory management. Yes, memory leaks are present.
It is high likely using only 8GB RAM to crash. Even when it looks like in the task manager to use 70% of total RAM the usage it could be for micro to a few milliseconds memory usage spikes when your PC can ran out of RAM.
What you describe is that the zoom feature does first extend the frame to the zoom level and crop the frame later. This is indeed not memory efficient but it is the easiest and fastest way with the least bug potential.

You can try to use two zoom filters instead of one on your PC. The first is set to 300% → 9x in memory use instead of 600% 36x in mem use. And than use again the same filter with 200% of zoom with 4x in mem usage compared to the original frame.

Try to make a completely separate project just with that image zooming in, maybe that finishes exporting and you can just add the finished video into the original project.

Thanks you, both! These are good ideas.

I also hope that I can help to improve the program with my hints.

By the way, I increased the swap file with ubuntu. It is not so easy like in windows, it is necessary to type some commands in command line.

sudo dd if=/dev/zero of=/swapfile bs=1M count=8192
sudo chmod 0600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile

and file i /etc/fstab needs a new line:
/swapfile none swap sw 0 0

https://wiki.ubuntuusers.de/Swap/