View Issue Details

IDProjectCategoryView StatusLast Update
00313152.x IDE BugsCompilingPublic2019-09-09 14:11
ReporterDanAssigned ToRussell Kay 
PriorityHighSeverityB - MajorReproducibility100%
Status ClosedResolutionFixed 
PlatformmacOSOSmacOS MojaveOS Version10.14.6
Product Version2.2.3 
Target Version2.2.4Fixed in Version2.2.4 
Summary0031315: Compiling: [Mac IDE] "System.IO.IOException: Too many open files" - should look at reducing the number of files open at once
DescriptionUsing the Mac IDE, some very large projects in terms of numbers of resources / extensions, etc., can run into macOS's internal limit on the number of files open simultaneously. However, whilst this error is logged in the compiler log, it is not necessarily at the very bottom of the log and so users are not seeing the message.

Expected: We catch this error and make it a Compiler Error.

System.AggregateException: One or more errors occurred. (Too many open files) ---> System.IO.IOException: Too many open files
at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x0019e] in <6e26a535bf76467f9082042847cb7d56>:0
at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.IO.FileOptions options, System.String msgPath, System.Boolean bFromProxy, System.Boolean useLongPath, System.Boolean checkHost) [0x00000] in <6e26a535bf76467f9082042847cb7d56>:0
at (wrapper remoting-invoke-with-check) System.IO.FileStream..ctor(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int,System.IO.FileOptions,string,bool,bool,bool)
at System.IO.StreamReader..ctor (System.String path, System.Text.Encoding encoding, System.Boolean detectEncodingFromByteOrderMarks, System.Int32 bufferSize, System.Boolean checkHost) [0x00067] in <6e26a535bf76467f9082042847cb7d56>:0
at System.IO.StreamReader..ctor (System.String path, System.Text.Encoding encoding, System.Boolean detectEncodingFromByteOrderMarks, System.Int32 bufferSize) [0x00000] in <6e26a535bf76467f9082042847cb7d56>:0
at System.IO.StreamReader..ctor (System.String path, System.Boolean detectEncodingFromByteOrderMarks) [0x0000d] in <6e26a535bf76467f9082042847cb7d56>:0
at System.IO.StreamReader..ctor (System.String path) [0x00000] in <6e26a535bf76467f9082042847cb7d56>:0
at (wrapper remoting-invoke-with-check) System.IO.StreamReader..ctor(string)
at System.IO.File.OpenText (System.String path) [0x00000] in <6e26a535bf76467f9082042847cb7d56>:0
at GMAssetCompiler.GMAssets+<>c. (System.String ) [0x00088] in <2d4a7468f9a44a52ab814009e8a07ab3>:0
at System.Threading.Tasks.Parallel+<>c__DisplayClass32_0`2[TSource,TLocal].<ForEachWorker>b__0 (System.Int32 i) [0x00000] in <6e26a535bf76467f9082042847cb7d56>:0
at System.Threading.Tasks.Parallel+<>c__DisplayClass19_0`1[TLocal].<ForWorker>b__1 (System.Threading.Tasks.RangeWorker& currentWorker, System.Int32 timeout, System.Boolean& replicationDelegateYieldedBeforeCompletion) [0x000db] in <6e26a535bf76467f9082042847cb7d56>:0
--- End of stack trace from previous location where exception was thrown ---
Steps To Reproduce1. Build a massive project on Mac.
TagsNo tags attached.
2.x IDE Found In2.2.3.436
2.x Runtime Found In2.2.3.344
2.x IDE Verified In2.2.4.448
2.x Runtime Verified In2.2.4.355

Activities

Russell Kay

2019-09-06 11:10

Manager   ~0064735

Fixed in gitlab

Dan

2019-09-06 15:53

Adminstrator   ~0064741

We have actually realised a few ways in which too many files were being left open longer than required, so those issues have now been removed. This will hopefully stop anyone from getting this error in the first place, so right now nothing has been done to make this a full compiler error.

Runtime 355+

Scott Dunbar

2019-09-09 14:11

Adminstrator   ~0064755

Unable to repro in 2.2.4.448

closing as fixed