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

Audacity Bugzilla



Bug 2626 - Mac: Temporary files directory on exFAT makes Audacity fail at launch
Mac: Temporary files directory on exFAT makes Audacity fail at launch
Status: RESOLVED QUICKFIXED
Product: Audacity
Classification: Unclassified
Component: Application Core
3.0.0
Other macOS and Linux
: P1 Repeatable
Assigned To: Default Assignee for New Bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2021-01-07 05:10 UTC by Peter Sampson
Modified: 2021-01-11 06:43 UTC (History)
7 users (show)

See Also:
Steps To Reproduce:
1) In Directories prefs set the temp files directory to be on an exFAT formatted drive. 2) Observe: you can - Audacity allows this 3) Quit Audacity 4) In finder observe that the empty SessionData folder has been created successfully 5) Launch Audacity 6) Observe: Audacity fails to launch with error message >Audacity Startup Failure >An unrecoverable error has occurred >during startup
Release Note:
First Git SHA:
Group: ---
Workaround:
Closed: 2021-01-11 00:00:00
petersampsonaudacity: Test‑OK‑Win+
petersampsonaudacity: Test‑OK‑Mac+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Sampson 2021-01-07 05:10:48 UTC
On Mac placing Temporary files directory on an exFAT formatted drive makes Audacity fail at launch.

Audacity allows you to set the Temporary files directory on exFAT in Directories prefs - but when you close and relaunch Audacity to activate used of the related temp files Audacity fails on launch with the following error message:
>Audacity Startup Failure
>An unrecoverable error has occurred
>during startup

This occurs on 2.4.2 and remains on alpha 3.0.0 and was originally reported by Forun user Jarome:
https://forum.audacityteam.org/viewtopic.php?f=47&t=114990&p=413517
Comment 1 Peter Sampson 2021-01-07 05:15:00 UTC
Note carefully that the error message does not tell the user what the actual problem them is, nor is there a "?" help button - so this may well leave them mystified as to how to solve it.

Luckily user Jarome was smart enough to figure out what the problem was and suitably re-formatted the USB drive to MacOS Journaled - which worked.
Comment 2 Leland Lucius 2021-01-07 13:42:56 UTC
The problem is the use of the Unix domain socket for preventing more than 1 Audacity running at a time.

I (briefly) described a solution in http://bugzilla.audacityteam.org/show_bug.cgi?id=2052#c26.  It’s the “second solution”, but also look at comment 27.

This would get rid of the Unix domain socket altogether and we wouldn’t have any exFAT/FAT/FAT32/Network drive issues related to startup any longer.  However, it will take me a few days to remember what I was planning back then and then implement it.
Comment 3 Leland Lucius 2021-01-11 02:01:55 UTC
Fixed in:

https://github.com/audacity/audacity/commit/c961d62

This is a "major" redo of the single instance checking at startup on macOS and Linux. Good news is that there is no longer any special files used, so storing the temporary directory on exFAT (or network drives) should no longer be an issue.

To test, try starting Audacity and then try starting it again.  Try doing "Open With" while already active or not.  Try exiting all instances and try starting Audacity again.  Basically, any combinations you can think of.
Comment 4 Peter Sampson 2021-01-11 05:55:27 UTC
(In reply to Leland Lucius from comment #3)
Testing on macOS 11.1 Big Sur with Audacity 3.0.0 60ebe79

This now works properly as intended.
1) I can reset the Temporary Files to be on my exFAT USB clip
2) On relaunch, Audacity Launches properly
3) Temporary files are created on the exFAT USB stick
4) I can record to the USB stick and it works fine (no dropouts)
5) applying effects is pretty snappy
6) Open with - while project is open - also creates a set of temp files on the USB stick
7) I can save the temp projects to the USB stick whereupon Audacity cleans up the temp files properly

This is my most modern fastest USB stick  - the response at Step 5 shows I was wrong previously to seek to have exFAT excluded for temp files and project use.

This now works properly on Mac.


--------------------------------------------------------------

But in the process of testing on W10 I stumbled on a Windows-only residual which I will log separately.
Comment 5 Peter Sampson 2021-01-11 06:43:55 UTC
(In reply to Peter Sampson from comment #4)
>But in the process of testing on W10 I stumbled on a Windows-only residual 
>which I will log separately.

Logged as P1 Bug #2627
Win: FAT/FAT32 used after exFAT for Temporary files wrongly work