在 Budgie 上安装 MATLAB 后,我没有看到任何启动图标,因此我选择了终端,过了一会儿,我决定采取一些措施,并选择了最短的路径:我安装了 matlab-support(使用终端)。在此过程中,我更改了一些文件扩展名,因为安装建议这样做,但在打开 MATLAB(从新图标)后,我偶然发现了此消息:
com.jogamp.opengl.GLException: X11GLXDrawableFactory - Could not initialize shared resources for X11GraphicsDevice[type .x11, connection :0, unitID 0, handle 0x0, owner false, ResourceToolkitLock[obj 0x2f42f193, isOwner false, <6812f351, 7716c644>[count 0, qsz 0, owner <NULL>]]]
at jogamp.opengl.x11.glx.X11GLXDrawableFactory$SharedResourceImplementation.createSharedResource(X11GLXDrawableFactory.java:326)
at jogamp.opengl.SharedResourceRunner.run(SharedResourceRunner.java:297)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NullPointerException
at jogamp.opengl.GLContextImpl.makeCurrent(GLContextImpl.java:688)
at jogamp.opengl.GLContextImpl.makeCurrent(GLContextImpl.java:580)
at jogamp.opengl.x11.glx.X11GLXDrawableFactory$SharedResourceImplementation.createSharedResource(X11GLXDrawableFactory.java:297)
... 2 more
现在实时脚本对我来说不起作用(幸运的我仍然可以使用普通的 MATLAB 代码)。
我有什么选择?我可以直接删除 matlab-support 吗?还是必须重新安装 MATLAB?
编辑:当我输入时,
lspci -k | grep -iE "VGA|video|3d|graphics" -A2
它会显示下一行:
DeviceName: Onboard - Video
Subsystem: Dell UHD Graphics 630 (Mobile)
Kernel driver in use: i915
Kernel modules: i915
--
01:00.0 3D controller: NVIDIA Corporation GP107M [GeForce GTX 1050 Mobile] (rev a1)
Subsystem: Dell GP107M [GeForce GTX 1050 Mobile]
Kernel driver in use: nvidia
并vainfo
得到:
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_7
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.7 (libva 2.6.0)
vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 20.1.1 ()
vainfo: Supported profile and entrypoints
VAProfileMPEG2Simple : VAEntrypointVLD
VAProfileMPEG2Main : VAEntrypointVLD
VAProfileH264Main : VAEntrypointVLD
VAProfileH264Main : VAEntrypointEncSliceLP
VAProfileH264High : VAEntrypointVLD
VAProfileH264High : VAEntrypointEncSliceLP
VAProfileJPEGBaseline : VAEntrypointVLD
VAProfileJPEGBaseline : VAEntrypointEncPicture
VAProfileH264ConstrainedBaseline: VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointEncSliceLP
VAProfileVP8Version0_3 : VAEntrypointVLD
VAProfileHEVCMain : VAEntrypointVLD
VAProfileHEVCMain10 : VAEntrypointVLD
VAProfileVP9Profile0 : VAEntrypointVLD
VAProfileVP9Profile2 : VAEntrypointVLD
答案1
是的,你可以简单地删除 matlab-support 包
sudo apt-get remove matlab-support
你可能还想知道这个包并不是灵丹妙药,它只是一个带有matlab -desktop
Exec 行和 mex-helper 的桌面文件。
OpenGL 的问题可能与上述包无关。