Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error "context mismatch in svga_sampler_view_destroy" running GUI programs on Ubuntu in a VM

I am running Ubuntu 16.04 on a VMware workstation player VM on windows 10. When I run some GUI programs (have observed this on Spyder and Chromium) am getting the message "context mismatch in svga_sampler_view_destroy" is repeatedly printed to the console.

It seems to be related to virtualization as it goes away if turn off 3D display acceleration. I don't want to turn off acceleration as it makes a big difference to the video performance.

like image 900
Shane Avatar asked Nov 07 '17 04:11

Shane


1 Answers

I got the same error while running the Android Emulator in VmWare player 14.0. This seems to be an issue with Ubuntu, VmWare and OpenGL 3.3

What solved my problem was the solution from Mesa on how to handle Ubuntu as guest OS in VmWare

In short you need to set the environment variable SVGA_VGPU10 to 0 (this turns off OpenGL 3.3 support, falling back to 2.1)

To set it for one session of Bash, use:

$ export SVGA_VGPU10=0

To permanently write it to the Bash user settings:

$ echo "export SVGA_VGPU10=0" >> ~/.bashrc
like image 52
Einar Sundgren Avatar answered Sep 19 '22 07:09

Einar Sundgren