I have resolved it by reading each image and close it by fclose command. this problem is occurring because of not closing the file when doing the conversion.
Why i am getting the error "Too many open files. Close files to prevent MATLAB instability."
62 ビュー (過去 30 日間)
古いコメントを表示
Hello all, i am working on MCYT dataset and they have .fpg files. i have converted those file into .jpg files. now i am passing those images in to CNN but i am getting the error "Too many open files. Close files to prevent MATLAB instability. Caused by: Message Catalog MATLAB:FileIO was not loaded from the file. Please check file location, format or contents"
4 件のコメント
Walter Roberson
2018 年 3 月 29 日
I would not expect changing to opengl to help this at all.
Something in the flow is failing to close files after use. It could be a bug. If you have a custom read function then you should check to be sure that it closes the file after it reads from it.
Mayuri Kulkarni
2018 年 3 月 29 日
this is the bug in matlab2017a, so switching to matlab2017b or higher will help in this case
回答 (1 件)
Veera Kanmani
2018 年 3 月 29 日
The reason for the error messages is because the number of files that are open exceeds the limit on the maximum number of files that can be kept open.
While MATLAB does not have a limit on the maximum number of files that can be open, this is a restriction set by the operating system. Consult your system administrator for information on how to change this limit.
To resolve your issue, close every file with a FCLOSE command after using it. refer https://in.mathworks.com/matlabcentral/answers/101187-why-do-i-receive-too-many-files-open-error-messages-after-several-hours-when-executing-code-which
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Image Data Workflows についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!