2.0.6 bug (windows)

Help for Audacity on Windows.
Forum rules
ImageThis forum is for Audacity on Windows.
Please state which version of Windows you are using,
and the exact three-section version number of Audacity from "Help menu > About Audacity".


Audacity 1.2.x and 1.3.x are obsolete and no longer supported. If you still have those versions, please upgrade at https://www.audacityteam.org/download/.
The old forums for those versions are now closed, but you can still read the archives of the 1.2.x and 1.3.x forums.
Post Reply
username2
Posts: 6
Joined: Tue Jan 15, 2008 6:47 pm
Operating System: Please select

2.0.6 bug (windows)

Post by username2 » Thu Oct 09, 2014 4:47 pm

This started with 2.0.6, it was working good in 2.0.5. Now, when I import a file, do some work on it, export it to a new file, and close it... it doesn't fully close in the operating system (Windows 7). That is, I can't delete the original file until I completely exit Audacity. I get "The process cannot access the file because it is being used by another process." error when trying to delete it. Is there a place for bug reports, or is this help forum it? :)

steve
Site Admin
Posts: 81627
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: 2.0.6 bug (windows)

Post by steve » Thu Oct 09, 2014 5:16 pm

In "Edit > Preferences > Import/Export", which of the first two options is selected?
Does it make a difference which is selected?
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Robert J. H.
Posts: 3633
Joined: Thu May 31, 2012 8:33 am
Operating System: Windows 10

Re: 2.0.6 bug (windows)

Post by Robert J. H. » Thu Oct 09, 2014 7:36 pm

I can confirm the bug. I always import copies and recently I've had just this problem, deleting an imported file with no dependencies was blocked. Thanks for mentioning it, I almost forgot.

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: 2.0.6 bug (windows)

Post by Gale Andrews » Fri Oct 10, 2014 10:53 am

username2 wrote:This started with 2.0.6, it was working good in 2.0.5. Now, when I import a file, do some work on it, export it to a new file, and close it... it doesn't fully close in the operating system (Windows 7). That is, I can't delete the original file until I completely exit Audacity. I get "The process cannot access the file because it is being used by another process." error when trying to delete it.
Thank you, but I can't reproduce that yet on Windows 7 x64, Audacity 2.0.7-alpha (logged in as admin). I tried MP3, then WAV (copying in the files or not, and exporting over the same file or not). I used Windows Explorer to delete files, but I do have xplorer2 installed.

I think I may have seen something like this once on Windows 8.1, but given the way files can get locked on Windows, I did not think much of it.

Users have been known to complain that if you import a WAV using "read directly", that you are allowed to delete it, therefore destroying your project. I can do that easily today. We decided we could not easily lock the file.

So can you and Robert give exact steps to reproduce? Exactly what format of file, exact file names, the Import / Export settings Steve mentioned, exactly how you "close" the file in Audacity. By the way, you never really open the file in Audacity. You make a copy to lossless PCM, but if you read a WAV or AIFF file "directly", data is only copied in for sections that you edit.
username2 wrote:Is there a place for bug reports, or is this help forum it? :)
You can either send bug reports to our feedback address or write on this Forum if you are already a member.

Thanks,


Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

username2
Posts: 6
Joined: Tue Jan 15, 2008 6:47 pm
Operating System: Please select

Re: 2.0.6 bug (windows)

Post by username2 » Sat Oct 11, 2014 4:38 pm

steve wrote:In "Edit > Preferences > Import/Export", which of the first two options is selected?
Does it make a difference which is selected?
It's on "Read uncompressed audio files directly from the original (faster)"
I just now changed it to "Make a copy of uncompressed audio files before editing (safer)" - made no difference to this issue.
Now, I am working with compressed video files, and not uncompressed audio files... I will try that next.
Gale Andrews wrote: Thank you, but I can't reproduce that yet on Windows 7 x64, Audacity 2.0.7-alpha (logged in as admin). I tried MP3, then WAV (copying in the files or not, and exporting over the same file or not). I used Windows Explorer to delete files, but I do have xplorer2 installed.

I think I may have seen something like this once on Windows 8.1, but given the way files can get locked on Windows, I did not think much of it.

