mobile_house_arrest[xxx] : Max open files:

2019-07-31 05:03发布

I'm using UIWebView as a wrapper around my html5 application. Application implements a lot of video streaming - and is medium size (JS code).

When I actively use it I receive 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 to respond. Meantime it works great in Safari browser on the same device.

Is there any known memory leak issue or better workaround that I can apply?

标签: ios ios6
1条回答
【Aperson】
2楼-- · 2019-07-31 05:17

You might be using "fopen" or "NSFileHandle"..etc to create file handles but you are not closing them appropriately (eg if you are using FILE * fopen ( const char * filename, const char * mode ) then you should close file using fclose ( FILE * stream ))".Only max 78 files can be opened simultaneously in iPhone device.

查看更多
登录 后发表回答