Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Opening File Failed... Too Many Open Files

Discussion in 'Editor & General Support' started by Jacobee29, Feb 25, 2020.

  1. Jacobee29

    Jacobee29

    Joined:
    Oct 2, 2016
    Posts:
    1
    I'm trying to access my project from my Macbook Pro like I always do but today it started giving me this weird error I've never seen before. It happens when I try to download updates on collaborate. The error states that Opening File Failed because there are too many files open. I can press Try Again, Cancel, or Force Quit. Try again and cancel don't do anything and eventually i receive a fatal error that causes Unity to crash. I have tried researching this but I cannot find a solution. Anyone know of a solution?
     

    Attached Files:

    dalekvan likes this.
  2. Joe-Censored

    Joe-Censored

    Joined:
    Mar 26, 2013
    Posts:
    11,847
    If you google for "mac os too many open files" you'll find a lot of discussion and steps regarding changing Mac OS's seemingly arbitrary overall and per process max open file limits. That's probably where I'd start. If you're hitting the max file limit for the entire system instead of the per process limit, you could try closing some programs, especially any web browser.

    Sorry I don't use Mac OS, so don't have personal experience with it. I'm just aware this has been an annoyance with Macs for years now (not related to Unity). My understanding is Apple limits each process to around 10k to 12k open files, as well as about the same for the entire system by default. Windows has its own limit, but you never hear about it because it is over 16,000,000 per process. You're probably doing something wrong if you hit that on Windows :p
     
    Last edited: Feb 26, 2020
  3. DanTaylor

    DanTaylor

    Joined:
    Jul 6, 2013
    Posts:
    119
    Posted a solution here! :D