nitaliano / react-native-mapbox-gl

A Mapbox GL react native module for creating custom maps
Other
2.16k stars 697 forks source link

UnsupportedOperationException: eglCreateWindowSurface() can only be called with an instance of Surface, SurfaceView, SurfaceHolder or SurfaceTexture at the moment. #1284

Open Gp2mv3 opened 6 years ago

Gp2mv3 commented 6 years ago

Some of our users on Android are triggering this error. It seems to come from the Java SDK. Here is the stacktrace:

java.lang.UnsupportedOperationException: eglCreateWindowSurface() can only be called with an instance of Surface, SurfaceView, SurfaceHolder or SurfaceTexture at the moment.
    at com.google.android.gles_jni.EGLImpl.eglCreateWindowSurface(EGLImpl.java:97)
    at com.mapbox.mapboxsdk.maps.renderer.textureview.TextureViewRenderThread$EGLHolder.createSurface(TextureViewRenderThread.java:382)
    at com.mapbox.mapboxsdk.maps.renderer.textureview.TextureViewRenderThread.run(TextureViewRenderThread.java:248)

It's triggered at map's first rendering. It seems to be a race condition between, no ?

L-Yeiser commented 6 years ago

We just saw this crash for the first time. Have been unable to reproduce it.

haideralishah commented 4 years ago

I am also facing this issue? any update and I can't reproduce it.