After latest updates Scilab 5.5.2 does not start on Ubuntu 16.04.3 LTS (amd64, AMD A4-4000 APU)
Solution 1:
I got it working on Ubuntu 16.04 without downgrading any package. I just run:
#!/bin/bash
export MESA_GL_VERSION_OVERRIDE=3.0 ; scilab $*
Hope it helps,
Antoine
Solution 2:
It is confirmed, that bug exists in Debian too.
As I wrote in Launchpad comment 18 on bug 1742894.
I downgraded the following packages:
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
manually with dpkg -i
.
And pinned them:
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
It is a temporarily fix, which works for me.
2018-03-06 update: the bug 1742894 is fixed. Now Scilab starts normally on Xenial with AMD APU/GPU. I removed pin-file from my system.