3

PC specification:

  • OS:Ubuntu 20.04 LTS
  • Processor: Intel i3
  • ram: 4 gb
  • 1 Tb Hdd

i have installed three version of scilab 5.0 ,6.0.2 ,6.1 by following the procedure below:

  1. download tar files from official website
  2. untar them
  3. type ./bin/scilab

Inn these three scilab version , i get the same problem that graphic window appear which is completely blank , there is no plot now how i resolve this


my PC graphic : Mesa IntelĀ® HD Graphics 620 (KBL GT2)

(base) vivek@vs~$ lspci | grep -Ei "VGA|3D|Video" 
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 620 (rev 02) 
(base) vivek@vs~$ glxinfo | grep -i vendor 
Command 'glxinfo' not found, but can be installed with: sudo apt install mesa-utils 
(base) vivek@vs~$ lsmod | grep drm, 
(base) vivek@vs~$ vainfo 
Command 'vainfo' not found, but can be installed with: sudo apt install vainfo 
(base) vivek@vs:~$ glxinfo | grep -i vendor 
## server glx vendor string: SGI client glx vendor string: Mesa Project and SGI Vendor: Intel (0x8086) OpenGL vendor string: Intel

(base) vivek@vs:~$ lsmod | grep drm drm_kms_helper 217088 1 i915 cec 53248 2 drm_kms_helper,i915 fb_sys_fops 16384 1 drm_kms_helper syscopyarea 16384 1 drm_kms_helper sysfillrect 16384 1 drm_kms_helper sysimgblt 16384 1 drm_kms_helper drm 552960 11 drm_kms_helper,i915

(base) vivek@vs:~$ vainfo libva info: VA-API version 1.7.0 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

N0rbert
  • 103,263

4 Answers4

4

As temporary solution you can force software video rendering by running Scilab with:

LIBGL_ALWAYS_SOFTWARE=1 ./bin/scilab
N0rbert
  • 103,263
0

Changing the mesa drivers to this worked for me

## mesa drivers to correct plot issues with scilab 6x
# See --> https://www.linuxcapable.com/install-upgrade-mesa-drivers-radeon-nvidia-on-ubuntu-20-04-lts/
RUN add-apt-repository ppa:kisak/kisak-mesa -y
RUN apt update
RUN apt upgrade -y
int64
  • 1
0

using the environment variable MESA_GL_VERSION_OVERRIDE=2.1 solved this problem for me at least, in Manjaro 2023-06-28.

0

I confirm that this works for me too in Debian 12: in shell window:

MESA_GL_VERSION_OVERRIDE=2.1 /bin/scilab

Also you can add it to your .bashrc:

gedit .bashrc

#add folowing lines in this file:

MESA_GL_VERSION_OVERRIDE=2.1

export MESA_GL_VERSION_OVERRIDE

After saving the file either source it:

source ~/.bashrc

or reboot your system

Babak
  • 1