"Failed to open."

I got this failed to open message as well. Can you please explain how to solve this? I would like to recover the file if possible.
image

@scrapmetalmade unfortunately that user never reported how the issue was solved.

What version of Shotcut are you using?
Which operating system?

Windows 10, latest version of shotcut.
image
image

I was able to open the mlt file with notepad++. I made a copy and changed a few of the resource files to just the file name rather than the path.
From this:
image
To this:
image
When I did this shotcut prompted me to find the files. I directed shotcut to the files successfully (green check marks) but then I got the same failed to open error message.

To clarify I did not change every source file, just a few. I can try changing every source file later if someone thinks that would help. There are a lot of files though so this will take some time.

Ok so I found this is my application log:
image
Here are those rows:
image
image

Solved!

First I tried changing the source file path associated with the error rows. This did not work so I just deleted the whole section of code associated with the error rows. See highlighted rows below.


I may have lost some info, I haven’t dug through all of the mlt file yet but it looks mostly complete. I hope this helps someone. I am very happy that I saved myself probably another 6 hrs.

I wouldn’t want anyone to think that this is some slight error that only needed manual tinkering like you did because now I am convinced that this is a bug that was introduced recently to Shotcut. Not only did you come in to report this but another person started a thread like yesterday about the same thing and this is after me getting the “Failed to Open” message in Shotcut 3 times ever since I downloaded the newest version (18.08.11). That has never happened to me before and the fact that it has happened 3 times in just a few days of downloading this version makes me convinced that it is a new bug.

This bug worries me because somehow Shotcut is corrupting mlt files and not letting you open them again which means you can’t work on a project. The first two times that it happened it was on minor things so it wasn’t a big deal but the 3rd time it was on a long project that I have been working on for some time. It did this but luckily (since I don’t ever really do this) I had saved an earlier mlt file of the project. Had I not had that accidental older mlt I made, about a month’s work would’ve been gone. I still had to redo the things I was doing that was saved on the newer mlt file though.

I was thinking about making a bug report on it but the thing is I honestly have no idea what causes this bug to corrupt mlt files. It has happened 3 times to me in a short time on three different projects so I have no idea but the fact that this is happening with several people on this forum since the release of 18.08.11 means there is something going on. I just don’t know how to go about honing in on what’s triggering it. I do remember on the long project that Shotcut was getting buggy with me moving around some clips that I created a transition for (one of the clips just disappeared for no reason) and I closed Shotcut and when I went to reopen it it just said “Failed To Open” and wouldn’t start the project again.

I hope this can be investigated and fixed for the September release.

1 Like

Good find! I have seen a problem like this years ago with metadata embedded in the media files, and there was a fix for it. In this case, this is bad text data is coming from the text box in the Properties panel of Shotcut. I will have to add some filtering there now to prevent this problem. Instead of deleting the whole <producer>...</producer> block, you could have simply deleted the lines with the offending characters. Thank you for finding it and reporting it.

Hmm, that worries me. Did you view the log or open these .mlt files to look for a similar problem? I will review all the changes from 18.08.01 to 18.08.11 to see if there is a possible reason, but it will be easier to find steps to reproduce.

I found the the bug and am preparing another version (18.08.14) to release to fix it since it is a major regression.

1 Like

Hi Grobi,
I think I’m having the same issue as you- Shotcut keeps displaying the phrase ‘failed to open…’ (with my file name) and I’ve tried deleting and re-installing the programme. I’m aware there is another update available which may or may not fix the problem but I can’t download the update off of the Fosshub website. Please could you tell me how you resolved the issue or any advice really- the project’s quite important as it’s part of exam coursework.
Thanks
Lola

Hi,
I’m aware it’s been a while since this conversation has been active and there have been several updates since but I’ve been getting the same ‘failed to open…(file name)’ as others. I’ve tried deleting and re-installing the programme but am unable to download the latest version (19.01.27). I’m not sure if I’m just clicking on it wrong but I’d really appreciate advice on how I might recover my file (if possible!)
Thanks
Lola

I’m having the same issue. A .mlt file I saved using version 18.12 won’t open now. I get the same “Failed to open…” message. I just downloaded version 19.01 and it will not open the file either. Very frustrating. Hours of work lost if I can’t open this file!

I can’t even open the file in TextEdit (mac version of Notepad++). Going to look for something to throw or punch…:rage:

Did you ever make a backup copy of this file?
If so, did you try to open the backup copy?

No, I didn’t make a backup.

Upload your MLT file here and I’ll take a look at it. I don’t have a Mac though, I believe @shotcut does.

Here’s the file: NOT DONE Desk for Music Room.mlt (109.5 KB)

Thank you for offering to help!

Not sure what happened, and this has come up before but nobody has a solution.
The file you have is not repairable, sadly to say, as far as I know.
2019-02-03_15-04-26

This is a healthy MLT file.
2019-02-03_15-05-26

That’s what I was afraid of. Thanks for confirming. It took a really long time to save the last time I saved it. I guess it was just busy wiping out all of my hard work. :unamused:

I am sorry for your trouble. Until I can find the root cause, for the next version, I will make Shotcut first save to a temporary file, check if the temp file is all NULs, and only move the temp file to the target location once it is OK. If it fails, then there will be a message that saving has failed. This might require an app restart to resolve and the loss of some work since the last successful save, but it is better than losing all work.