[Mono-dev] r135520 change to driver.cs causes "Too many open files" on MacOSX for projects with lots of embedded resources

Tom Philpot tom.philpot at logos.com
Mon Jun 15 22:20:15 EDT 2009


            We have a .csproj file with 3000 + embedded resources.  With the
current version of driver.cs (r135520 and later) on Mac OS X, we¹re getting
the following error.
         
Unhandled Exception: System.IO.IOException: Too many open files
           at System.IO.FileStream..ctor (System.String path, FileMode mode,
         FileAccess access, FileShare share, Int32 bufferSize, Boolean
         anonymous, FileOptions options) [0x00000]
           at System.IO.FileStream..ctor (System.String path, FileMode mode,
         FileAccess access, FileShare share, Int32 bufferSize, Boolean
isAsync,
         Boolean anonymous) [0x00000]
           at System.IO.FileStream..ctor (System.String path, FileMode mode,
         FileAccess access) [0x00000]
           at (wrapper remoting-invoke-with-check)
System.IO.FileStream:.ctor
         (string,System.IO.FileMode,System.IO.FileAccess)
           at Mono.CSharp.Resources+EmbededResource.Emit () [0x00000]
           at Mono.CSharp.Resources.Emit () [0x00000]
           at Mono.CSharp.Driver.Compile () [0x00000]
           at Mono.CSharp.Driver.Main (System.String[] args) [0x00000]
         
         
         Build complete -- 1 error, 0 warnings

Once I reverted the change from r135520 in driver.cs things started working
again.

Can someone please revert this change until we find a better work around
that doesn¹t break this on Mac OS X? The soft ulimit on num of open files is
256, the hard limit is 1024 by default on Mac OS X.

Thanks.

Tom
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20090615/5d454658/attachment-0001.html 


More information about the Mono-devel-list mailing list