问题
I compiled a HERE tutorial app, "basic map solution", and installed it on Motorola XT1565(android 6.0.1). When I launch it, the map view can be shown, but if I move it to background and later bring it back to front, sometimes I see the map view is blank: no map content. I caught the following GL thread crash error in the log.
I am using HERE Android SDK 3.1.1, and I can not find same issue on Here official app from Google Playstore. So I wonder if this issue is related to EGL lib compatible issue or there are some bugs in Here SDK native lib?
07-05 13:56:02.034 18468-18952/com.here.android.tutorial I/Adreno: QUALCOMM build : 166ada0, Ifd751822f5
Build Date : 01/26/16
OpenGL ES Shader Compiler Version: XE031.06.00.05
Local Branch : AU12_SBA
Remote Branch :
Remote Branch :
Reconstruct Branch :
07-05 13:56:02.185 18468-18952/com.here.android.tutorial I/OpenGLRenderer: Initialized EGL, version 1.4
07-05 13:56:02.288 18468-2216/com.here.android.tutorial E/BaseTextureView: ******** GL Thread crash ********Thread[BaseTextureView-RenderThread,6,main]
07-05 13:56:02.391 18468-2216/com.here.android.tutorial W/System.err: java.lang.RuntimeException: createWindowSurface failed EGL_BAD_CONFIG
07-05 13:56:02.392 18468-2216/com.here.android.tutorial W/System.err: at com.nokia.maps.y$a.f(BaseTextureView.java:495)
07-05 13:56:02.392 18468-2216/com.here.android.tutorial W/System.err: at com.nokia.maps.y$a.run(BaseTextureView.java:301)
07-05 13:56:02.392 18468-2216/com.here.android.tutorial E/BaseTextureView: ******** GL Thread crash ********Thread[BaseTextureView-RenderThread,6,main]
07-05 13:56:02.445 18468-2216/com.here.android.tutorial E/libEGL: eglDestroySurface:595 error 300d (EGL_BAD_SURFACE)
07-05 13:56:02.445 18468-2216/com.here.android.tutorial E/libEGL: eglDestroyContext:697 error 3006 (EGL_BAD_CONTEXT)
来源:https://stackoverflow.com/questions/38232689/map-fragment-shows-blank-when-app-resumes-from-background-to-front-gl-thread-cr