필터 지우기
필터 지우기

MATLAB crashes with big mfile

조회 수: 3 (최근 30일)
Jonathan Currie
Jonathan Currie 2012년 2월 18일
편집: Cedric 2013년 10월 15일
Hi all,
Has anyone had experience with MATLAB crashing with a large mfile in the current directory?
Specifically I have a 2MB mfile with an optimization problem description it, generated from a 3rd party solver. However when I navigate to the directory containing this file in MATLAB, it crashes MATLAB! I did not even get a chance to open it...
The file looks ok to me, and the interface has had no problem on smaller problems.
The file has has the following form:
% Objective
fun = @(x)2164*x(1)+2046*x(2)....
% Bounds
lb = [-Inf,-Inf,-Inf,...
ub = [Inf,Inf,Inf,Inf,....
Where the problem has 87482 variables, all listed in the linear objective fun, and in vectors lb and ub.
Regards,
Jonathan

답변 (4개)

Image Analyst
Image Analyst 2012년 2월 18일
I think the size and contents of the m-file have no bearing on the problem since you said that you never even got to open it because it crashed as soon as you set the current folder to the folder where that file lives. So in that case, I'd call the Mathworks. Or maybe do some sort of file system integrity check to check for a corrupted file system on your computer.
  댓글 수: 2
Jonathan Currie
Jonathan Currie 2012년 2월 18일
The file opens fine with notepad++, and no matter which directory I place it in MATLAB crashes when I navigate to it. I've generated two indepedent files of around the same size, which both cause the same issue.
Image Analyst
Image Analyst 2012년 2월 18일
Bizarre. The Mathworks will have to figure it out.

댓글을 달려면 로그인하십시오.


Ken Atwell
Ken Atwell 2012년 2월 18일
MATLAB does scan a folder when you navigate ("cd") to it, so it is not out the question to see a behavior (bug) triggered by "merely" changing folders.
I would try completely closing the Current Folder window and then change folders the "old fashioned" way -- using "cd" in the Command Window. Does that help matters?
In either case, please do report this to MathWorks support.
  댓글 수: 1
Jonathan Currie
Jonathan Currie 2012년 2월 18일
Unfortunately not! Still crashes. I have reported to our local MathWorks support, thanks guys.

댓글을 달려면 로그인하십시오.


Ahmad
Ahmad 2012년 6월 5일
I'm facing a similar problem. An m-file I use to postprocess simulatuion results consists of ~8500 lines and is ~350 KB in size. It does not crash, it rather stalls if I edit the file, then resumes after 3-4 secs. This does not happen with smaller files. It's just like you're exceeding a certain pre-set text buffer.
  댓글 수: 3
Image Analyst
Image Analyst 2012년 6월 5일
But you said that you never even got to try to open it in the editor. You said that it crashed when you just opened the folder where the file lived. Now you apparently contradict that and say you have an "editor thread" indicating that you DID actually try to open it, whereas before you said that you "did not even get a chance to open it" because it crashed when you opened the folder.
Ahmad
Ahmad 2012년 6월 13일
Please describe the solution they provided you with in more detail. Thanks.

댓글을 달려면 로그인하십시오.


Ahmad
Ahmad 2012년 6월 14일

카테고리

Help CenterFile Exchange에서 Programming Utilities에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by