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.37k stars 1.33k forks source link

[macos] Moving map to a screen with a different pixel density crashes #7857

Closed JesseCrocker closed 7 years ago

JesseCrocker commented 7 years ago

Platform: MacOS Mapbox SDK version: Master @ 164d156ccd67b14977431fb4919d9a8584765b2a Hardware: iMac (Retina 5K, 27-inch, Late 2014), with 2 additional non-retina screens

Steps to trigger behavior

  1. Run macosapp target on a retina screen
  2. Move window to a non-retina screen

Expected behavior

Map stays functional

Actual behavior

Application crashes with error. libc++abi.dylib: terminating with uncaught exception of type mbgl::gl::Error: glUseProgram(value): Error GL_INVALID_VALUE at /Users/jesse/projects/mapbox-gl-native/src/mbgl/gl/value.cpp:223

jfirebaugh commented 7 years ago

Duplicate of #6654.