Just updated mesa via PPA and the error was gone:
-
Open terminal either via Ctrl+Alt+T or by searching for ‘Terminal’ from software launcher. When it opens, run command:
sudo add-apt-repository ppa:ubuntu-x-swat/updates
Type your password (no asterisks while typing due to security reason) when it prompts and hit Enter to continue.
-
After adding the PPA, do system update via command:
sudo apt-get dist-upgrade
Link with instructions found here:
https://ubuntuhandbook.org/index.php/2018/06/install-mesa-18-1-1-ppa-ubuntu-18-04/