Users have been known to complain that if you import a WAV using "read directly", that you are allowed to delete it, therefore destroying your project. I can do that easily today. We decided we could not easily lock the file.

So can you and Robert give exact steps to reproduce? Exactly what format of file, exact file names, the Import / Export settings Steve mentioned, exactly how you "close" the file in Audacity. By the way, you never really open the file in Audacity. You make a copy to lossless PCM, but if you read a WAV or AIFF file "directly", data is only copied in for sections that you edit.
The exact steps are...
1 - open audacity (obviously)
2 - file, import audio, select a file. (I'm using a mp4 video file.)
3 - I run Compressor effect on the entire track
4 - file, export audio, using default name and directory. type is m4a (aac) files (ffmpeg). Advanced mixing I leave alone (2 channels), hit ok. I leave metadata empty, hit ok.
5 - wait for export to finish, file, close. Save changes before closing? No.
6 - I use another program, mmg (mkvmerge gui) to mux the mp4 video with the new m4a audio into a new mkv file.
7 - (in command prompt) del file.m4a (success)
8 - del file.mp4 ("The process cannot access the file because it is being used by another process." error)
9 - (in audacity) file, exit
10 - del file.mp4 (success)


Now, interestingly, I tried the above steps with a WAV file instead of an mp4, and it successfully deleted it at the end without exiting audacity.

To narrow it down further, I have done these steps:
1 - open audacity (obviously)
2 - file, import audio, select a file. (I'm using a mp4 video file.)
3 - file, close. Save changes before closing? No.
4 - del file.mp4 ("The process cannot access the file because it is being used by another process." error)
5 - (in audacity) file, exit
6 - del file.mp4 (success)

Maybe this is an issue with ffmpeg?
I'm using ffmpeg-win-2.2.2 in its default "Ffmpeg For Audacity" directory.

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: 2.0.6 bug (windows)

Post by Gale Andrews » Sat Oct 11, 2014 6:36 pm

username2 wrote: The exact steps are...
1 - open audacity (obviously)
2 - file, import audio, select a file. (I'm using a mp4 video file.)
3 - I run Compressor effect on the entire track
4 - file, export audio, using default name and directory. type is m4a (aac) files (ffmpeg). Advanced mixing I leave alone (2 channels), hit ok. I leave metadata empty, hit ok.
5 - wait for export to finish, file, close. Save changes before closing? No.
6 - I use another program, mmg (mkvmerge gui) to mux the mp4 video with the new m4a audio into a new mkv file.
7 - (in command prompt) del file.m4a (success)
8 - del file.mp4 ("The process cannot access the file because it is being used by another process." error)
9 - (in audacity) file, exit
10 - del file.mp4 (success)

Now, interestingly, I tried the above steps with a WAV file instead of an mp4, and it successfully deleted it at the end without exiting audacity.

To narrow it down further, I have done these steps:
1 - open audacity (obviously)
2 - file, import audio, select a file. (I'm using a mp4 video file.)
3 - file, close. Save changes before closing? No.
4 - del file.mp4 ("The process cannot access the file because it is being used by another process." error)
5 - (in audacity) file, exit
6 - del file.mp4 (success)

Maybe this is an issue with ffmpeg?
I'm using ffmpeg-win-2.2.2 in its default "Ffmpeg For Audacity" directory.
OK, thanks for the steps. Yes, it happens if FFmpeg imports the file, even if it's a WAV.

It doesn't happen in 2.0.5, but you can't use FFmpeg 2.2.2 in 2.0.5 so there is no easy test.

It doesn't happen on Mac in 2.0.6. It could be some specific of how the FFmpeg 2.2.2 build for Windows was made. The source of the FFmpeg 2.2.2 builds for Windows is "Zeranoe" but the FFmpeg 0.6.2 for Windows that Audacity 2.0.5 used was built elsewhere. I'll ask on the Zeranoe forum just in case they can shed any light on it. I do see reference there to an old file-locking issue on Windows https://github.com/FFmpeg/FFmpeg/commit/ad8173eb but that is now fixed.


Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

Post Reply