Mobile_house_arrest [xxx] <Error>: Max. open files: 78

I am using UIWebView as a wrapper around an html5 application. The application implements a lot of streaming video - and is an average size (JS-code).

When I use it actively, I get a lot of errors:

 Jul 31 13:21:34 iPad mobile_house_arrest[483] <Error>: Max open files: 78 Jul 31 13:21:34 iPad mobile_house_arrest[485] <Error>: Max open files: 78 ... Jul 31 13:21:35 iPad mobile_house_arrest[505] <Error>: Max open files: 78 

in the device’s console - and it stops responding. In the meantime, it works fine in the Safari browser on the same device.

Is there a known memory leak problem or a more efficient workaround that I can apply?

+1
source share
1 answer

You can use "fopen" or "NSFileHandle" etc. to create file descriptors, but you don’t close them appropriately (for example, if you use FILE * fopen ( const char * filename, const char * mode ) , then you must close the file with fclose ( FILE * stream ) ). " 78 files can be opened simultaneously on the iPhone device.

0
source

Source: https://habr.com/ru/post/1501013/


All Articles