Info
此问题已关闭。 请重新打开它进行编辑或回答。
Why does Matlab get stuck in busy state before showing an error message or ending a script?
1 次查看(过去 30 天)
显示 更早的评论
I can start Matlab and run programms without any time issues. When an error occurs it takes Matlab about two minutes to show the error message in the command window. During that time it is not responding and 'busy'. Same happens when a programm finishes it takes Maltab the same time to show the >> again. I tried different Versions from 2013a to 2014a. Everytime the same problem.
11 个评论
per isakson
2014-4-20
Strange! Are files on a server involved? What happens if you do Cntrl-C during those two minutes?
dpb
2014-4-20
Strange, indeed? Any chance still have an earlier release installed? Does it happen there, too, if so?
Is this a newly-developed symptom or is/has it been like this from initial installation?
Flo
2014-4-20
Hi, it happens on 2013a and 2014a. CTRL+C doesnt work. It really freezes. Figures, command window, everything. All files are on local hard drive. That issue came up a few days i guess. I though it its the code after the last command of the whole file it just gets stuck. Is there something to reset Matlab settings, paths or anything?
Flo
2014-4-20
OK it seems that it has to do with the actual code.. another programm works fine. In that faulty case i use many classes and handles.. might that be the reason?
dpb
2014-4-20
Looks like a case of isolation by bisection or the like...can you piecemeal smaller sections of the overall script/function/app and thereby perhaps discover the point at which the problem arises?
Otherwise and w/o any code specifically, not sure there's much anyone can do here. If it's not terribly large and you can also provide data to make it standalone (and IP or other issues aside, of course), you can always try to post/attach the code/data and see if others can reproduce the problem.
It would be best by far, of course, to make a serious effort to minimize the size required to do so, first. And, doing that might just find the cure as a side benefit... :)
per isakson
2014-4-20
编辑:per isakson
2014-4-20
Shots in the dark:
- Try to run without the "accelerator". At least it is an easy test: feature('accel','off')
- "many classes and handles" . Help Matlab with the cleaning up by some explicit delete(obj). Tricky dependencies?
- "after the last command" set a break point close to the end and step through the end of the code. Sometimes Matlab behaves differently in debug mode.
Flo
2014-4-20
Ok, i tried those. It seems that deleting the object take 132 seconds. Creating it takes 20 seconds. Unfortunatelly it is essential that handles point circular. But still, how does it take so long to delete that object?
Flo
2014-4-20
OK lets say we got object "main". That includes map with values of type handle. There is map "a" and "b". An object from map "b" can reffer to an object in map "a" and vice versa. I now try to figure out if there is any speed up if i delete that link before deleteing so it does not get stuck in a circle.
Flo
2014-4-20
Ok Update. I tried to implicit delete every handle and object and Matlab tries to delete all connected handles as well. Not only once. Seems as it results in a big mess of deleting everything a few times.
此问题已关闭。
回答(0 个)
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!发生错误
由于页面发生更改,无法完成操作。请重新加载页面以查看其更新后的状态。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
- América Latina (Español)
- Canada (English)
- United States (English)
欧洲
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
亚太
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)