MATLAB Answers

Why i am getting the error "Too many open files. Close files to prevent MATLAB instability."

조회 수: 247(최근 30일)
user06
user06 9 Mar 2018
답변: Veera Kanmani 29 Mar 2018
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

표시 이전 댓글 수: 1
Mayuri Kulkarni
Mayuri Kulkarni 29 Mar 2018
I am facing the same issue as stated in the problem. I am passing those .jpg images in to CNN which are read using
imageDatastore('path','IncludeSubfolders',true,'LabelSource','foldernames');
command using
fclose all
doesnot help.
i have read few answers about using opengl to solve this issue. https://in.mathworks.com/help/matlab/creating_plots/resolving-low-level-graphics-issues.html
but do not know how to implement the solution. does opengl helps to solve the error?
Walter Roberson
Walter Roberson 29 Mar 2018
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
Mayuri Kulkarni 29 Mar 2018
this is the bug in matlab2017a, so switching to matlab2017b or higher will help in this case

로그인 to comment.

답변(1개)

Veera Kanmani
Veera Kanmani 29 Mar 2018
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.

  댓글 수: 0

로그인 to comment.

이 질문에 답변하려면 로그인을(를) 수행하십시오.

제품


Translated by