フィルターのクリア

Attempted to access error by using the profiler

2 ビュー (過去 30 日間)
Daniel
Daniel 2012 年 11 月 20 日
The matlab profile function displays an "attempted to access error" during a regular usage (R2009b).
??? Attempted to access o.lnos(340); index out of bounds because numel(o.lnos)=339.
Error in ==> mtree.mtree>mtree.lastone at 1794 ch = Pos - o.lnos(ln);
Error in ==> getcallinfo at 92 functionInfo.lastline = lastone(last(rootNode));
Error in ==> profview>makefilepage at 1104 strc = getcallinfo(fullName,'-v7.8');
Error in ==> profview at 71 s = makefilepage(profileInfo,idx, busyLineSortKeyStr2Num(busyLineSortKey));
Does anybody know how avoid this error?
  2 件のコメント
Jan
Jan 2012 年 11 月 20 日
編集済み: Jan 2012 年 11 月 20 日
Yes, Jose-Luis: the question is, if anybody knows how to avoid this error.
José-Luis
José-Luis 2012 年 11 月 20 日
Sorry about the previous (now deleted) comment, I had misunderstood the question.

サインインしてコメントする。

採用された回答

Jan
Jan 2012 年 11 月 20 日
編集済み: Jan 2012 年 11 月 20 日
I've seen this error, when I had edited an M-file during processing. Such things will confuse the profiler tremendously. It could be a problem also, when you run P-code, while the profiler tries to display the corresponding line of the M-file, but both files are different.
What do you find in the lines 339 and 340 of the concerned M-file?

その他の回答 (1 件)

Daniel
Daniel 2012 年 11 月 20 日
編集済み: Daniel 2012 年 11 月 20 日
Thanks Simon but I did not edit anything during during processing. I used the profiler to check an easy M-file with 332 lines. Nothing special. Even if I restart the system I'll get this error.

カテゴリ

Help Center および File ExchangeProgramming についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by