-
Notifications
You must be signed in to change notification settings - Fork 572
File removed from project remains locked in Windows 10 #3435
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I cannot reproduce this with Win7. Make sure that you didn't miss the steps in "steps to reproduce the behavior", probably, some action is missing.
|
I confirm this with 2.5.1-dev2 (July20) Win 10 Furthermore the exported file is locked - so cannot be moved or deleted - though it can be played by eg VLC. |
|
It seems that OpenShot keeps undo history - even when a project is saved. So in theory you can re-open a project and un-delete a file from previous sessions - so long as it has not been deleted in the file system in the meantime. Not exactly a sensible logic in my view, but apparently by intent. Yuk. |
Yeah, it's intended as a feature. I don't much like it either, and it causes real problems. That being said, I don't think it's the cause of this problem. Which is to say, the file isn't being held open intentionally because it might be in the project history, and I suspect it would remain locked even if the history is turned off or cleared. (It is possible to clear the undo history using Edit > Clear History, and that will destroy the accumulated list. Doing it right before save will get you a project file with no history entries in it. That's a step I recommend taking before saving very involved projects, to help reduce the size and complexity of the resulting file. It's also possible (now) to set the undo limit to 0 steps, and that will prevent any history being stored in the project file — but it will also mean that you have no Undo protection even within a session. I definitely don't recommend that.) The fact that this isn't reproducible under Windows 7, even with the same (or more recent) OpenShot builds, is actually very helpful information, because it means the issue is most likely the result of a change made by either Qt or Microsoft. We certainly don't have any code that intentionally acts differently based on whether it's running in Win7 or Win10. I can't imagine how we'd even go about doing that if we wanted to. A run of What we'd really need to do is dig around in the running process memory and see where there are still file handles open to the image in question. That'd be kind of an undertaking. |
Rats again! Sorry about that, memory playing me tricks. |
I'm going to close this in favor of #3791, since the dissection of this problem is farther along there and there's more concrete information about what's going on with it. But rest assured that the problem is still being tracked, and @ItsJustATypo or anyone else is encouraged to subscribe to #3791 to continue following it. |
Thank you for the excellent program!
Describe the bug:
An image file imported into the project, and then removed, remains locked by the program, according to Windows 10.
(Buh? Maybe it's not controllable by the program.)
Steps to reproduce the behavior:
Expected behavior:
After a file is removed from the project, it is unlocked and available to Windows for file operations.
System Details:
Log Files:
Exception / Stacktrace:
Screenshots:

The text was updated successfully, but these errors were encountered: