Audacity Bug Summary
••• Introduction •••
••• Keywords •••
    Audacity 3.0.3 development began 19th April 2021

Audacity Bugzilla



Bug 396 - "Files Missing" warning conflicts on project open with the "Missing Aliased File(s)" warning
"Files Missing" warning conflicts on project open with the "Missing Aliased F...
Status: RESOLVED FIXED
Product: Audacity
Classification: Unclassified
Component: User Interface
1.3.14 alpha
Per OS All
: P4 Repeatable
Assigned To: Default Assignee for New Bugs
https://sourceforge.net/mailarchive/f...
: patch
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-05-10 18:40 UTC by Gale Andrews
Modified: 2018-08-20 11:46 UTC (History)
5 users (show)

See Also:
Steps To Reproduce:
1 Launch Audacity 2 Open "\tests\Project Check tests\missing_aliased_and_auf_files.aup" 3 The "Files Missing" warning appears which can be seen as conflicting with the "Missing Aliased File(s)" warning (you are offered the choice to treat as or replace with silence while being told that silence already is being substituted.
Release Note:
First Git SHA:
Group: ---
Workaround:
Closed: 2018-08-20 00:00:00


Attachments
Stop timer operating while we do checks (706 bytes, patch)
2011-05-11 19:30 UTC, Martyn Shaw
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Gale Andrews 2011-05-10 18:40:00 UTC
This only happens *if* Audacity is already open (even if you execute the .aup from Explorer on Windows). 

If you execute the .aup so that it launches Audacity, the "Files Missing"
warning does not appear. 

On Windows 7, the "Files Missing" warning comes on top of the "Missing Aliased File(s)" warning at some times, but other times is behind it.  

On Ubuntu, the "Files Missing" warning is always on top of the "Missing 
Aliased File(s)" warning (and as where it appears on top of the 
Amplify dialog) cannot be OK'd or dismissed until the dialogue it is on
top of has been OK'd or dismissed.

Although the above is repeatable, most other projects where the aliased file is missing do not display this issue. But Vaughan reports in the URL thread that: 

> A friend sent me an Audacity project. He had some aliased files on  
> his desktop, but enclosed them in the rar he sent. So, of course when I
> try to open them on my machine, the project file specifies his desktop  
> and Audacity sees the files as missing.

I've tried recreating this situation by creating a project depending on aliased files residing on the Desktop, then moving them to the same folder as the project, or inside the project's _data folder, without success. So the bug is moonphase. 

The only way I can create the issue is to create a project with an aliased file 1 second long that therefore only has one .auf file.
Comment 1 Martyn Shaw 2011-05-11 19:30:23 UTC
Created attachment 175 [details]
Stop timer operating while we do checks

Oh what a tangled mass of error message logic we weave!

We could stop the timer from throwing up the message while we run the DirManager::ProjectFSCK checks, as in this patch.

But...
A user could then select
"Treat missing audio as silence (this session only)"
but then get the offer:
"Project check detected %d missing alias (.auf) blockfile(s). Audacity can fully regenerate these files from the original audio in the project."
which looks like we said we would treat the missing bits as silence, but then volunteer to "fully regenerate these files"!
Comment 2 Martyn Shaw 2011-05-11 19:32:41 UTC
This is 100% repeatable, not 'moonphase'
Comment 3 Gale Andrews 2011-05-12 15:08:09 UTC
Added patch keyword.

> Stop timer operating while we do checks
Thanks, Martyn. This stops the "Files missing" error appearing for me on Windows when launching Audacity then opening "\tests\Project Check tests\missing_aliased_and_auf_files.aup".

> This is 100% repeatable, not 'moonphase'
The test project is repeatable, but it was never repeatable for me or Bill with other arbitrary projects where the aliased file was missing. 

> A user could then select
> "Treat missing audio as silence (this session only)"
> but then get the offer:
> "Project check detected %d missing alias (.auf) blockfile(s). Audacity can
> fully regenerate these files from the original audio in the project."
> which looks like we said we would treat the missing bits as silence, but
> then volunteer to "fully regenerate these files"!

See: 
http://bugzilla.audacityteam.org/show_bug.cgi?id=20#c46
Comment 4 Bill Wharrie 2011-05-19 10:06:26 UTC
Steps to reproduce:
With Audacity 1.3.14 May 4 2011
1) New Project
2) Import one or more AIF or WAV files with read directly
3) Zoom in so the timeline shows about 2 seconds
4) Save project and quit Audacity
5) Move or rename the imported files
6) Open the project either by first starting Audacity and using File > Open or File > Recent Files, or by double-clicking the project
- double warning appears

Has Martyn's patch been committed?
Comment 5 Gale Andrews 2011-05-19 15:04:53 UTC
(In reply to comment #4)
> Audacity 1.3.14 May 4 2011
> 1) New Project
> 2) Import one or more AIF or WAV files with read directly
> 3) Zoom in so the timeline shows about 2 seconds
> 4) Save project and quit Audacity
> 5) Move or rename the imported files
> 6) Open the project either by first starting Audacity and using File > Open or
> File > Recent Files, or by double-clicking the project
> - double warning appears
What do you mean by "double warning" - that you get "Files Missing" as well as "Missing Aliased Files" on opening the project? And that unlike Win/Linux you get "Files Missing" even if you launch Audacity?

The bug was marked as "Windows and Linux" because I understood you could not repro it on Mac. Please change OS to "All" if you think that is now appropriate. 


> Has Martyn's patch been committed?
No. That's why this bug says "NEW" instead of DEVEL - FIX MADE". Still needs a developer to approve the patch in this case.

If you wanted to build on Mac maybe Paul could help you?
Comment 6 Bill Wharrie 2011-05-19 15:23:13 UTC
(In reply to comment #5)
> What do you mean by "double warning" - that you get "Files Missing" as well as
> "Missing Aliased Files" on opening the project?

Yes. "File(s) missing" appears first when Audacity tries to draw the waveform, then "Warning - Missing Aliased file(s)" appears after the project check.

> And that unlike Win/Linux you get "Files Missing" even if you launch 
> Audacity?

Yes. Launch Audacity then do File > Open or File > Open Recent and open the project.

I don't understand how this could be dependent on first launching Audacity versus double-clicking the project file, as the "File(s) Missing" dialog is triggered when Audacity tries to read the file in order to draw the waveform.

> The bug was marked as "Windows and Linux" because I understood you could not
> repro it on Mac. Please change OS to "All" if you think that is now
> appropriate. 

Done.
Comment 7 Gale Andrews 2011-05-19 17:46:03 UTC
(In reply to comment #6)
> Launch Audacity then do File > Open or File > Open Recent and open the
> project.
That will give you the "Files Missing" warning on Win and Linux too. As it says in the Description:
> This only happens *if* Audacity is already open... If you execute the .aup so 
> that it launches Audacity, the "Files Missing" warning does not appear.  

If you quit Audacity on Mac so that Audacity is no longer running, then execute the .aup and you see "Files Missing", it's different behaviour to Win/Linux.
Comment 8 Michael Chinen 2011-06-01 14:34:38 UTC
patch tested and reviewed on mac.
Committed in r11185.
Comment 9 Martyn Shaw 2011-06-01 19:05:05 UTC
(In reply to comment #8)
Thanks Michael!
Comment 10 Gale Andrews 2011-06-07 03:50:13 UTC
Fine on Ubuntu too, so RESOLVED - FIXED. Thanks, Martyn.