mapbox / mapbox-gl-native

Interactive, thoroughly customizable maps in native Android, iOS, macOS, Node.js, and Qt applications, powered by vector tiles and OpenGL
https://mapbox.com/mobile
Other
4.36k stars 1.33k forks source link

Major opcode of failed request: 53 (X_CreatePixmap) #16451

Open nunojpg opened 4 years ago

nunojpg commented 4 years ago

When doing a snapshot on mbgl-glfw or running the benchmark or render binaries I get always the error "Major opcode of failed request: 53 (X_CreatePixmap)".

I believe this might be related to my Intel graphics driver. I'm using Ubuntu 20.04 standard configuration with Intel HD Graphics 520.

While this is unlikely a mapbox-gl-native issue, I would appreciate suggestions where to report or how to fix it.

[INFO] {mbgl-glfw}[General]: GPU Identifier: Mesa Intel(R) HD Graphics 520 (SKL GT2)
[INFO] {mbgl-glfw}[OpenGL]: Frame time:   1.97ms (508.77 fps)
failed to create drawable
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  53 (X_CreatePixmap)
  Value in failed request:  0x1e
  Serial number of failed request:  31
  Current serial number in output stream:  34

Thanks, Nuno

arskanov commented 4 years ago

Hi,

I faced a similar issue on Intel integrated graphics. I found out the cause was the graphics driver used for Intel embedded gpu's. The default has been changed for Mesa version 20.0, which is included in Ubuntu 20.04.

The fix is to set MESA_LOADER_DRIVER_OVERRIDE=i965 as an environment variable prior to running the crashing executable. export MESA_LOADER_DRIVER_OVERRIDE=i965