MLT Files Are Getting Corrupted & Says Files Are Missing When They Are Not

Normally I post a bug report when I have already figured out what the cause for a bug is. This time though I am calling attention to a critical bug that I have experienced a couple of times on the latest version 21.02.27 but have still not found the cause.

It seems similar to the previously reported bug back in the beta thread for 21.01:

Like that bug something would be done in the timeline that would prevent the project from being exported by way of this message popping up after clicking the export button:

image

Well, this time the above would happen but then when you close the session and repoen the mlt file, this kind of message would appear:

So it lists the source file as “blank” like the above image shows which makes no sense because that of course was not the name of the file, it has no extension listed and no files were moved. It seems that the mlt file gets corrupted somehow.

Like I said, I have not found the cause for it yet but someone on youtube very recently posted a video with an issue that seems very similar:

His video is about showing a workaround to deal with the bug. Judging from the comments on his video many other people are experiencing this too. @shotcut you may want to ask the above person from the youtube video if he would be willing to share that corrupted mlt file of his with you so that you can look into it. I don’t know though if his cause is the same as what I experienced but it’s worth asking if he still kept that problematic mlt file because this bug is pretty critical.

I’ll keep trying to reproduce it on my end to see if the issue matches his. If anyone else also experiences it please post in this thread. :slightly_smiling_face:

Thank you @DRM for posting this as a bug. I have been hesitant to do so, because (1) it does not effect me directly (2) I haven’t personally experienced it, and (3) seniority and stature that I haven’t earned yet in this venue.

What I have been doing is tracking it and seeing the pattern emerge,
@DRM, you are the fourth (or more likely the 5th; one unconfirmed.) to report this problem here. Multiply that by the ratio of field experiences by users to those who make reports…

Commonality: The file named “blank”.

(Those posts contain the links to the other cases reported on Forum.)

What mlt file?

Basically the video is a different report of the same thing @kagsundaram linked to and provides the instructions for what I did to fix it in that thread. But nowhere closer unfortunately.

1 Like

I too have seen this, though it was before I figured out how to create a workflow without duplicating .mit files.

Which I did because I was seeking to preserve formatting without having to re-do everything though it created problems of it’s own, one of which was that I had to delete all the files connected to the prior project (which the .mit file I was working with was originally linked to because despite renaming it, all it’s properties as a file from a prior project remained intact).

And oftentimes a “blank” file would turn up that would need to be relinked, which I just associated with any file from that original folder and everything reconciled.

And while what I described doesn’t sound like how you encountered this issue, I’m just putting it out there in case you can find it of use.

And it’s worth mentioning that since I stopped doing that I have seen no “blank” files.

1 Like

I made a change so that “blank” and “<tractor>” do not appear as missing files or block export. That does not fix the root cause of how these are introduced, and it does mean the root issue will be masked further in the future. I have heard people report about this in missing files or the related “INVALID” in video output for years here and on social media. “INVALID” may appear due to an invalid <tractor> but also for other reasons. It seems for the “blank” issue I have manually fixed for people that it often does not show as something ugly and unexpected in the output because blank is, well, blank.

The recent uptick in these incidents is mainly because version 21.01 added a check at export that is blocking:

Fixed Export File does not check for missing files.

Meanwhile, its appearance in Missing Files has been easily ignored. We added an Ignore button to this export error dialog for the next version.

1 Like

I am facing a similar issue. After exporting my project the .mlt file is now (more or less) blank.

It doesn’t include any of the original sources in the MLT file after export. When opened in Shotcut it shows a blank white project with no timeline or tracks.

I lost about 2 hours of work because of this MLT getting corrupted.

I’m using 21.03.21 (just upgraded today)

Any timeline or workaround on a fix of this? Is there a version I should downgrade to for the time being?

The problem you describe is different and not a known, accepted problem. So, there is no fix pending, and downgrade is unlikely to make a difference.