Deleted media file crashes Shotcut

What is your operating system?
Arch
installed via AUR

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

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

  1. Find any .AVIV image file into any folder
  2. Open new project in Shotcut, add a video track.
  3. Drag the .AVIV to the timeline.
  4. Convert to edit-friendly will appear. Cancel it.
  5. With nothing on the timeline, delete the .AVIV in the folder.
  6. Wait a couple seconds until Shotcut crashes

There is a simple workaround: don’t do that. On Windows, the file is locked by the OS while in use to block doing that.
Also, AVIV is not a file type that I know of. AVIF?

yes, that was avif

It is nice to see that we gaining support for some AV1 AVIF image files through FFmpeg and dav1d. I will see what I can do improve it (duration and color transfer(iec61966-2-1 == sRGB)). I will look into this crash while doing so.

I could not reproduce the crash in our 24.04 AppImage or my development version on Linux running in a debugger. It does not even crash if I add it to the timeline or playlist. However, I did improve AVIF user experience by making it use the default image duration and not show the convert dialog.