Knowledge base

Exception: DISK_TOO_MANY_OPEN

Posted in Pro Tools

This error can occur on a Mac system for multiple reasons. One reason could be that the OS is complaining that too many files are open. This is a limit that can be adjusted in the OS through the Mac Terminal.

(This issue can also be caused by the following:  http://avid.force.com/pkb/articles/en_US/error_message/en263503 )


TO CHANGE:
When you get the error in a project close out of Avid Media Composer and open Mac Terminal

Type:
launchctl limit maxfiles 2048  and hit RETURN.

Then go back to the project and see if the errors continue.
Sometimes this number will need to be adjusted up or down. You can try different levels by returning to Terminal and using a different number in the command above.

This will now allow the OS to have 2048 data files open as apposed to the default 256. If you restart the system the setting resets itself.
 
The following can be performed to have the setting persist between reboots.
 
Open Terminal and type
sudo su -

You will be prompted for the Admin password for the system. Enter it and hit RETURN.

Type:
echo “limit maxfiles 2048 400000″ > /etc/launchd.conf

*The first number in this example (2048) is the "soft limit" and the second number is the "hard limit". We want to raise the soft limit.

Default is 256 for the soft limit and unlimited for the hard limit. Snow Leopard (10.6) does now allow "unlimited" to be used so a large number can be used in it's place.

Reboot the system.
Confirm the change by:
 
Open Terminal and type
launchctl limit

Maxfiles should now read the new values.


TO REMOVE:
To remove this line from the file
    1.    Select Applications in the Finder side menu.
    2.    Open the Utilities folder, and then click Terminal.
Terminal starts.
    3.    Type more /etc/launchd.conf, and then press RETURN.
The contents of the file launchd.conf opens.
    4.    If you see "limit maxfiles 2048 400000" and other lines in the file, go to step 1 of the procedure below.
OR
If you see only the line "limit maxfiles 2048 400000", continue to step 5.
    5.    Type sudo rm /etc/launchd.conf, and then press RETURN.
    6.    Type your password when prompted, and then press RETURN.
    7.    Restart the computer.

Use this procedure if you found multiple lines in step 4 in the procedure above.
To remove the specific line from the file
    1.    Type sudo emacs /etc/launchd.conf, and then press RETURN.
The launchd.conf file opens
    2.    Type your password when prompted, and then press RETURN.
    3.    Use the arrow keys on your keyboard to move the cursor to the "limit maxfiles 2048 400000" line.
    4.    Press DELETE.
*Important* Do not delete any other line in the file.
    5.    Save your edited launch.conf file by pressing CTRL+X+C.
You will be asked if you want to save the file.
    6.    Press Y to save the file.
    7.    Restart your computer.

Read Full Article