![最新更新后,Scilab 5.5.2 无法在 Ubuntu 16.04.3 LTS(amd64,AMD A4-4000 APU)上启动](https://linux22.com/image/898420/%E6%9C%80%E6%96%B0%E6%9B%B4%E6%96%B0%E5%90%8E%EF%BC%8CScilab%205.5.2%20%E6%97%A0%E6%B3%95%E5%9C%A8%20Ubuntu%2016.04.3%20LTS%EF%BC%88amd64%EF%BC%8CAMD%20A4-4000%20APU%EF%BC%89%E4%B8%8A%E5%90%AF%E5%8A%A8.png)
我已经在计算机上安装了 Ubuntu 16.04.3 LTS,AMD A4-4000 APU with Radeon(tm) HD Graphics
并从官方存储库(软件包版本 5.5.2-2ubuntu3)安装了 Scilab 5.5.2。
它在 2017-12-24 正常运行,但最近更新后就出现了问题。我可以发布 dpkg-log,但是它似乎与 MESA 相关:
$ cat /var/log/dpkg.log* | grep "status installed.*mesa"
2018-01-11 14:51:08 status installed libglapi-mesa:amd64 17.2.4-0ubuntu1~16.04.2
2018-01-11 14:51:09 status installed libglapi-mesa:i386 17.2.4-0ubuntu1~16.04.2
2018-01-11 14:51:10 status installed libgl1-mesa-dri:amd64 17.2.4-0ubuntu1~16.04.2
2018-01-11 14:51:11 status installed libgl1-mesa-dri:i386 17.2.4-0ubuntu1~16.04.2
2018-01-11 14:51:16 status installed libegl1-mesa:amd64 17.2.4-0ubuntu1~16.04.2
2018-01-11 14:51:17 status installed libwayland-egl1-mesa:amd64 17.2.4-0ubuntu1~16.04.2
2018-01-11 14:51:18 status installed libosmesa6:amd64 17.2.4-0ubuntu1~16.04.2
2018-01-11 14:51:18 status installed libosmesa6:i386 17.2.4-0ubuntu1~16.04.2
2018-01-11 14:51:19 status installed libgl1-mesa-glx:amd64 17.2.4-0ubuntu1~16.04.2
2018-01-11 14:51:20 status installed libgl1-mesa-glx:i386 17.2.4-0ubuntu1~16.04.2
2018-01-11 14:51:20 status installed libgles2-mesa:amd64 17.2.4-0ubuntu1~16.04.2
2018-01-11 14:51:21 status installed mesa-vdpau-drivers:amd64 17.2.4-0ubuntu1~16.04.2
2018-01-12 12:24:25 status installed mesa-va-drivers:amd64 17.2.4-0ubuntu1~16.04.2 # <- installed after crash detection by me
我尝试过的:
使用之前的内核 4.4.0-104-generic 而不是最新的 4.4.0-109-generic 重新启动
清除 $HOME 中的 Scilab 文件夹
rm ~/.Scilab -rf
安装完毕
vainfo
并mesa-va-drivers
有正常输出vainfo
如下:$ vainfo libva info: VA-API version 0.39.0 libva info: va_getDriverName() returns 0 libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri /r600_drv_video.so libva info: Found init function __vaDriverInit_0_39 libva info: va_openDriver() returns 0 vainfo: VA-API version: 0.39 (libva 1.7.0) vainfo: Driver version: mesa gallium vaapi vainfo: Supported profile and entrypoints VAProfileMPEG2Simple : VAEntrypointVLD VAProfileMPEG2Main : VAEntrypointVLD VAProfileVC1Simple : VAEntrypointVLD VAProfileVC1Main : VAEntrypointVLD VAProfileVC1Advanced : VAEntrypointVLD VAProfileH264ConstrainedBaseline: VAEntrypointVLD VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice VAProfileH264Main : VAEntrypointVLD VAProfileH264Main : VAEntrypointEncSlice VAProfileH264High : VAEntrypointVLD VAProfileH264High : VAEntrypointEncSlice VAProfileNone : VAEntrypointVideoProc
已报告错误 1742894到启动板。
升级至滚动LTS启用堆栈(与
sudo apt-get install --install-recommends linux-generic-hwe-16.04 xserver-xorg-hwe-16.04
)没有帮助BIOS 升级没有帮助。
我的系统信息:
$ lspci -knn | grep -A3 VGA
00:01.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Trinity [Radeon HD 7480D] [1002:9993]
Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] Trinity [Radeon HD 7480D] [1002:0123]
Kernel driver in use: radeon
Kernel modules: radeon
$ cat /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-4.4.0-109-generic root=UUID=... ro splash quiet vt.handoff=7
$ glxinfo | grep -i 'direct\|vendor\|opengl'
direct rendering: Yes
server glx vendor string: SGI
client glx vendor string: Mesa Project and SGI
Vendor: X.Org (0x1002)
OpenGL vendor string: X.Org
OpenGL renderer string: AMD ARUBA (DRM 2.43.0 / 4.4.0-109-generic, LLVM 5.0.0)
OpenGL core profile version string: 4.1 (Core Profile) Mesa 17.2.4
OpenGL core profile shading language version string: 4.10
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
GL_ARB_direct_state_access, GL_ARB_draw_buffers,
GL_ARB_draw_indirect, GL_ARB_draw_instanced,
GL_ARB_map_buffer_range, GL_ARB_multi_bind, GL_ARB_multi_draw_indirect,
OpenGL version string: 3.0 Mesa 17.2.4
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.0 Mesa 17.2.4
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.00
OpenGL ES profile extensions:
在软件与更新 software-properties-gtk
对于软件包的安装,我只有一个建议amd64-microcode
。它的安装没有帮助。
您需要更多详细信息吗?
答案1
我在 Ubuntu 16.04 上让它运行,无需降级任何软件包。我只需运行:
#!/bin/bash
export MESA_GL_VERSION_OVERRIDE=3.0 ; scilab $*
希望能帮助到你,
安托万
答案2
已确认,Debian 中也存在错误。
正如我所写错误 1742894 的 Launchpad 评论 18。
我降级了以下软件包:
libegl1-mesa_11.2.0-1ubuntu2_amd64.deb
libgbm1_11.2.0-1ubuntu2_amd64.deb
libgl1-mesa-dri_11.2.0-1ubuntu2_amd64.deb
libgl1-mesa-dri_11.2.0-1ubuntu2_i386.deb
libgl1-mesa-glx_11.2.0-1ubuntu2_amd64.deb
libgl1-mesa-glx_11.2.0-1ubuntu2_i386.deb
libglapi-mesa_11.2.0-1ubuntu2_amd64.deb
libglapi-mesa_11.2.0-1ubuntu2_i386.deb
libgles2-mesa_11.2.0-1ubuntu2_amd64.deb
libosmesa6_11.2.0-1ubuntu2_amd64.deb
libosmesa6_11.2.0-1ubuntu2_i386.deb
libwayland-egl1-mesa_11.2.0-1ubuntu2_amd64.deb
mesa-va-drivers_11.2.0-1ubuntu2_amd64.deb
mesa-vdpau-drivers_11.2.0-1ubuntu2_amd64.deb
手动使用dpkg -i
。
并固定住他们:
cat <<EOF | sudo tee /etc/apt/preferences.d/pin-mesa
Package: libegl1-mesa:amd64
Pin: version 11.2.0-1ubuntu2
Pin-Priority: 1337
Package: libgbm1:amd64
Pin: version 11.2.0-1ubuntu2
Pin-Priority: 1337
Package: libgl1-mesa-dri:amd64
Pin: version 11.2.0-1ubuntu2
Pin-Priority: 1337
Package: libgl1-mesa-dri:i386
Pin: version 11.2.0-1ubuntu2
Pin-Priority: 1337
Package: libgl1-mesa-glx:amd64
Pin: version 11.2.0-1ubuntu2
Pin-Priority: 1337
Package: libgl1-mesa-glx:i386
Pin: version 11.2.0-1ubuntu2
Pin-Priority: 1337
Package: libglapi-mesa:amd64
Pin: version 11.2.0-1ubuntu2
Pin-Priority: 1337
Package: libglapi-mesa:i386
Pin: version 11.2.0-1ubuntu2
Pin-Priority: 1337
Package: libgles2-mesa:amd64
Pin: version 11.2.0-1ubuntu2
Pin-Priority: 1337
Package: libosmesa6:amd64
Pin: version 11.2.0-1ubuntu2
Pin-Priority: 1337
Package: libosmesa6:i386
Pin: version 11.2.0-1ubuntu2
Pin-Priority: 1337
Package: libwayland-egl1-mesa
Pin: version 11.2.0-1ubuntu2
Pin-Priority: 1337
Package: mesa-va-drivers
Pin: version 11.2.0-1ubuntu2
Pin-Priority: 1337
Package: mesa-vdpau-drivers
Pin: version 11.2.0-1ubuntu2
Pin-Priority: 1337
EOF
这是一个临时的解决方案,对我有用。
2018-03-06更新:这错误 1742894已修复。现在 Scilab 可以在配备 AMD APU/GPU 的 Xenial 上正常启动。我从系统中删除了 pin 文件。
答案3
我创建了一个~/Software
要安装 Scilab 的目录。我将一个二进制文件 (scilab-5.5.2.bin.linux-i686.tar.gz) 并解压此文件。然后我运行脚本
#!/bin/bash
export MESA_GL_VERSION_OVERRIDE=3.0 ; scilab $*
但是该scilab $ *
命令不起作用。这个脚本有效:
#!/bin/bash
export MESA_GL_VERSION_OVERRIDE=3.0 ;
cd ~/Software/scilab-5.5.2 ;
./bin/scilab