Selecting a video clip of a missing file causes crash,

What is your operating system?
Ubuntu Linux 18.04 (Kubuntu flavor)

What is your Shotcut version (see Help > About Shotcut)? Is it 32-bit?
replicated on 21.01.29 and 21.02.15
problem does NOT occur on 18.11.18

Can you repeat the problem? If so, what are the steps?
See videos.
It happens in 21.01.29 and 21.02.15, on the click to select the missing clip.

Video of Crash in 21.01.29 and 21.02.15

I ran into this problem trying to replicate another difficulty reported by a newbie.

Had problem on 21.02.15.
Replicated problem on 21.01.29.
When I tested on 18.11.18, there is no crash; it acts as if the file is still there.

Video of Oblivious 18.11.18

Obviously, this is not a procedure one would likely follow; I was trying to bring up the “Missing Files” error message reported by a perplexed newbie.

That may depend upon caching in the engine and the number of tracks regardless of version. While you can have hundreds of clip objects in the playlist and timeline, we cannot keep all of the files open as processes are limited in how many open files they can have. Also, along with the open files is other memory structures including sometimes images, and we need to keep memory usage low. So, the internals of some of these objects including file handles are cached so that only the N most recently used are held open and in memory. N depends on the number of tracks and version of software, but currently is it is 2 * (N+1). It is never always possible to act as if the file is always there when it is actually not. On Linux, when you delete a file that Shotcut has open, you can still use it as it still on disk until something overwrites or zeroes it. On Windows, it is locked - at least on NTFS - preventing you from deleting it.

That said, with a quick test, I did not yet reproduce it, and I will try more later. If the file is gone when trying to restore the uncached clip object, Shotcut needs to try handle it without crashing. Per the engine default configure, this would show as white frames. It does not show “INVALID” until the project is reloaded and the missing files ignored.

I reproduced this now and have a fix for the next version 21.02

1 Like

Our replies crossed in simultaneous typing…

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.