【发布时间】:2020-09-14 13:26:37
【问题描述】:
在我将操作系统升级到 ubuntu 20.04 后,我遇到了 matlab 渲染问题。当我打开程序时,我收到以下消息:
MATLAB is selecting SOFTWARE OPENGL rendering.
Gtk-Message: 14:38:28.776: Failed to load module "canberra-gtk-module"
程序运行正常,但在绘图时会崩溃(当我说崩溃时,我的意思是一切都只是关闭而没有给我错误消息)。
我阅读了很多关于此问题的信息并尝试遵循其他用户的建议但没有成功:
我尝试从带有标志的终端打开 matlab:
matlab -nosoftwareopengl
这给了我终端中的以下错误
libGL error: MESA-LOADER: failed to open iris (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri)
libGL error: failed to load driver: iris
libGL error: MESA-LOADER: failed to open iris (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri)
libGL error: failed to load driver: iris
libGL error: MESA-LOADER: failed to open swrast (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri)
libGL error: failed to load driver: swrast
在 Matlab 中:
MATLAB has experienced a low-level graphics error, and may not have drawn correctly.
Read about what you can do to prevent this issue at Resolving Low-Level Graphics Issues then restart MATLAB.
To share details of this issue with MathWorks technical support,
please include this file with your service request.
Couldn't create JOGL canvas--using painters
Couldn't create JOGL canvas--using painters
Couldn't create JOGL canvas--using painters
Couldn't create JOGL canvas--using painters
解决低级图形问题的建议包括将 opengl 设置为“软件”,这让我回到了最初的问题。
另一个建议是升级我的图形硬件驱动程序,但由于我刚刚升级了我的 Ubuntu,他们不应该在这个过程中升级吗?
我不敢相信我已经在这方面花费了多少时间,因此非常感谢任何帮助!
亲切的问候,
【问题讨论】:
-
您是否尝试手动
apt-get install/upgrade丢失的模块(canberra-gtk)?检查这个question -
你的 MATLAB 版本是多少?
-
是的,我已经尝试安装和升级 canberra-gtk 模块,但它已经是最新版本。我正在使用 Matlab 2020a。
-
@tmlgr 我也有同样的问题。解决这个问题有运气吗?