Matlab 2020b itself creates access violation on autocompletion when debugger attached

7 ビュー (過去 30 日間)
kaba k
kaba k 2021 年 1 月 23 日
回答済み: kaba k 2021 年 1 月 25 日
The following sequence creates an access violation in Matlab:
  • Have a fresh installation of Matlab2020b.
  • Start Matlab.
  • Start Visual Studio 2019.
  • Attach debugger to the Matlab process.
  • Switch to Matlab.
  • Start typing "A = randn(10, 1000);"
  • Write the above line repeatedly without pressing enter, interleaving backspace and tabs for autocompletion.
  • After a few seconds Visual Studio catches an access violation: "Exception thrown at 0x0000021781694610 in MATLAB.exe: 0xC0000005: Access violation reading location 0x0000000000000008."
Is this a bug in Matlab, or somewhere else? Is there a known workaround?
The same problem is present in Matlab2020a.

採用された回答

kaba k
kaba k 2021 年 1 月 25 日
It seems the access violation is a feature of Java Virtual Machine. The problem is discussed here:
The (only?) solution: disable access violation exceptions in Visual Studio.

その他の回答 (1 件)

家保
家保 2023 年 11 月 13 日
你好,这个问题怎么解决呢?

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by