- Narrow down if the crash is a result of the Linux OS version by verifying if the crash (such as opening any ".fig" files) is reproducible on other Linux or Windows environments.
- Upgrade to a more recent MATLAB version
- Upgrade the Linux OS
- Install any missing fonts in the OS. Existing fonts can be checked by using the ‘listfonts’ command
Segmentation violation when drawing figure in MATLAB2012
1 次查看(过去 30 天)
显示 更早的评论
Hello fellow Matlabers,
We need to use Matlab2012b because a toolbox we use is only supported in that version. Unfortunately Matlab crashes as soon as we start to draw anything in 'figure'. The attached file shows a crash dump that we got after:
> figure
> plot(1.2, 1.3)
The issue can be reproduced on Centos7 and Ubuntu 20.04 (all with the latest patches) and has been seen on multiple computers.
We did not see the issue, when we use Display-Forwarding though.
Everything we tried so far did only lead to the same error.
We tried to contact Mathworks about this issue, but it seems that Mathworks does not support these old versions anymore.
Did anybody enounter this as well and has a solutiion?
Thank you very much in advance.
0 个评论
回答(1 个)
Ganesh
2024-6-11
The issue might be occuring within Linux due to missing font libraries that MATLAB requires. As the issue occurs on older versions of MATLAB, first check that the Linux OS is supported for the MATLAB version currently being used: https://www.mathworks.com/support/requirements/previous-releases.html
If the OS is not supported, MathWorks Technical Support is limited in the amount of assistance to provide on the issue.
However, the following investigative steps can be performed to resolve the crash:
A workaround to avoid the crash can be setting the following in the "startup.m" file:
>> set(0,'DefaultTextInterpreter','none');
This will avoid using the default 'tex' text interpreter upon MATLAB startup.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Interactive Control and Callbacks 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!