Problem

During playback or export of a sequence, Avid Media Composer aborts the operation with the error Exception caught in APlayer::Play - Exception: DISK_TOO_MANY_OPEN, filename: XXX_Filename.mxf.

Cause

Presumably, this error is caused when Media Composer attempts to open (access) more files than the maxfiles soft limit set in macOS. Numerous people reported this error, and we have observed it when using a Filesystem in Userspace (FUSE) in combination with external hard drives. This error, however, can also happen when using Media Composer with internal hard drives or on a shared storage.

Temporary Solution (macOS)

1. Close Media Composer.
2. Open a macOS Terminal.
3. Type sudo launchctl limit maxfiles 65536 and press enter.
4. Open Media Composer.
5. Try to reproduce the DISK_TOO_MANY_OPEN error.

If the error message is no longer appearing, you can make the new maxfiles value a permanent setting.

Permanent Solution (macOS)

Check and Note your Current Soft and Hard Limits

1. Open a macOS Terminal.
2. Type launchctl limit maxfiles and press enter.

The output should look similar to this:

maxfiles  256  unlimited

3. Copy & paste the output to a text file and save it.

Apply the Permanent Solution

1. Download the limit.maxfiles.plist file from Projective (“Right-click” and “Save as…”).
2. Move the file from the download directory to /Library/LaunchDaemons/.

sudo mv ~/Downloads/limit.maxfiles.plist /Library/LaunchDaemons/

3. Set proper file ownership:

sudo chown root:wheel /Library/LaunchDaemons/limit.maxfiles.plist

4. Set proper file permissions:

sudo chmod 644 /Library/LaunchDaemons/limit.maxfiles.plist

5. Load the new configuration file:

sudo launchctl load -w /Library/LaunchDaemons/limit.maxfiles.plist

6. Your new open file descriptors limit should be permanently stored. Reboot your system and check your new soft and hard limits:

launchctl limit maxfiles
Last modified: Nov 18, 2020

Need more help with this?
Visit the Projective Support Websites

Thanks for your feedback.