mobile_house_arrest[xxx] <Error>: Max open files: 78

☆樱花仙子☆ 提交于 2019-12-24 17:03:05

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/17968425/mobile-house-arrestxxx-error-max-open-files-78

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!