Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Emulator crash #2807

Closed
tobrun opened this issue Oct 26, 2015 · 26 comments
Closed

Emulator crash #2807

tobrun opened this issue Oct 26, 2015 · 26 comments
Assignees
Labels
Android Mapbox Maps SDK for Android crash

Comments

@tobrun
Copy link
Member

tobrun commented Oct 26, 2015

When running on:

screen shot 2015-10-26 at 20 39 21

The emulator itself crashes and I'm seeing following messages in Logcat:

image

@tobrun tobrun added Android Mapbox Maps SDK for Android crash labels Oct 26, 2015
@tobrun tobrun added this to the android-v2.2.0 milestone Oct 26, 2015
@tobrun
Copy link
Member Author

tobrun commented Oct 26, 2015

Seeing similar things on a Jelly bean nexus 4 image:

screen shot 2015-10-26 at 20 50 08

screen shot 2015-10-26 at 20 50 14

@tobrun
Copy link
Member Author

tobrun commented Oct 26, 2015

I have no issues on a Android M powered emulator.

it could be that #2802 and #2513 are related
these are both 4.2.2 Jelly bean devices.

@tobrun
Copy link
Member Author

tobrun commented Oct 26, 2015

I was able to reproduce this error on a tablet running ICS.
I'm seeing a black screen and application stays responsive.

On that device I'm constantly seeing:

08-04 09:56:30.259 698-698/? D/mbgl: {Main}[Android]: NativeMapView::notifyMapChange()
08-04 09:56:30.259 698-853/? D/mbgl: {Map}[Android]: NativeMapView::beforeRender()
08-04 09:56:30.259 698-853/? D/mbgl: {Map}[Android]: NativeMapView::afterRender()
08-04 09:56:30.259 698-853/? D/mbgl: {Map}[Android]: NativeMapView::updateFps()
08-04 09:56:30.259 698-698/? D/mbgl: {Main}[Android]: NativeMapView::notifyMapChange()
08-04 09:56:30.279 698-698/? D/mbgl: {Main}[JNI]: nativeGetBearing
08-04 09:56:30.299 698-698/? D/mbgl: {Main}[JNI]: nativeIsPaused
08-04 09:56:30.299 698-698/? D/mbgl: {Main}[JNI]: nativeRenderSync

@tobrun
Copy link
Member Author

tobrun commented Oct 26, 2015

Currently pinpointed that ICS and Jelly bean have this problem,
@bleege doesn't have this issue on Lollipop or higher.
Need to test KitKat and pinpoint possible problem related to this black screen.

@bleege
Copy link
Contributor

bleege commented Oct 26, 2015

To be specific, I haven't had this problem on Lollipop devices (HTC M9 and Samsung S5) nor emulators.

@bleege
Copy link
Contributor

bleege commented Oct 26, 2015

Just tested on API 16 x86 emulator and got the following crash at startup. Based on what @adam-mapbox said it looks like there's "bad data" (likely Unicode related) getting into the OpenGL shader.

10-26 16:30:10.398 1759-1788/? E/libEGL: call to OpenGL ES API with no current context (logged once per thread)
10-26 16:30:10.398 1759-1788/? I/mbgl: {Map}[Android]: Not deactivating as we are not ready
10-26 16:30:10.638 1759-1759/? I/mbgl: {Main}[OpenGL]: EGL Vendor: Android
10-26 16:30:10.638 1759-1759/? I/mbgl: {Main}[OpenGL]: EGL Version: 1.4 Android META-EGL
10-26 16:30:10.638 1759-1759/? I/mbgl: {Main}[OpenGL]: EGL Client APIs: OpenGL_ES
10-26 16:30:10.638 1759-1759/? I/mbgl: {Main}[OpenGL]: EGL Client Extensions: EGL_KHR_image_base EGL_KHR_fence_sync EGL_ANDROID_image_native_buffer 
10-26 16:30:10.638 1759-1759/? W/mbgl: {Main}[Android]: In emulator! Enabling hacks :-(
10-26 16:30:10.638 1759-1759/? I/mbgl: {Main}[OpenGL]: Found 6 configs
10-26 16:30:10.638 1759-1759/? I/mbgl: {Main}[OpenGL]: Config 0:
10-26 16:30:10.638 1759-1759/? I/mbgl: {Main}[OpenGL]: ...Caveat: 12344
10-26 16:30:10.638 1759-1759/? I/mbgl: {Main}[OpenGL]: ...Conformant: 5
10-26 16:30:10.638 1759-1759/? I/mbgl: {Main}[OpenGL]: ...Color: 24
10-26 16:30:10.638 1759-1759/? I/mbgl: {Main}[OpenGL]: ...Red: 8
10-26 16:30:10.638 1759-1759/? I/mbgl: {Main}[OpenGL]: ...Green: 8
10-26 16:30:10.638 1759-1759/? I/mbgl: {Main}[OpenGL]: ...Blue: 8
10-26 16:30:10.638 1759-1759/? I/mbgl: {Main}[OpenGL]: ...Alpha: 0
10-26 16:30:10.638 1759-1759/? I/mbgl: {Main}[OpenGL]: ...Alpha mask: 0
10-26 16:30:10.638 1759-1759/? I/mbgl: {Main}[OpenGL]: ...Depth: 24
10-26 16:30:10.638 1759-1759/? I/mbgl: {Main}[OpenGL]: ...Stencil: 8
10-26 16:30:10.638 1759-1759/? I/mbgl: {Main}[OpenGL]: ...Sample buffers: 0
10-26 16:30:10.638 1759-1759/? I/mbgl: {Main}[OpenGL]: ...Samples: 0
10-26 16:30:10.638 1759-1759/? I/mbgl: {Main}[OpenGL]: Config 1:
10-26 16:30:10.638 1759-1759/? I/mbgl: {Main}[OpenGL]: ...Caveat: 12344
10-26 16:30:10.638 1759-1759/? I/mbgl: {Main}[OpenGL]: ...Conformant: 5
10-26 16:30:10.638 1759-1759/? I/mbgl: {Main}[OpenGL]: ...Color: 24
10-26 16:30:10.638 1759-1759/? I/mbgl: {Main}[OpenGL]: ...Red: 8
10-26 16:30:10.638 1759-1759/? I/mbgl: {Main}[OpenGL]: ...Green: 8
10-26 16:30:10.638 1759-1759/? I/mbgl: {Main}[OpenGL]: ...Blue: 8
10-26 16:30:10.638 1759-1759/? I/mbgl: {Main}[OpenGL]: ...Alpha: 0
10-26 16:30:10.638 1759-1759/? I/mbgl: {Main}[OpenGL]: ...Alpha mask: 0
10-26 16:30:10.638 1759-1759/? I/mbgl: {Main}[OpenGL]: ...Depth: 24
10-26 16:30:10.638 1759-1759/? I/mbgl: {Main}[OpenGL]: ...Stencil: 8
10-26 16:30:10.638 1759-1759/? I/mbgl: {Main}[OpenGL]: ...Sample buffers: 0
10-26 16:30:10.638 1759-1759/? I/mbgl: {Main}[OpenGL]: ...Samples: 0
10-26 16:30:10.638 1759-1759/? I/mbgl: {Main}[OpenGL]: Config 2:
10-26 16:30:10.638 1759-1759/? I/mbgl: {Main}[OpenGL]: ...Caveat: 12344
10-26 16:30:10.638 1759-1759/? I/mbgl: {Main}[OpenGL]: ...Conformant: 5
10-26 16:30:10.638 1759-1759/? I/mbgl: {Main}[OpenGL]: ...Color: 24
10-26 16:30:10.638 1759-1759/? I/mbgl: {Main}[OpenGL]: ...Red: 8
10-26 16:30:10.638 1759-1759/? I/mbgl: {Main}[OpenGL]: ...Green: 8
10-26 16:30:10.638 1759-1759/? I/mbgl: {Main}[OpenGL]: ...Blue: 8
10-26 16:30:10.638 1759-1759/? I/mbgl: {Main}[OpenGL]: ...Alpha: 0
10-26 16:30:10.638 1759-1759/? I/mbgl: {Main}[OpenGL]: ...Alpha mask: 0
10-26 16:30:10.638 1759-1759/? I/mbgl: {Main}[OpenGL]: ...Depth: 24
10-26 16:30:10.638 1759-1759/? I/mbgl: {Main}[OpenGL]: ...Stencil: 8
10-26 16:30:10.638 1759-1759/? I/mbgl: {Main}[OpenGL]: ...Sample buffers: 0
10-26 16:30:10.638 1759-1759/? I/mbgl: {Main}[OpenGL]: ...Samples: 0
10-26 16:30:10.638 1759-1759/? I/mbgl: {Main}[OpenGL]: Config 3:
10-26 16:30:10.638 1759-1759/? I/mbgl: {Main}[OpenGL]: ...Caveat: 12344
10-26 16:30:10.638 1759-1759/? I/mbgl: {Main}[OpenGL]: ...Conformant: 5
10-26 16:30:10.638 1759-1759/? I/mbgl: {Main}[OpenGL]: ...Color: 32
10-26 16:30:10.638 1759-1759/? I/mbgl: {Main}[OpenGL]: ...Red: 8
10-26 16:30:10.638 1759-1759/? I/mbgl: {Main}[OpenGL]: ...Green: 8
10-26 16:30:10.638 1759-1759/? I/mbgl: {Main}[OpenGL]: ...Blue: 8
10-26 16:30:10.638 1759-1759/? I/mbgl: {Main}[OpenGL]: ...Alpha: 8
10-26 16:30:10.638 1759-1759/? I/mbgl: {Main}[OpenGL]: ...Alpha mask: 0
10-26 16:30:10.638 1759-1759/? I/mbgl: {Main}[OpenGL]: ...Depth: 24
10-26 16:30:10.638 1759-1759/? I/mbgl: {Main}[OpenGL]: ...Stencil: 8
10-26 16:30:10.638 1759-1759/? I/mbgl: {Main}[OpenGL]: ...Sample buffers: 0
10-26 16:30:10.638 1759-1759/? I/mbgl: {Main}[OpenGL]: ...Samples: 0
10-26 16:30:10.638 1759-1759/? I/mbgl: {Main}[OpenGL]: Config 4:
10-26 16:30:10.638 1759-1759/? I/mbgl: {Main}[OpenGL]: ...Caveat: 12344
10-26 16:30:10.638 1759-1759/? I/mbgl: {Main}[OpenGL]: ...Conformant: 5
10-26 16:30:10.638 1759-1759/? I/mbgl: {Main}[OpenGL]: ...Color: 32
10-26 16:30:10.638 1759-1759/? I/mbgl: {Main}[OpenGL]: ...Red: 8
10-26 16:30:10.638 1759-1759/? I/mbgl: {Main}[OpenGL]: ...Green: 8
10-26 16:30:10.638 1759-1759/? I/mbgl: {Main}[OpenGL]: ...Blue: 8
10-26 16:30:10.638 1759-1759/? I/mbgl: {Main}[OpenGL]: ...Alpha: 8
10-26 16:30:10.638 1759-1759/? I/mbgl: {Main}[OpenGL]: ...Alpha mask: 0
10-26 16:30:10.638 1759-1759/? I/mbgl: {Main}[OpenGL]: ...Depth: 24
10-26 16:30:10.638 1759-1759/? I/mbgl: {Main}[OpenGL]: ...Stencil: 8
10-26 16:30:10.638 1759-1759/? I/mbgl: {Main}[OpenGL]: ...Sample buffers: 0
10-26 16:30:10.638 1759-1759/? I/mbgl: {Main}[OpenGL]: ...Samples: 0
10-26 16:30:10.638 1759-1759/? I/mbgl: {Main}[OpenGL]: Config 5:
10-26 16:30:10.638 1759-1759/? I/mbgl: {Main}[OpenGL]: ...Caveat: 12344
10-26 16:30:10.638 1759-1759/? I/mbgl: {Main}[OpenGL]: ...Conformant: 5
10-26 16:30:10.638 1759-1759/? I/mbgl: {Main}[OpenGL]: ...Color: 32
10-26 16:30:10.638 1759-1759/? I/mbgl: {Main}[OpenGL]: ...Red: 8
10-26 16:30:10.638 1759-1759/? I/mbgl: {Main}[OpenGL]: ...Green: 8
10-26 16:30:10.638 1759-1759/? I/mbgl: {Main}[OpenGL]: ...Blue: 8
10-26 16:30:10.638 1759-1759/? I/mbgl: {Main}[OpenGL]: ...Alpha: 8
10-26 16:30:10.638 1759-1759/? I/mbgl: {Main}[OpenGL]: ...Alpha mask: 0
10-26 16:30:10.638 1759-1759/? I/mbgl: {Main}[OpenGL]: ...Depth: 24
10-26 16:30:10.638 1759-1759/? I/mbgl: {Main}[OpenGL]: ...Stencil: 8
10-26 16:30:10.638 1759-1759/? I/mbgl: {Main}[OpenGL]: ...Sample buffers: 0
10-26 16:30:10.638 1759-1759/? I/mbgl: {Main}[OpenGL]: ...Samples: 0
10-26 16:30:10.638 1759-1759/? I/mbgl: {Main}[OpenGL]: Chosen config is 0
10-26 16:30:10.638 1759-1759/? I/mbgl: {Main}[OpenGL]: Chosen window format is 2
10-26 16:30:10.898 1759-1759/? W/EGL_emulation: eglSurfaceAttrib not implemented
10-26 16:30:10.928 1759-1759/? I/dalvikvm: Could not find method android.support.v7.widget.LinearLayoutCompat.drawableHotspotChanged, referenced from method android.support.design.internal.ForegroundLinearLayout.drawableHotspotChanged
10-26 16:30:10.928 1759-1759/? W/dalvikvm: VFY: unable to resolve virtual method 15108: Landroid/support/v7/widget/LinearLayoutCompat;.drawableHotspotChanged (FF)V
10-26 16:30:11.108 1759-1759/? I/mbgl: {Main}[OpenGL]: GL Vendor: Google (Intel Inc.)
10-26 16:30:11.138 1759-1759/? I/mbgl: {Main}[OpenGL]: GL Renderer: Android Emulator OpenGL ES Translator (Intel Iris OpenGL Engine)
10-26 16:30:11.138 1759-1759/? I/mbgl: {Main}[OpenGL]: GL Version: OpenGL ES 2.0 (2.1 INTEL-10.8.77)
10-26 16:30:11.138 1759-1759/? I/mbgl: {Main}[OpenGL]: GL Extensions: GL_EXT_debug_marker GL_OES_EGL_image GL_OES_EGL_image_external GL_OES_depth24 GL_OES_depth32 GL_OES_element_index_uint GL_OES_texture_float GL_OES_texture_float_linear GL_OES_compressed_paletted_texture GL_OES_compressed_ETC1_RGB8_texture GL_OES_depth_texture GL_OES_texture_half_float GL_OES_texture_half_float_linear GL_OES_packed_depth_stencil GL_OES_vertex_half_float GL_OES_texture_npot
10-26 16:30:11.138 1759-1788/? D/: HostConnection::get() New Host Connection established 0xb9f41df8, tid 1788
10-26 16:30:11.228 1759-1768/? W/Surface: Surface.finalize() has work. You should have called release() (-1175186224, 0)
10-26 16:30:11.228 1759-1759/? E/libEGL: call to OpenGL ES API with no current context (logged once per thread)
10-26 16:30:11.228 1759-1759/? E/OpenGLRenderer: Error while compiling shader: 
10-26 16:30:11.228 1759-1759/? E/OpenGLRenderer: Error while compiling shader: 
10-26 16:30:11.228 1759-1759/? E/OpenGLRenderer: Error while compiling shader: ��۹�jhg�����
10-26 16:30:11.228 1759-1759/? E/OpenGLRenderer: Error while compiling shader: 
10-26 16:30:11.228 1759-1759/? E/OpenGLRenderer: Error while compiling shader: 
10-26 16:30:11.228 1759-1759/? E/OpenGLRenderer: Error while compiling shader: �h�����f�{������ZU%C�&���
10-26 16:30:11.228 1759-1759/? E/OpenGLRenderer: Error while compiling shader: �h���f�{������
10-26 16:30:11.228 1759-1759/? E/OpenGLRenderer: Error while compiling shader: �
10-26 16:30:11.228 1759-1759/? E/OpenGLRenderer: Error while compiling shader: X� �86��HfB���86�����Hf�����
10-26 16:30:11.328 1017-1044/? I/ActivityManager: Displayed com.mapbox.mapboxgl.testapp/com.mapbox.mapboxsdk.testapp.MainActivity: +1s165ms
10-26 16:30:12.348 1759-1788/? W/mbgl: {Map}[OpenGL]: Not using Vertex Array Objects
10-26 16:30:12.359 790-961/? D/: HostConnection::get() New Host Connection established 0xb9c95c88, tid 961
10-26 16:30:12.388 1759-1759/? A/libc: Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1), thread 1759 (apboxgl.testapp)
10-26 16:30:12.508 788-788/? I/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
10-26 16:30:12.508 788-788/? I/DEBUG: Build fingerprint: 'unknown'
10-26 16:30:12.508 788-788/? I/DEBUG: pid: 1759, tid: 1759, name: UNKNOWN  >>> com.mapbox.mapboxgl.testapp <<<
10-26 16:30:12.508 788-788/? I/DEBUG: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000000
10-26 16:30:12.808 788-788/? I/DEBUG:     eax 00000036  ebx a9e02f08  ecx 00000000  edx ffffffff
10-26 16:30:12.808 788-788/? I/DEBUG:     esi ffffffff  edi 00000000
10-26 16:30:12.808 788-788/? I/DEBUG:     xcs 00000073  xds 0000007b  xes 0000007b  xfs 00000000  xss 0000007b
10-26 16:30:12.808 788-788/? I/DEBUG:     eip a9de15b8  ebp bfee6908  esp bfee6890  flags 00010246
10-26 16:30:12.808 788-788/? I/DEBUG:     #00  pc 000145b8  /system/lib/libGLESv2_enc.so (GL2Encoder::s_glDrawElements(void*, unsigned int, int, unsigned int, void const*)+968)
10-26 16:30:12.808 788-788/? I/DEBUG:     #01  pc 00005f28  /system/lib/egl/libGLESv2_emulation.so (glDrawElements+72)
10-26 16:30:12.808 788-788/? I/DEBUG:     #02  pc 00006bb9  /system/lib/libGLESv2.so (glDrawElements+57)
10-26 16:30:12.808 788-788/? I/DEBUG:     #03  pc 0000b290  /system/lib/libhwui.so (android::uirenderer::FontRenderer::issueDrawCommand()+688)
10-26 16:30:12.808 788-788/? I/DEBUG:     #04  pc 0000db60  /system/lib/libhwui.so (android::uirenderer::FontRenderer::renderText(SkPaint*, android::uirenderer::Rect const*, char const*, unsigned int, unsigned int, int, int, int, android::uirenderer::Rect*)+208)
10-26 16:30:12.808 788-788/? I/DEBUG:     #05  pc 00030a5d  /system/lib/libhwui.so (android::uirenderer::OpenGLRenderer::drawText(char const*, int, int, float, float, SkPaint*, float)+1981)
10-26 16:30:12.808 788-788/? I/DEBUG:     #06  pc 00015127  /system/lib/libhwui.so (android::uirenderer::DisplayList::replay(android::uirenderer::OpenGLRenderer&, android::uirenderer::Rect&, int, unsigned int)+1399)
10-26 16:30:12.808 788-788/? I/DEBUG:     #07  pc 00023774  /system/lib/libhwui.so (android::uirenderer::OpenGLRenderer::drawDisplayList(android::uirenderer::DisplayList*, android::uirenderer::Rect&, int, unsigned int)+84)
10-26 16:30:12.808 788-788/? I/DEBUG:     #08  pc 00015ca7  /system/lib/libhwui.so (android::uirenderer::DisplayList::replay(android::uirenderer::OpenGLRenderer&, android::uirenderer::Rect&, int, unsigned int)+4343)
10-26 16:30:12.818 788-788/? I/DEBUG:     #09  pc 00023774  /system/lib/libhwui.so (android::uirenderer::OpenGLRenderer::drawDisplayList(android::uirenderer::DisplayList*, android::uirenderer::Rect&, int, unsigned int)+84)
10-26 16:30:12.818 788-788/? I/DEBUG:     #10  pc 00015ca7  /system/lib/libhwui.so (android::uirenderer::DisplayList::replay(android::uirenderer::OpenGLRenderer&, android::uirenderer::Rect&, int, unsigned int)+4343)
10-26 16:30:12.818 788-788/? I/DEBUG:     #11  pc 00023774  /system/lib/libhwui.so (android::uirenderer::OpenGLRenderer::drawDisplayList(android::uirenderer::DisplayList*, android::uirenderer::Rect&, int, unsigned int)+84)
10-26 16:30:12.818 788-788/? I/DEBUG:     #12  pc 00015ca7  /system/lib/libhwui.so (android::uirenderer::DisplayList::replay(android::uirenderer::OpenGLRenderer&, android::uirenderer::Rect&, int, unsigned int)+4343)
10-26 16:30:12.818 788-788/? I/DEBUG:     #13  pc 00023774  /system/lib/libhwui.so (android::uirenderer::OpenGLRenderer::drawDisplayList(android::uirenderer::DisplayList*, android::uirenderer::Rect&, int, unsigned int)+84)
10-26 16:30:12.818 788-788/? I/DEBUG:     #14  pc 00015ca7  /system/lib/libhwui.so (android::uirenderer::DisplayList::replay(android::uirenderer::OpenGLRenderer&, android::uirenderer::Rect&, int, unsigned int)+4343)
10-26 16:30:12.818 788-788/? I/DEBUG:     #15  pc 00023774  /system/lib/libhwui.so (android::uirenderer::OpenGLRenderer::drawDisplayList(android::uirenderer::DisplayList*, android::uirenderer::Rect&, int, unsigned int)+84)
10-26 16:30:12.818 788-788/? I/DEBUG:     #16  pc 00015ca7  /system/lib/libhwui.so (android::uirenderer::DisplayList::replay(android::uirenderer::OpenGLRenderer&, android::uirenderer::Rect&, int, unsigned int)+4343)
10-26 16:30:12.818 788-788/? I/DEBUG:     #17  pc 00023774  /system/lib/libhwui.so (android::uirenderer::OpenGLRenderer::drawDisplayList(android::uirenderer::DisplayList*, android::uirenderer::Rect&, int, unsigned int)+84)
10-26 16:30:12.818 788-788/? I/DEBUG:     #18  pc 00015ca7  /system/lib/libhwui.so (android::uirenderer::DisplayList::replay(android::uirenderer::OpenGLRenderer&, android::uirenderer::Rect&, int, unsigned int)+4343)
10-26 16:30:12.818 788-788/? I/DEBUG:     #19  pc 00023774  /system/lib/libhwui.so (android::uirenderer::OpenGLRenderer::drawDisplayList(android::uirenderer::DisplayList*, android::uirenderer::Rect&, int, unsigned int)+84)
10-26 16:30:12.818 788-788/? I/DEBUG:     #20  pc 00015ca7  /system/lib/libhwui.so (android::uirenderer::DisplayList::replay(android::uirenderer::OpenGLRenderer&, android::uirenderer::Rect&, int, unsigned int)+4343)
10-26 16:30:12.818 788-788/? I/DEBUG:     #21  pc 00023774  /system/lib/libhwui.so (android::uirenderer::OpenGLRenderer::drawDisplayList(android::uirenderer::DisplayList*, android::uirenderer::Rect&, int, unsigned int)+84)
10-26 16:30:12.818 788-788/? I/DEBUG:     #22  pc 00015ca7  /system/lib/libhwui.so (android::uirenderer::DisplayList::replay(android::uirenderer::OpenGLRenderer&, android::uirenderer::Rect&, int, unsigned int)+4343)
10-26 16:30:12.818 788-788/? I/DEBUG:     #23  pc 00023774  /system/lib/libhwui.so (android::uirenderer::OpenGLRenderer::drawDisplayList(android::uirenderer::DisplayList*, android::uirenderer::Rect&, int, unsigned int)+84)
10-26 16:30:12.818 788-788/? I/DEBUG:     #24  pc 000811eb  /system/lib/libandroid_runtime.so (android::android_view_GLES20Canvas_drawDisplayList(_JNIEnv*, _jobject*, android::uirenderer::OpenGLRenderer*, android::uirenderer::DisplayList*, _jobject*, int)+91)
10-26 16:30:12.818 788-788/? I/DEBUG:     #25  pc 0001aaa0  /system/lib/libdvm.so (dvmPlatformInvoke+80)
10-26 16:30:12.828 788-788/? I/DEBUG:     #26  pc 00060408  /system/lib/libdvm.so (dvmCallJNIMethod(unsigned int const*, JValue*, Method const*, Thread*)+232)
10-26 16:30:12.828 788-788/? I/DEBUG:     #27  pc 00049a51  /system/lib/libdvm.so (dvmCheckCallJNIMethod(unsigned int const*, JValue*, Method const*, Thread*)+65)
10-26 16:30:12.828 788-788/? I/DEBUG:     #28  pc 000c53c8  /system/lib/libdvm.so
10-26 16:30:12.828 788-788/? I/DEBUG:     #29  pc 00028ff6  /system/lib/libdvm.so (dvmMterpStd(Thread*)+70)
10-26 16:30:12.828 788-788/? I/DEBUG:     #30  pc 000261c0  /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+160)
10-26 16:30:12.828 788-788/? I/DEBUG:     #31  pc 00090ada  /system/lib/libdvm.so (dvmInvokeMethod(Object*, Method const*, ArrayObject*, ArrayObject*, ClassObject*, bool)+938)
10-26 16:30:12.828 788-788/? I/DEBUG:          bfee6850  00000000  
10-26 16:30:12.828 788-788/? I/DEBUG:          bfee6854  00000000  
10-26 16:30:12.828 788-788/? I/DEBUG:          bfee6858  00000000  
10-26 16:30:12.828 788-788/? I/DEBUG:          bfee685c  00000000  
10-26 16:30:12.828 788-788/? I/DEBUG:          bfee6860  00000000  
10-26 16:30:12.828 788-788/? I/DEBUG:          bfee6864  00000000  
10-26 16:30:12.828 788-788/? I/DEBUG:          bfee6868  00000000  
10-26 16:30:12.828 788-788/? I/DEBUG:          bfee686c  00000000  
10-26 16:30:12.828 788-788/? I/DEBUG:          bfee6870  00000000  
10-26 16:30:12.828 788-788/? I/DEBUG:          bfee6874  00000000  
10-26 16:30:12.838 788-788/? I/DEBUG:          bfee6878  00000000  
10-26 16:30:12.838 788-788/? I/DEBUG:          bfee687c  00000000  
10-26 16:30:12.838 788-788/? I/DEBUG:          bfee6880  00000000  
10-26 16:30:12.838 788-788/? I/DEBUG:          bfee6884  00000000  
10-26 16:30:12.838 788-788/? I/DEBUG:          bfee6888  00000000  
10-26 16:30:12.838 788-788/? I/DEBUG:          bfee688c  00000000  
10-26 16:30:12.838 788-788/? I/DEBUG:     #00  bfee6890  b9f00070  [heap]
10-26 16:30:12.838 788-788/? I/DEBUG:          bfee6894  0000003f  
10-26 16:30:12.838 788-788/? I/DEBUG:          bfee6898  00000002  
10-26 16:30:12.838 788-788/? I/DEBUG:          bfee689c  00001406  
10-26 16:30:12.838 788-788/? I/DEBUG:          bfee68a0  00000000  
10-26 16:30:12.838 788-788/? I/DEBUG:          bfee68a4  00000010  
10-26 16:30:12.838 788-788/? I/DEBUG:          bfee68a8  a829c010  
10-26 16:30:12.838 788-788/? I/DEBUG:          bfee68ac  ab046fa8  /system/lib/egl/libGLESv2_emulation.so
10-26 16:30:12.838 788-788/? I/DEBUG:          bfee68b0  a9ddffd9  /system/lib/libGLESv2_enc.so (GL2Encoder::s_glVertexAtrribPointer(void*, unsigned int, int, unsigned int, unsigned char, int, void const*)+9)
10-26 16:30:12.838 788-788/? I/DEBUG:          bfee68b4  ab046fa8  /system/lib/egl/libGLESv2_emulation.so
10-26 16:30:12.838 788-788/? I/DEBUG:          bfee68b8  bfee68e8  [stack]
10-26 16:30:12.838 788-788/? I/DEBUG:          bfee68bc  ab03da4e  /system/lib/egl/libGLESv2_emulation.so (glVertexAttribPointer+94)
10-26 16:30:12.838 788-788/? I/DEBUG:          bfee68c0  b9f1f8d8  [heap]
10-26 16:30:12.838 788-788/? I/DEBUG:          bfee68c4  00000000  
10-26 16:30:12.838 788-788/? I/DEBUG:          bfee68c8  00000002  
10-26 16:30:12.838 788-788/? I/DEBUG:          bfee68cc  b9f1f8d8  [heap]
10-26 16:30:12.838 788-788/? I/DEBUG:          ........  ........
10-26 16:30:12.838 788-788/? I/DEBUG:     #01  bfee6910  b9f1f8d8  [heap]
10-26 16:30:12.838 788-788/? I/DEBUG:          bfee6914  00000004  
10-26 16:30:12.838 788-788/? I/DEBUG:          bfee6918  00000036  
10-26 16:30:12.838 788-788/? I/DEBUG:          bfee691c  00001403  
10-26 16:30:12.838 788-788/? I/DEBUG:          bfee6920  00000000  
10-26 16:30:12.838 788-788/? I/DEBUG:          bfee6924  00000002  
10-26 16:30:12.838 788-788/? I/DEBUG:          bfee6928  00001406  
10-26 16:30:12.838 788-788/? I/DEBUG:          bfee692c  00000000  
10-26 16:30:12.838 788-788/? I/DEBUG:          bfee6930  ab03eee9  /system/lib/egl/libGLESv2_emulation.so (glDrawElements+9)
10-26 16:30:12.838 788-788/? I/DEBUG:          bfee6934  b7969fd0  /system/lib/libGLESv2.so
10-26 16:30:12.838 788-788/? I/DEBUG:          bfee6938  bfee6958  [stack]
10-26 16:30:12.838 788-788/? I/DEBUG:          bfee693c  b7964bb9  /system/lib/libGLESv2.so (glDrawElements+57)
10-26 16:30:12.838 788-788/? I/DEBUG:     #02  bfee6940  00000004  
10-26 16:30:12.838 788-788/? I/DEBUG:          bfee6944  00000036  
10-26 16:30:12.838 788-788/? I/DEBUG:          bfee6948  00001403  
10-26 16:30:12.838 788-788/? I/DEBUG:          bfee694c  00000000  
10-26 16:30:12.838 788-788/? I/DEBUG:          bfee6950  b7964b89  /system/lib/libGLESv2.so (glDrawElements+9)
10-26 16:30:12.838 788-788/? I/DEBUG:          bfee6954  b7024c04  /system/lib/libhwui.so
10-26 16:30:12.838 788-788/? I/DEBUG:          bfee6958  bfee69d8  [stack]
10-26 16:30:12.838 788-788/? I/DEBUG:          bfee695c  b6fd3290  /system/lib/libhwui.so (android::uirenderer::FontRenderer::issueDrawCommand()+688)
10-26 16:30:12.988 1017-1052/? W/InputDispatcher: channel 'b46457c8 com.mapbox.mapboxgl.testapp/com.mapbox.mapboxsdk.testapp.MainActivity (server)' ~ Consumer closed input channel or an error occurred.  events=0x9
10-26 16:30:12.988 1017-1052/? E/InputDispatcher: channel 'b46457c8 com.mapbox.mapboxgl.testapp/com.mapbox.mapboxsdk.testapp.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
10-26 16:30:12.988 1017-1052/? I/WindowManager: WINDOW DIED Window{b46457c8 com.mapbox.mapboxgl.testapp/com.mapbox.mapboxsdk.testapp.MainActivity paused=false}
10-26 16:30:12.988 1017-1052/? W/InputDispatcher: Attempted to unregister already unregistered input channel 'b46457c8 com.mapbox.mapboxgl.testapp/com.mapbox.mapboxsdk.testapp.MainActivity (server)'
10-26 16:30:12.988 1017-1044/? E/JavaBinder: !!! FAILED BINDER TRANSACTION !!!
10-26 16:30:12.988 1017-1017/? I/ActivityManager: Process com.mapbox.mapboxgl.testapp (pid 1759) has died.

@bleege
Copy link
Contributor

bleege commented Oct 26, 2015

Confirmed that the same code runs on API 19 x86 emulator. Will install and test on API 17 and API 18 emulators to see where things come off the rails.

screen shot 2015-10-26 at 4 37 16 pm

@bleege
Copy link
Contributor

bleege commented Oct 26, 2015

Just tested in API 18 x86 emulator (last version of Jelly Bean) and got the following results. It shows that the OpenGL context starts up as expected, but that it borks when compiling the shader again. So this tells me:

  1. KitKat, Lollipop, and Marshmallow are working as expected
  2. Ice Cream Sandwich and Jelly Bean are both stumbling on (the same?) OpenGL shader issue
  3. The most immediate concern is Jelly Bean (specifically API 16 and API 17) based on Market Share
10-26 17:45:08.102 1940-1966/? I/mbgl: {Map}[Android]: Not deactivating as we are not ready
10-26 17:45:08.432 1940-1940/? I/mbgl: {Main}[OpenGL]: EGL Vendor: Android
10-26 17:45:08.432 1940-1940/? I/mbgl: {Main}[OpenGL]: EGL Version: 1.4 Android META-EGL
10-26 17:45:08.432 1940-1940/? I/mbgl: {Main}[OpenGL]: EGL Client APIs: OpenGL_ES
10-26 17:45:08.432 1940-1940/? I/mbgl: {Main}[OpenGL]: EGL Client Extensions: EGL_KHR_image_base EGL_KHR_fence_sync EGL_ANDROID_image_native_buffer 
10-26 17:45:08.432 1940-1940/? W/mbgl: {Main}[Android]: In emulator! Enabling hacks :-(
10-26 17:45:08.432 1940-1940/? I/mbgl: {Main}[OpenGL]: Found 6 configs
10-26 17:45:08.432 1940-1940/? I/mbgl: {Main}[OpenGL]: Config 0:
10-26 17:45:08.432 1940-1940/? I/mbgl: {Main}[OpenGL]: ...Caveat: 12344
10-26 17:45:08.432 1940-1940/? I/mbgl: {Main}[OpenGL]: ...Conformant: 5
10-26 17:45:08.432 1940-1940/? I/mbgl: {Main}[OpenGL]: ...Color: 24
10-26 17:45:08.432 1940-1940/? I/mbgl: {Main}[OpenGL]: ...Red: 8
10-26 17:45:08.432 1940-1940/? I/mbgl: {Main}[OpenGL]: ...Green: 8
10-26 17:45:08.432 1940-1940/? I/mbgl: {Main}[OpenGL]: ...Blue: 8
10-26 17:45:08.432 1940-1940/? I/mbgl: {Main}[OpenGL]: ...Alpha: 0
10-26 17:45:08.432 1940-1940/? I/mbgl: {Main}[OpenGL]: ...Alpha mask: 0
10-26 17:45:08.432 1940-1940/? I/mbgl: {Main}[OpenGL]: ...Depth: 24
10-26 17:45:08.432 1940-1940/? I/mbgl: {Main}[OpenGL]: ...Stencil: 8
10-26 17:45:08.432 1940-1940/? I/mbgl: {Main}[OpenGL]: ...Sample buffers: 0
10-26 17:45:08.432 1940-1940/? I/mbgl: {Main}[OpenGL]: ...Samples: 0
10-26 17:45:08.432 1940-1940/? I/mbgl: {Main}[OpenGL]: Config 1:
10-26 17:45:08.432 1940-1940/? I/mbgl: {Main}[OpenGL]: ...Caveat: 12344
10-26 17:45:08.432 1940-1940/? I/mbgl: {Main}[OpenGL]: ...Conformant: 5
10-26 17:45:08.432 1940-1940/? I/mbgl: {Main}[OpenGL]: ...Color: 24
10-26 17:45:08.432 1940-1940/? I/mbgl: {Main}[OpenGL]: ...Red: 8
10-26 17:45:08.432 1940-1940/? I/mbgl: {Main}[OpenGL]: ...Green: 8
10-26 17:45:08.432 1940-1940/? I/mbgl: {Main}[OpenGL]: ...Blue: 8
10-26 17:45:08.432 1940-1940/? I/mbgl: {Main}[OpenGL]: ...Alpha: 0
10-26 17:45:08.432 1940-1940/? I/mbgl: {Main}[OpenGL]: ...Alpha mask: 0
10-26 17:45:08.432 1940-1940/? I/mbgl: {Main}[OpenGL]: ...Depth: 24
10-26 17:45:08.432 1940-1940/? I/mbgl: {Main}[OpenGL]: ...Stencil: 8
10-26 17:45:08.432 1940-1940/? I/mbgl: {Main}[OpenGL]: ...Sample buffers: 0
10-26 17:45:08.432 1940-1940/? I/mbgl: {Main}[OpenGL]: ...Samples: 0
10-26 17:45:08.432 1940-1940/? I/mbgl: {Main}[OpenGL]: Config 2:
10-26 17:45:08.432 1940-1940/? I/mbgl: {Main}[OpenGL]: ...Caveat: 12344
10-26 17:45:08.432 1940-1940/? I/mbgl: {Main}[OpenGL]: ...Conformant: 5
10-26 17:45:08.432 1940-1940/? I/mbgl: {Main}[OpenGL]: ...Color: 24
10-26 17:45:08.432 1940-1940/? I/mbgl: {Main}[OpenGL]: ...Red: 8
10-26 17:45:08.432 1940-1940/? I/mbgl: {Main}[OpenGL]: ...Green: 8
10-26 17:45:08.432 1940-1940/? I/mbgl: {Main}[OpenGL]: ...Blue: 8
10-26 17:45:08.432 1940-1940/? I/mbgl: {Main}[OpenGL]: ...Alpha: 0
10-26 17:45:08.432 1940-1940/? I/mbgl: {Main}[OpenGL]: ...Alpha mask: 0
10-26 17:45:08.432 1940-1940/? I/mbgl: {Main}[OpenGL]: ...Depth: 24
10-26 17:45:08.432 1940-1940/? I/mbgl: {Main}[OpenGL]: ...Stencil: 8
10-26 17:45:08.432 1940-1940/? I/mbgl: {Main}[OpenGL]: ...Sample buffers: 0
10-26 17:45:08.432 1940-1940/? I/mbgl: {Main}[OpenGL]: ...Samples: 0
10-26 17:45:08.432 1940-1940/? I/mbgl: {Main}[OpenGL]: Config 3:
10-26 17:45:08.432 1940-1940/? I/mbgl: {Main}[OpenGL]: ...Caveat: 12344
10-26 17:45:08.432 1940-1940/? I/mbgl: {Main}[OpenGL]: ...Conformant: 5
10-26 17:45:08.432 1940-1940/? I/mbgl: {Main}[OpenGL]: ...Color: 32
10-26 17:45:08.432 1940-1940/? I/mbgl: {Main}[OpenGL]: ...Red: 8
10-26 17:45:08.432 1940-1940/? I/mbgl: {Main}[OpenGL]: ...Green: 8
10-26 17:45:08.432 1940-1940/? I/mbgl: {Main}[OpenGL]: ...Blue: 8
10-26 17:45:08.432 1940-1940/? I/mbgl: {Main}[OpenGL]: ...Alpha: 8
10-26 17:45:08.432 1940-1940/? I/mbgl: {Main}[OpenGL]: ...Alpha mask: 0
10-26 17:45:08.432 1940-1940/? I/mbgl: {Main}[OpenGL]: ...Depth: 24
10-26 17:45:08.432 1940-1940/? I/mbgl: {Main}[OpenGL]: ...Stencil: 8
10-26 17:45:08.432 1940-1940/? I/mbgl: {Main}[OpenGL]: ...Sample buffers: 0
10-26 17:45:08.432 1940-1940/? I/mbgl: {Main}[OpenGL]: ...Samples: 0
10-26 17:45:08.432 1940-1940/? I/mbgl: {Main}[OpenGL]: Config 4:
10-26 17:45:08.432 1940-1940/? I/mbgl: {Main}[OpenGL]: ...Caveat: 12344
10-26 17:45:08.432 1940-1940/? I/mbgl: {Main}[OpenGL]: ...Conformant: 5
10-26 17:45:08.432 1940-1940/? I/mbgl: {Main}[OpenGL]: ...Color: 32
10-26 17:45:08.432 1940-1940/? I/mbgl: {Main}[OpenGL]: ...Red: 8
10-26 17:45:08.432 1940-1940/? I/mbgl: {Main}[OpenGL]: ...Green: 8
10-26 17:45:08.432 1940-1940/? I/mbgl: {Main}[OpenGL]: ...Blue: 8
10-26 17:45:08.432 1940-1940/? I/mbgl: {Main}[OpenGL]: ...Alpha: 8
10-26 17:45:08.432 1940-1940/? I/mbgl: {Main}[OpenGL]: ...Alpha mask: 0
10-26 17:45:08.432 1940-1940/? I/mbgl: {Main}[OpenGL]: ...Depth: 24
10-26 17:45:08.432 1940-1940/? I/mbgl: {Main}[OpenGL]: ...Stencil: 8
10-26 17:45:08.432 1940-1940/? I/mbgl: {Main}[OpenGL]: ...Sample buffers: 0
10-26 17:45:08.432 1940-1940/? I/mbgl: {Main}[OpenGL]: ...Samples: 0
10-26 17:45:08.432 1940-1940/? I/mbgl: {Main}[OpenGL]: Config 5:
10-26 17:45:08.432 1940-1940/? I/mbgl: {Main}[OpenGL]: ...Caveat: 12344
10-26 17:45:08.432 1940-1940/? I/mbgl: {Main}[OpenGL]: ...Conformant: 5
10-26 17:45:08.432 1940-1940/? I/mbgl: {Main}[OpenGL]: ...Color: 32
10-26 17:45:08.432 1940-1940/? I/mbgl: {Main}[OpenGL]: ...Red: 8
10-26 17:45:08.432 1940-1940/? I/mbgl: {Main}[OpenGL]: ...Green: 8
10-26 17:45:08.432 1940-1940/? I/mbgl: {Main}[OpenGL]: ...Blue: 8
10-26 17:45:08.432 1940-1940/? I/mbgl: {Main}[OpenGL]: ...Alpha: 8
10-26 17:45:08.432 1940-1940/? I/mbgl: {Main}[OpenGL]: ...Alpha mask: 0
10-26 17:45:08.432 1940-1940/? I/mbgl: {Main}[OpenGL]: ...Depth: 24
10-26 17:45:08.432 1940-1940/? I/mbgl: {Main}[OpenGL]: ...Stencil: 8
10-26 17:45:08.432 1940-1940/? I/mbgl: {Main}[OpenGL]: ...Sample buffers: 0
10-26 17:45:08.432 1940-1940/? I/mbgl: {Main}[OpenGL]: ...Samples: 0
10-26 17:45:08.432 1940-1940/? I/mbgl: {Main}[OpenGL]: Chosen config is 0
10-26 17:45:08.432 1940-1940/? I/mbgl: {Main}[OpenGL]: Chosen window format is 2
10-26 17:45:08.562 1940-1940/? W/EGL_emulation: eglSurfaceAttrib not implemented
10-26 17:45:08.562 1940-1940/? I/dalvikvm: Could not find method android.support.v7.widget.LinearLayoutCompat.drawableHotspotChanged, referenced from method android.support.design.internal.ForegroundLinearLayout.drawableHotspotChanged
10-26 17:45:08.562 1940-1940/? W/dalvikvm: VFY: unable to resolve virtual method 15108: Landroid/support/v7/widget/LinearLayoutCompat;.drawableHotspotChanged (FF)V
10-26 17:45:08.763 1940-1940/? I/mbgl: {Main}[OpenGL]: GL Vendor: Google (Intel Inc.)
10-26 17:45:08.763 1940-1940/? I/mbgl: {Main}[OpenGL]: GL Renderer: Android Emulator OpenGL ES Translator (Intel Iris OpenGL Engine)
10-26 17:45:08.763 1940-1940/? I/mbgl: {Main}[OpenGL]: GL Version: OpenGL ES 2.0 (2.1 INTEL-10.8.77)
10-26 17:45:08.763 1940-1940/? I/mbgl: {Main}[OpenGL]: GL Extensions: GL_EXT_debug_marker GL_OES_EGL_image GL_OES_EGL_image_external GL_OES_depth24 GL_OES_depth32 GL_OES_element_index_uint GL_OES_texture_float GL_OES_texture_float_linear GL_OES_compressed_paletted_texture GL_OES_compressed_ETC1_RGB8_texture GL_OES_depth_texture GL_OES_texture_half_float GL_OES_texture_half_float_linear GL_OES_packed_depth_stencil GL_OES_vertex_half_float GL_OES_texture_npot
10-26 17:45:08.772 1940-1940/? E/libEGL: call to OpenGL ES API with no current context (logged once per thread)
10-26 17:45:08.772 1940-1940/? E/OpenGLRenderer: Error while compiling shader: ���
10-26 17:45:08.772 1940-1940/? E/OpenGLRenderer: Error while compiling shader: ���
10-26 17:45:08.772 1940-1940/? E/OpenGLRenderer: Error while compiling shader: ���
10-26 17:45:08.772 1940-1940/? E/OpenGLRenderer: Error while compiling shader: $J��
10-26 17:45:08.772 1940-1940/? E/OpenGLRenderer: Error while compiling shader: �;����
10-26 17:45:08.772 1940-1940/? E/OpenGLRenderer: Error while compiling shader: �;���������������������!��
10-26 17:45:08.772 1940-1940/? E/OpenGLRenderer: Error while compiling shader: �;���������������������!��
10-26 17:45:08.772 1940-1940/? E/OpenGLRenderer: Error while compiling shader: A
10-26 17:45:08.772 1940-1966/? D/: HostConnection::get() New Host Connection established 0xb8855c90, tid 1966
10-26 17:45:08.862 1208-1516/? W/InputMethodManagerService: Starting input on non-focused client com.android.internal.view.IInputMethodClient$Stub$Proxy@b1d0c7a8 (uid=10026 pid=1532)
10-26 17:45:08.862 1532-1532/? W/IInputConnectionWrapper: showStatusIcon on inactive InputConnection
10-26 17:45:08.902 1208-1224/? I/ActivityManager: Displayed com.mapbox.mapboxgl.testapp/com.mapbox.mapboxsdk.testapp.MainActivity: +1s24ms
10-26 17:45:09.492 1940-1966/? W/mbgl: {Map}[OpenGL]: Not using Vertex Array Objects
00-00 00:00:00.0 0-0/? E/Internal: device 'emulator-5554' not found

@bleege
Copy link
Contributor

bleege commented Oct 26, 2015

For the sake of completeness I ran the app on API 17 x86 emulator and got the same same shader issue:

10-26 21:57:32.200 1997-2022/? I/mbgl: {Map}[Android]: Not deactivating as we are not ready
10-26 21:57:32.320 1997-1997/? I/mbgl: {Main}[OpenGL]: EGL Vendor: Android
10-26 21:57:32.320 1997-1997/? I/mbgl: {Main}[OpenGL]: EGL Version: 1.4 Android META-EGL
10-26 21:57:32.320 1997-1997/? I/mbgl: {Main}[OpenGL]: EGL Client APIs: OpenGL_ES
10-26 21:57:32.320 1997-1997/? I/mbgl: {Main}[OpenGL]: EGL Client Extensions: EGL_KHR_image_base EGL_KHR_fence_sync EGL_ANDROID_image_native_buffer 
10-26 21:57:32.320 1997-1997/? W/mbgl: {Main}[Android]: In emulator! Enabling hacks :-(
10-26 21:57:32.330 1997-1997/? I/mbgl: {Main}[OpenGL]: Found 6 configs
10-26 21:57:32.330 1997-1997/? I/mbgl: {Main}[OpenGL]: Config 0:
10-26 21:57:32.330 1997-1997/? I/mbgl: {Main}[OpenGL]: ...Caveat: 12344
10-26 21:57:32.330 1997-1997/? I/mbgl: {Main}[OpenGL]: ...Conformant: 5
10-26 21:57:32.330 1997-1997/? I/mbgl: {Main}[OpenGL]: ...Color: 24
10-26 21:57:32.330 1997-1997/? I/mbgl: {Main}[OpenGL]: ...Red: 8
10-26 21:57:32.330 1997-1997/? I/mbgl: {Main}[OpenGL]: ...Green: 8
10-26 21:57:32.330 1997-1997/? I/mbgl: {Main}[OpenGL]: ...Blue: 8
10-26 21:57:32.330 1997-1997/? I/mbgl: {Main}[OpenGL]: ...Alpha: 0
10-26 21:57:32.330 1997-1997/? I/mbgl: {Main}[OpenGL]: ...Alpha mask: 0
10-26 21:57:32.330 1997-1997/? I/mbgl: {Main}[OpenGL]: ...Depth: 24
10-26 21:57:32.330 1997-1997/? I/mbgl: {Main}[OpenGL]: ...Stencil: 8
10-26 21:57:32.330 1997-1997/? I/mbgl: {Main}[OpenGL]: ...Sample buffers: 0
10-26 21:57:32.330 1997-1997/? I/mbgl: {Main}[OpenGL]: ...Samples: 0
10-26 21:57:32.330 1997-1997/? I/mbgl: {Main}[OpenGL]: Config 1:
10-26 21:57:32.330 1997-1997/? I/mbgl: {Main}[OpenGL]: ...Caveat: 12344
10-26 21:57:32.330 1997-1997/? I/mbgl: {Main}[OpenGL]: ...Conformant: 5
10-26 21:57:32.330 1997-1997/? I/mbgl: {Main}[OpenGL]: ...Color: 24
10-26 21:57:32.330 1997-1997/? I/mbgl: {Main}[OpenGL]: ...Red: 8
10-26 21:57:32.330 1997-1997/? I/mbgl: {Main}[OpenGL]: ...Green: 8
10-26 21:57:32.330 1997-1997/? I/mbgl: {Main}[OpenGL]: ...Blue: 8
10-26 21:57:32.330 1997-1997/? I/mbgl: {Main}[OpenGL]: ...Alpha: 0
10-26 21:57:32.330 1997-1997/? I/mbgl: {Main}[OpenGL]: ...Alpha mask: 0
10-26 21:57:32.330 1997-1997/? I/mbgl: {Main}[OpenGL]: ...Depth: 24
10-26 21:57:32.330 1997-1997/? I/mbgl: {Main}[OpenGL]: ...Stencil: 8
10-26 21:57:32.330 1997-1997/? I/mbgl: {Main}[OpenGL]: ...Sample buffers: 0
10-26 21:57:32.330 1997-1997/? I/mbgl: {Main}[OpenGL]: ...Samples: 0
10-26 21:57:32.330 1997-1997/? I/mbgl: {Main}[OpenGL]: Config 2:
10-26 21:57:32.330 1997-1997/? I/mbgl: {Main}[OpenGL]: ...Caveat: 12344
10-26 21:57:32.330 1997-1997/? I/mbgl: {Main}[OpenGL]: ...Conformant: 5
10-26 21:57:32.330 1997-1997/? I/mbgl: {Main}[OpenGL]: ...Color: 24
10-26 21:57:32.330 1997-1997/? I/mbgl: {Main}[OpenGL]: ...Red: 8
10-26 21:57:32.330 1997-1997/? I/mbgl: {Main}[OpenGL]: ...Green: 8
10-26 21:57:32.330 1997-1997/? I/mbgl: {Main}[OpenGL]: ...Blue: 8
10-26 21:57:32.330 1997-1997/? I/mbgl: {Main}[OpenGL]: ...Alpha: 0
10-26 21:57:32.330 1997-1997/? I/mbgl: {Main}[OpenGL]: ...Alpha mask: 0
10-26 21:57:32.330 1997-1997/? I/mbgl: {Main}[OpenGL]: ...Depth: 24
10-26 21:57:32.330 1997-1997/? I/mbgl: {Main}[OpenGL]: ...Stencil: 8
10-26 21:57:32.330 1997-1997/? I/mbgl: {Main}[OpenGL]: ...Sample buffers: 0
10-26 21:57:32.330 1997-1997/? I/mbgl: {Main}[OpenGL]: ...Samples: 0
10-26 21:57:32.330 1997-1997/? I/mbgl: {Main}[OpenGL]: Config 3:
10-26 21:57:32.330 1997-1997/? I/mbgl: {Main}[OpenGL]: ...Caveat: 12344
10-26 21:57:32.330 1997-1997/? I/mbgl: {Main}[OpenGL]: ...Conformant: 5
10-26 21:57:32.330 1997-1997/? I/mbgl: {Main}[OpenGL]: ...Color: 32
10-26 21:57:32.330 1997-1997/? I/mbgl: {Main}[OpenGL]: ...Red: 8
10-26 21:57:32.330 1997-1997/? I/mbgl: {Main}[OpenGL]: ...Green: 8
10-26 21:57:32.330 1997-1997/? I/mbgl: {Main}[OpenGL]: ...Blue: 8
10-26 21:57:32.330 1997-1997/? I/mbgl: {Main}[OpenGL]: ...Alpha: 8
10-26 21:57:32.330 1997-1997/? I/mbgl: {Main}[OpenGL]: ...Alpha mask: 0
10-26 21:57:32.330 1997-1997/? I/mbgl: {Main}[OpenGL]: ...Depth: 24
10-26 21:57:32.330 1997-1997/? I/mbgl: {Main}[OpenGL]: ...Stencil: 8
10-26 21:57:32.330 1997-1997/? I/mbgl: {Main}[OpenGL]: ...Sample buffers: 0
10-26 21:57:32.330 1997-1997/? I/mbgl: {Main}[OpenGL]: ...Samples: 0
10-26 21:57:32.330 1997-1997/? I/mbgl: {Main}[OpenGL]: Config 4:
10-26 21:57:32.330 1997-1997/? I/mbgl: {Main}[OpenGL]: ...Caveat: 12344
10-26 21:57:32.330 1997-1997/? I/mbgl: {Main}[OpenGL]: ...Conformant: 5
10-26 21:57:32.330 1997-1997/? I/mbgl: {Main}[OpenGL]: ...Color: 32
10-26 21:57:32.330 1997-1997/? I/mbgl: {Main}[OpenGL]: ...Red: 8
10-26 21:57:32.330 1997-1997/? I/mbgl: {Main}[OpenGL]: ...Green: 8
10-26 21:57:32.330 1997-1997/? I/mbgl: {Main}[OpenGL]: ...Blue: 8
10-26 21:57:32.330 1997-1997/? I/mbgl: {Main}[OpenGL]: ...Alpha: 8
10-26 21:57:32.330 1997-1997/? I/mbgl: {Main}[OpenGL]: ...Alpha mask: 0
10-26 21:57:32.330 1997-1997/? I/mbgl: {Main}[OpenGL]: ...Depth: 24
10-26 21:57:32.330 1997-1997/? I/mbgl: {Main}[OpenGL]: ...Stencil: 8
10-26 21:57:32.330 1997-1997/? I/mbgl: {Main}[OpenGL]: ...Sample buffers: 0
10-26 21:57:32.330 1997-1997/? I/mbgl: {Main}[OpenGL]: ...Samples: 0
10-26 21:57:32.330 1997-1997/? I/mbgl: {Main}[OpenGL]: Config 5:
10-26 21:57:32.330 1997-1997/? I/mbgl: {Main}[OpenGL]: ...Caveat: 12344
10-26 21:57:32.330 1997-1997/? I/mbgl: {Main}[OpenGL]: ...Conformant: 5
10-26 21:57:32.330 1997-1997/? I/mbgl: {Main}[OpenGL]: ...Color: 32
10-26 21:57:32.330 1997-1997/? I/mbgl: {Main}[OpenGL]: ...Red: 8
10-26 21:57:32.330 1997-1997/? I/mbgl: {Main}[OpenGL]: ...Green: 8
10-26 21:57:32.330 1997-1997/? I/mbgl: {Main}[OpenGL]: ...Blue: 8
10-26 21:57:32.330 1997-1997/? I/mbgl: {Main}[OpenGL]: ...Alpha: 8
10-26 21:57:32.330 1997-1997/? I/mbgl: {Main}[OpenGL]: ...Alpha mask: 0
10-26 21:57:32.330 1997-1997/? I/mbgl: {Main}[OpenGL]: ...Depth: 24
10-26 21:57:32.330 1997-1997/? I/mbgl: {Main}[OpenGL]: ...Stencil: 8
10-26 21:57:32.330 1997-1997/? I/mbgl: {Main}[OpenGL]: ...Sample buffers: 0
10-26 21:57:32.330 1997-1997/? I/mbgl: {Main}[OpenGL]: ...Samples: 0
10-26 21:57:32.330 1997-1997/? I/mbgl: {Main}[OpenGL]: Chosen config is 0
10-26 21:57:32.330 1997-1997/? I/mbgl: {Main}[OpenGL]: Chosen window format is 2
10-26 21:57:32.450 792-893/? E/SurfaceFlinger: ro.sf.lcd_density must be defined as a build property
10-26 21:57:32.450 792-792/? D/: HostConnection::get() New Host Connection established 0xb9941c30, tid 792
10-26 21:57:32.500 1997-1997/? W/EGL_emulation: eglSurfaceAttrib not implemented
10-26 21:57:32.510 1997-1997/? I/dalvikvm: Could not find method android.support.v7.widget.LinearLayoutCompat.drawableHotspotChanged, referenced from method android.support.design.internal.ForegroundLinearLayout.drawableHotspotChanged
10-26 21:57:32.510 1997-1997/? W/dalvikvm: VFY: unable to resolve virtual method 15108: Landroid/support/v7/widget/LinearLayoutCompat;.drawableHotspotChanged (FF)V
10-26 21:57:32.680 792-904/? E/SurfaceFlinger: ro.sf.lcd_density must be defined as a build property
10-26 21:57:32.691 1997-1997/? I/mbgl: {Main}[OpenGL]: GL Vendor: Google (Intel Inc.)
10-26 21:57:32.701 1997-1997/? I/mbgl: {Main}[OpenGL]: GL Renderer: Android Emulator OpenGL ES Translator (Intel Iris OpenGL Engine)
10-26 21:57:32.711 1997-1997/? I/mbgl: {Main}[OpenGL]: GL Version: OpenGL ES 2.0 (2.1 INTEL-10.8.77)
10-26 21:57:32.711 1997-1997/? I/mbgl: {Main}[OpenGL]: GL Extensions: GL_EXT_debug_marker GL_OES_EGL_image GL_OES_EGL_image_external GL_OES_depth24 GL_OES_depth32 GL_OES_element_index_uint GL_OES_texture_float GL_OES_texture_float_linear GL_OES_compressed_paletted_texture GL_OES_compressed_ETC1_RGB8_texture GL_OES_depth_texture GL_OES_texture_half_float GL_OES_texture_half_float_linear GL_OES_packed_depth_stencil GL_OES_vertex_half_float GL_OES_texture_npot
10-26 21:57:32.730 1997-2022/? D/: HostConnection::get() New Host Connection established 0xb9fcf0f0, tid 2022
10-26 21:57:32.931 1997-1997/? E/libEGL: call to OpenGL ES API with no current context (logged once per thread)
10-26 21:57:32.931 1997-1997/? E/OpenGLRenderer: Error while compiling shader: @*���
10-26 21:57:32.931 1997-1997/? E/OpenGLRenderer: Error while compiling shader: ��PK��PK����w���� ���%
10-26 21:57:32.961 1997-1997/? E/OpenGLRenderer: Error while compiling shader: �110-26 21:57:32.961 1997-1997/? E/OpenGLRenderer: Error while compiling shader: 
10-26 21:57:32.961 1997-1997/? E/OpenGLRenderer: Error while compiling shader: 
10-26 21:57:32.961 1997-1997/? E/OpenGLRenderer: Error while compiling shader: 
10-26 21:57:32.961 1997-1997/? E/OpenGLRenderer: Error while compiling shader: 
10-26 21:57:32.961 1997-1997/? E/OpenGLRenderer: Error while compiling shader: ���    
10-26 21:57:32.971 792-893/? D/: HostConnection::get() New Host Connection established 0xb99431c0, tid 893
10-26 21:57:33.001 1560-1560/? W/IInputConnectionWrapper: showStatusIcon on inactive InputConnection
10-26 21:57:33.021 1209-1224/? I/ActivityManager: Displayed com.mapbox.mapboxgl.testapp/com.mapbox.mapboxsdk.testapp.MainActivity: +978ms
10-26 21:57:33.600 1997-2022/? W/mbgl: {Map}[OpenGL]: Not using Vertex Array Objects
10-26 21:57:33.610 792-897/? D/: HostConnection::get() New Host Connection established 0xb99380d0, tid 897
10-26 21:57:33.620 1997-1997/? E/eglCodecCommon: **** ERROR unknown type 0xba056fa4 (glSizeof,72)
10-26 21:57:42.052 1209-1222/? W/ActivityManager: Launch timeout has expired, giving up wake lock!
10-26 21:57:42.071 1209-1222/? W/ActivityManager: Activity idle timeout for ActivityRecord{b2f33100 u0 com.mapbox.mapboxgl.testapp/com.mapbox.mapboxsdk.testapp.MainActivity}

@ljbade
Copy link
Contributor

ljbade commented Oct 26, 2015

@bleege @tobrun I tested an API 16 emulator end of last week (Friday or Saturday) and it worked no issues.

This must be from a recent commit.

@bleege
Copy link
Contributor

bleege commented Oct 26, 2015

Here's what a successful stack trace from API 19 (KitKat) looks like.

10-26 18:11:50.345 1829-1855/? I/mbgl: {Map}[Android]: Not activating as we are not ready
10-26 18:11:50.345 1829-1855/? I/mbgl: {Map}[Android]: Not deactivating as we are not ready
10-26 18:11:50.605 1829-1829/? I/mbgl: {Main}[OpenGL]: EGL Vendor: Android
10-26 18:11:50.605 1829-1829/? I/mbgl: {Main}[OpenGL]: EGL Version: 1.4 Android META-EGL
10-26 18:11:50.605 1829-1829/? I/mbgl: {Main}[OpenGL]: EGL Client APIs: OpenGL_ES
10-26 18:11:50.605 1829-1829/? I/mbgl: {Main}[OpenGL]: EGL Client Extensions: EGL_KHR_get_all_proc_addresses EGL_ANDROID_presentation_time EGL_KHR_image_base EGL_KHR_fence_sync EGL_ANDROID_image_native_buffer 
10-26 18:11:50.605 1829-1829/? W/mbgl: {Main}[Android]: In emulator! Enabling hacks :-(
10-26 18:11:50.605 1829-1829/? I/mbgl: {Main}[OpenGL]: Found 6 configs
10-26 18:11:50.605 1829-1829/? I/mbgl: {Main}[OpenGL]: Config 0:
10-26 18:11:50.605 1829-1829/? I/mbgl: {Main}[OpenGL]: ...Caveat: 12344
10-26 18:11:50.605 1829-1829/? I/mbgl: {Main}[OpenGL]: ...Conformant: 5
10-26 18:11:50.605 1829-1829/? I/mbgl: {Main}[OpenGL]: ...Color: 24
10-26 18:11:50.605 1829-1829/? I/mbgl: {Main}[OpenGL]: ...Red: 8
10-26 18:11:50.605 1829-1829/? I/mbgl: {Main}[OpenGL]: ...Green: 8
10-26 18:11:50.605 1829-1829/? I/mbgl: {Main}[OpenGL]: ...Blue: 8
10-26 18:11:50.605 1829-1829/? I/mbgl: {Main}[OpenGL]: ...Alpha: 0
10-26 18:11:50.605 1829-1829/? I/mbgl: {Main}[OpenGL]: ...Alpha mask: 0
10-26 18:11:50.605 1829-1829/? I/mbgl: {Main}[OpenGL]: ...Depth: 24
10-26 18:11:50.605 1829-1829/? I/mbgl: {Main}[OpenGL]: ...Stencil: 8
10-26 18:11:50.605 1829-1829/? I/mbgl: {Main}[OpenGL]: ...Sample buffers: 0
10-26 18:11:50.605 1829-1829/? I/mbgl: {Main}[OpenGL]: ...Samples: 0
10-26 18:11:50.605 1829-1829/? I/mbgl: {Main}[OpenGL]: Config 1:
10-26 18:11:50.605 1829-1829/? I/mbgl: {Main}[OpenGL]: ...Caveat: 12344
10-26 18:11:50.605 1829-1829/? I/mbgl: {Main}[OpenGL]: ...Conformant: 5
10-26 18:11:50.605 1829-1829/? I/mbgl: {Main}[OpenGL]: ...Color: 24
10-26 18:11:50.605 1829-1829/? I/mbgl: {Main}[OpenGL]: ...Red: 8
10-26 18:11:50.605 1829-1829/? I/mbgl: {Main}[OpenGL]: ...Green: 8
10-26 18:11:50.605 1829-1829/? I/mbgl: {Main}[OpenGL]: ...Blue: 8
10-26 18:11:50.605 1829-1829/? I/mbgl: {Main}[OpenGL]: ...Alpha: 0
10-26 18:11:50.605 1829-1829/? I/mbgl: {Main}[OpenGL]: ...Alpha mask: 0
10-26 18:11:50.605 1829-1829/? I/mbgl: {Main}[OpenGL]: ...Depth: 24
10-26 18:11:50.605 1829-1829/? I/mbgl: {Main}[OpenGL]: ...Stencil: 8
10-26 18:11:50.605 1829-1829/? I/mbgl: {Main}[OpenGL]: ...Sample buffers: 0
10-26 18:11:50.605 1829-1829/? I/mbgl: {Main}[OpenGL]: ...Samples: 0
10-26 18:11:50.605 1829-1829/? I/mbgl: {Main}[OpenGL]: Config 2:
10-26 18:11:50.605 1829-1829/? I/mbgl: {Main}[OpenGL]: ...Caveat: 12344
10-26 18:11:50.605 1829-1829/? I/mbgl: {Main}[OpenGL]: ...Conformant: 5
10-26 18:11:50.605 1829-1829/? I/mbgl: {Main}[OpenGL]: ...Color: 24
10-26 18:11:50.605 1829-1829/? I/mbgl: {Main}[OpenGL]: ...Red: 8
10-26 18:11:50.605 1829-1829/? I/mbgl: {Main}[OpenGL]: ...Green: 8
10-26 18:11:50.605 1829-1829/? I/mbgl: {Main}[OpenGL]: ...Blue: 8
10-26 18:11:50.605 1829-1829/? I/mbgl: {Main}[OpenGL]: ...Alpha: 0
10-26 18:11:50.605 1829-1829/? I/mbgl: {Main}[OpenGL]: ...Alpha mask: 0
10-26 18:11:50.605 1829-1829/? I/mbgl: {Main}[OpenGL]: ...Depth: 24
10-26 18:11:50.605 1829-1829/? I/mbgl: {Main}[OpenGL]: ...Stencil: 8
10-26 18:11:50.605 1829-1829/? I/mbgl: {Main}[OpenGL]: ...Sample buffers: 0
10-26 18:11:50.605 1829-1829/? I/mbgl: {Main}[OpenGL]: ...Samples: 0
10-26 18:11:50.605 1829-1829/? I/mbgl: {Main}[OpenGL]: Config 3:
10-26 18:11:50.605 1829-1829/? I/mbgl: {Main}[OpenGL]: ...Caveat: 12344
10-26 18:11:50.605 1829-1829/? I/mbgl: {Main}[OpenGL]: ...Conformant: 5
10-26 18:11:50.605 1829-1829/? I/mbgl: {Main}[OpenGL]: ...Color: 32
10-26 18:11:50.605 1829-1829/? I/mbgl: {Main}[OpenGL]: ...Red: 8
10-26 18:11:50.605 1829-1829/? I/mbgl: {Main}[OpenGL]: ...Green: 8
10-26 18:11:50.605 1829-1829/? I/mbgl: {Main}[OpenGL]: ...Blue: 8
10-26 18:11:50.605 1829-1829/? I/mbgl: {Main}[OpenGL]: ...Alpha: 8
10-26 18:11:50.605 1829-1829/? I/mbgl: {Main}[OpenGL]: ...Alpha mask: 0
10-26 18:11:50.605 1829-1829/? I/mbgl: {Main}[OpenGL]: ...Depth: 24
10-26 18:11:50.605 1829-1829/? I/mbgl: {Main}[OpenGL]: ...Stencil: 8
10-26 18:11:50.605 1829-1829/? I/mbgl: {Main}[OpenGL]: ...Sample buffers: 0
10-26 18:11:50.605 1829-1829/? I/mbgl: {Main}[OpenGL]: ...Samples: 0
10-26 18:11:50.605 1829-1829/? I/mbgl: {Main}[OpenGL]: Config 4:
10-26 18:11:50.605 1829-1829/? I/mbgl: {Main}[OpenGL]: ...Caveat: 12344
10-26 18:11:50.605 1829-1829/? I/mbgl: {Main}[OpenGL]: ...Conformant: 5
10-26 18:11:50.605 1829-1829/? I/mbgl: {Main}[OpenGL]: ...Color: 32
10-26 18:11:50.605 1829-1829/? I/mbgl: {Main}[OpenGL]: ...Red: 8
10-26 18:11:50.605 1829-1829/? I/mbgl: {Main}[OpenGL]: ...Green: 8
10-26 18:11:50.605 1829-1829/? I/mbgl: {Main}[OpenGL]: ...Blue: 8
10-26 18:11:50.605 1829-1829/? I/mbgl: {Main}[OpenGL]: ...Alpha: 8
10-26 18:11:50.605 1829-1829/? I/mbgl: {Main}[OpenGL]: ...Alpha mask: 0
10-26 18:11:50.605 1829-1829/? I/mbgl: {Main}[OpenGL]: ...Depth: 24
10-26 18:11:50.605 1829-1829/? I/mbgl: {Main}[OpenGL]: ...Stencil: 8
10-26 18:11:50.605 1829-1829/? I/mbgl: {Main}[OpenGL]: ...Sample buffers: 0
10-26 18:11:50.605 1829-1829/? I/mbgl: {Main}[OpenGL]: ...Samples: 0
10-26 18:11:50.605 1829-1829/? I/mbgl: {Main}[OpenGL]: Config 5:
10-26 18:11:50.605 1829-1829/? I/mbgl: {Main}[OpenGL]: ...Caveat: 12344
10-26 18:11:50.605 1829-1829/? I/mbgl: {Main}[OpenGL]: ...Conformant: 5
10-26 18:11:50.605 1829-1829/? I/mbgl: {Main}[OpenGL]: ...Color: 32
10-26 18:11:50.605 1829-1829/? I/mbgl: {Main}[OpenGL]: ...Red: 8
10-26 18:11:50.605 1829-1829/? I/mbgl: {Main}[OpenGL]: ...Green: 8
10-26 18:11:50.605 1829-1829/? I/mbgl: {Main}[OpenGL]: ...Blue: 8
10-26 18:11:50.605 1829-1829/? I/mbgl: {Main}[OpenGL]: ...Alpha: 8
10-26 18:11:50.605 1829-1829/? I/mbgl: {Main}[OpenGL]: ...Alpha mask: 0
10-26 18:11:50.605 1829-1829/? I/mbgl: {Main}[OpenGL]: ...Depth: 24
10-26 18:11:50.605 1829-1829/? I/mbgl: {Main}[OpenGL]: ...Stencil: 8
10-26 18:11:50.605 1829-1829/? I/mbgl: {Main}[OpenGL]: ...Sample buffers: 0
10-26 18:11:50.605 1829-1829/? I/mbgl: {Main}[OpenGL]: ...Samples: 0
10-26 18:11:50.605 1829-1829/? I/mbgl: {Main}[OpenGL]: Chosen config is 0
10-26 18:11:50.605 1829-1829/? I/mbgl: {Main}[OpenGL]: Chosen window format is 2
10-26 18:11:50.725 1829-1829/? W/EGL_emulation: eglSurfaceAttrib not implemented
10-26 18:11:50.745 1829-1829/? I/dalvikvm: Could not find method android.support.v7.widget.LinearLayoutCompat.drawableHotspotChanged, referenced from method android.support.design.internal.ForegroundLinearLayout.drawableHotspotChanged
10-26 18:11:50.755 1829-1829/? W/dalvikvm: VFY: unable to resolve virtual method 15108: Landroid/support/v7/widget/LinearLayoutCompat;.drawableHotspotChanged (FF)V
10-26 18:11:50.875 1829-1829/? I/mbgl: {Main}[OpenGL]: GL Vendor: Google (Intel Inc.)
10-26 18:11:50.875 1829-1829/? I/mbgl: {Main}[OpenGL]: GL Renderer: Android Emulator OpenGL ES Translator (Intel Iris OpenGL Engine)
10-26 18:11:50.885 1829-1829/? I/mbgl: {Main}[OpenGL]: GL Version: OpenGL ES 2.0 (2.1 INTEL-10.8.77)
10-26 18:11:50.885 1829-1829/? I/mbgl: {Main}[OpenGL]: GL Extensions: GL_EXT_debug_marker GL_OES_EGL_image GL_OES_EGL_image_external GL_OES_depth24 GL_OES_depth32 GL_OES_element_index_uint GL_OES_texture_float GL_OES_texture_float_linear GL_OES_compressed_paletted_texture GL_OES_compressed_ETC1_RGB8_texture GL_OES_depth_texture GL_OES_texture_half_float GL_OES_texture_half_float_linear GL_OES_packed_depth_stencil GL_OES_vertex_half_float GL_OES_texture_npot
10-26 18:11:50.895 1829-1855/? D/: HostConnection::get() New Host Connection established 0xb95dc500, tid 1855
10-26 18:11:51.255 1251-1265/? I/ActivityManager: Displayed com.mapbox.mapboxgl.testapp/com.mapbox.mapboxsdk.testapp.MainActivity: +1s215ms
10-26 18:11:51.865 1829-1855/? W/mbgl: {Map}[OpenGL]: Not using Vertex Array Objects

@bleege
Copy link
Contributor

bleege commented Oct 26, 2015

Should point out that I'm testing as of e257ad2 from master.

@ljbade
Copy link
Contributor

ljbade commented Oct 26, 2015

E/libEGL: call to OpenGL ES API with no current context (logged once per thread)

This line looks suspicious.

Need to investigate if we are trying to run GL from the wrong thread.

@tobrun
Copy link
Member Author

tobrun commented Oct 26, 2015

@ljbade

This must be from a recent commit.

I believe that the user reporting this issue are building from 2.1.0 release and not from master

@ljbade
Copy link
Contributor

ljbade commented Oct 26, 2015

@tobrun OK thats interesting.

I also found Surface.finalize() has work. You should have called release() (-1184371352, 0) on my emulator.

Interesting thing is on API 16 the fatal crash is in the Android frameworks font renderer. Likely as a result of us corrupting GL.

@ljbade
Copy link
Contributor

ljbade commented Oct 26, 2015

I think the emulator is very flakey prior to KitKat when it comes to OpenGL. I encountered a number of unexplainable crashes on the early emulator releases 12 months ago that all went away with KitKat (which was about when I started logging them as bugs in AOSP tracker)

@ljbade
Copy link
Contributor

ljbade commented Oct 26, 2015

So we should focus on a real Jelly Bean device.

@ljbade
Copy link
Contributor

ljbade commented Oct 26, 2015

Added some extra logging to Shader::compileShader in Core GL. Does appear to be that the GL shader source string is corrupt:

10-27 10:25:11.846 2060-2096/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Compiling shader code:
10-27 10:25:11.846 2060-2096/com.mapbox.mapboxgl.testapp E/mbgl: ��c�X��Ĕ��
10-27 10:25:11.846 2060-2096/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Code length 134
10-27 10:25:11.846 2060-2096/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Compiling shader code:
�c���c�X��Ĕ��
10-27 10:25:11.846 2060-2096/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Code length 90
10-27 10:25:11.866 2060-2096/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Compiling shader code:
10-27 10:25:11.866 2060-2096/com.mapbox.mapboxgl.testapp E/mbgl: ��c�X��<�p������.��tp��zc�c��FL���qp���詨���mp��tp�<�p�ؓ���.��tp�qzc���c���c��@�<�p�ؓ���L�|
10-27 10:25:11.866 2060-2096/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Code length 244
10-27 10:25:11.866 2060-2096/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Compiling shader code:
10-27 10:25:11.866 2060-2096/com.mapbox.mapboxgl.testapp E/mbgl: ��c���c�X��<�p������.��tp��zc�c��FL���qp���詨���mp��tp�<�p�ؓ���.��tp�qzc���c���c��@�<�p�ؓ���L�|
10-27 10:25:11.866 2060-2096/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Code length 215
10-27 10:25:11.876 2060-2096/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Compiling shader code:
10-27 10:25:11.876 2060-2096/com.mapbox.mapboxgl.testapp E/mbgl: ��c�X��<�p���詯�.�8up��zc�c��FL���qp���詨���mp�8up�<�p�ؓ��    /�8up�'Wc���c���c��@�<�p�ؓ���L��
10-27 10:25:11.876 2060-2096/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Code length 1962
10-27 10:25:11.876 2060-2096/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Compiling shader code:
10-27 10:25:11.876 2060-2096/com.mapbox.mapboxgl.testapp E/mbgl: ��c���c�X��<�p���詯�.�8up��zc�c��FL���qp���詨���mp�8up�<�p�ؓ��  /�8up�'Wc���c���c��@�<�p�ؓ���L��
10-27 10:25:11.876 2060-2096/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Code length 638
10-27 10:25:11.996 2060-2074/com.mapbox.mapboxgl.testapp D/dalvikvm: GC_FOR_ALLOC freed 253K, 2% free 20016K/20423K, paused 3ms, total 3ms
10-27 10:25:12.006 2060-2066/com.mapbox.mapboxgl.testapp D/dalvikvm: GC_CONCURRENT freed 13K, 2% free 20017K/20423K, paused 0ms+1ms, total 3ms
10-27 10:25:12.006 2060-2070/com.mapbox.mapboxgl.testapp W/Surface: Surface.finalize() has work. You should have called release() (-1184336024, 0)
10-27 10:25:12.016 2060-2096/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Compiling shader code:
10-27 10:25:12.016 2060-2096/com.mapbox.mapboxgl.testapp E/mbgl: j�c�X���
10-27 10:25:12.016 2060-2096/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Code length 2493
10-27 10:25:12.026 2060-2096/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Compiling shader code:
10-27 10:25:12.026 2060-2096/com.mapbox.mapboxgl.testapp E/mbgl: (�c�j�c�X���
10-27 10:25:12.026 2060-2096/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Code length 987
10-27 10:25:12.046 2060-2096/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Compiling shader code:
10-27 10:25:12.046 2060-2096/com.mapbox.mapboxgl.testapp E/mbgl: =�c�X��
10-27 10:25:12.046 2060-2096/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Code length 2215
10-27 10:25:12.046 2060-2096/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Compiling shader code:
10-27 10:25:12.046 2060-2096/com.mapbox.mapboxgl.testapp E/mbgl: �c�=�c�X��
10-27 10:25:12.046 2060-2096/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Code length 1412
10-27 10:25:12.066 2060-2096/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Compiling shader code:
10-27 10:25:12.066 2060-2096/com.mapbox.mapboxgl.testapp E/mbgl: ��c�X��
10-27 10:25:12.066 2060-2096/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Code length 353
10-27 10:25:12.075 2060-2096/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Compiling shader code:
�c���c�X��
10-27 10:25:12.075 2060-2096/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Code length 639
10-27 10:25:12.075 2060-2096/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Compiling shader code:
10-27 10:25:12.075 2060-2096/com.mapbox.mapboxgl.testapp E/mbgl: ��c�X��<�p����0�/�8�o��zc�c��F��~�
10-27 10:25:12.086 2060-2096/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Code length 1768
10-27 10:25:12.127 2060-2096/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Compiling shader code:
10-27 10:25:12.127 2060-2096/com.mapbox.mapboxgl.testapp E/mbgl: ��c���c�X��<�p����0�/�8�o��zc�c��F��~�
10-27 10:25:12.136 2060-2096/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Code length 171
10-27 10:25:12.176 2060-2096/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Compiling shader code:
10-27 10:25:12.176 2060-2096/com.mapbox.mapboxgl.testapp E/mbgl: �c�X���
10-27 10:25:12.176 2060-2096/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Code length 287
10-27 10:25:12.176 2060-2096/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Compiling shader code:
10-27 10:25:12.176 2060-2096/com.mapbox.mapboxgl.testapp E/mbgl: ��c��c�X���
10-27 10:25:12.186 2060-2096/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Code length 949
10-27 10:25:12.226 2060-2096/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Compiling shader code:
10-27 10:25:12.226 2060-2096/com.mapbox.mapboxgl.testapp E/mbgl: h�c�X��<�p����v#/� V���zc�c��F��~��
10-27 10:25:12.226 2060-2096/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Code length 1949
10-27 10:25:12.236 2060-2096/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Compiling shader code:
10-27 10:25:12.236 2060-2096/com.mapbox.mapboxgl.testapp E/mbgl: ��c�h�c�X��<�p����v#/� V���zc�c��F��~��
10-27 10:25:12.236 2060-2096/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Code length 420
10-27 10:25:12.256 2060-2096/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Compiling shader code:
10-27 10:25:12.256 2060-2096/com.mapbox.mapboxgl.testapp E/mbgl: h�c�X���
10-27 10:25:12.256 2060-2096/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Code length 1949
10-27 10:25:12.256 2060-2096/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Compiling shader code:
10-27 10:25:12.256 2060-2096/com.mapbox.mapboxgl.testapp E/mbgl: ��c�h�c�X���
10-27 10:25:12.256 2060-2096/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Code length 420
10-27 10:25:12.306 2060-2096/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Compiling shader code:
10-27 10:25:12.306 2060-2096/com.mapbox.mapboxgl.testapp E/mbgl: .�c�X���
10-27 10:25:12.306 2060-2096/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Code length 187
10-27 10:25:12.306 2060-2096/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Compiling shader code:
10-27 10:25:12.306 2060-2096/com.mapbox.mapboxgl.testapp E/mbgl: ��c�.�c�X���
10-27 10:25:12.316 2060-2096/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Code length 214
10-27 10:25:12.326 2060-2096/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Compiling shader code:
10-27 10:25:12.326 2060-2096/com.mapbox.mapboxgl.testapp E/mbgl: f�c�X��<�p������.��`���zc�c��F��~��
10-27 10:25:12.326 2060-2096/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Code length 352
10-27 10:25:12.326 2060-2096/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Compiling shader code:
10-27 10:25:12.326 2060-2096/com.mapbox.mapboxgl.testapp E/mbgl: Ǒc�f�c�X��<�p������.��`���zc�c��F��~��
10-27 10:25:12.326 2060-2096/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Code length 539
10-27 10:25:12.346 2060-2096/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Compiling shader code:
10-27 10:25:12.346 2060-2096/com.mapbox.mapboxgl.testapp E/mbgl: ��c�X��"
10-27 10:25:12.346 2060-2096/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Code length 707
10-27 10:25:12.346 2060-2096/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Compiling shader code:
10-27 10:25:12.346 2060-2096/com.mapbox.mapboxgl.testapp E/mbgl: Q�c���c�X��"
10-27 10:25:12.346 2060-2096/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Code length 235

@ljbade
Copy link
Contributor

ljbade commented Oct 26, 2015

From Marshmallow:

10-27 10:28:31.812 2122-2154/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Compiling shader code:
10-27 10:28:31.812 2122-2154/com.mapbox.mapboxgl.testapp E/mbgl: �
10-27 10:28:31.812 2122-2154/com.mapbox.mapboxgl.testapp E/mbgl: ޢd�c�4�b�{
10-27 10:28:31.813 2122-2154/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Code length 134
10-27 10:28:31.815 2122-2154/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Compiling shader code:
�ޢ�
10-27 10:28:31.815 2122-2154/com.mapbox.mapboxgl.testapp E/mbgl: ޢd�c�4�b�{
10-27 10:28:31.815 2122-2154/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Code length 90
10-27 10:28:31.834 2122-2154/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Compiling shader code:
10-27 10:28:31.834 2122-2154/com.mapbox.mapboxgl.testapp E/mbgl: ��ޢ<�m�<Q���c��d����ݢ��ݢw�����:�,�>���c�(�c�
10-27 10:28:31.837 2122-2154/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Code length 244
10-27 10:28:31.840 2122-2154/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Compiling shader code:
10-27 10:28:31.840 2122-2154/com.mapbox.mapboxgl.testapp E/mbgl: �    ޢ��ޢ<�m�<Q���c��d����ݢ��ݢw�����:�,�>���c�(�c�
10-27 10:28:31.842 2122-2154/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Code length 215
10-27 10:28:31.853 2122-2154/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Compiling shader code:
10-27 10:28:31.853 2122-2154/com.mapbox.mapboxgl.testapp E/mbgl: �8ޢp���<Q���c��e����ݢ��ݢw�����:�,�>���c�(�c�
10-27 10:28:31.853 2122-2154/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Code length 1962
10-27 10:28:31.864 2122-2154/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Compiling shader code:
10-27 10:28:31.864 2122-2154/com.mapbox.mapboxgl.testapp E/mbgl: �?ޢ�8ޢp���<Q���c��e����ݢ��ݢw�����:�,�>���c�(�c�
10-27 10:28:31.865 2122-2154/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Code length 638
10-27 10:28:31.884 2122-2154/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Compiling shader code:
10-27 10:28:31.884 2122-2154/com.mapbox.mapboxgl.testapp E/mbgl: j*ޢ����<Q���c�d�c�
10-27 10:28:31.891 2122-2154/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Code length 2493
10-27 10:28:31.899 2122-2154/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Compiling shader code:
10-27 10:28:31.899 2122-2154/com.mapbox.mapboxgl.testapp E/mbgl: (4ޢj*ޢ����<Q���c�d�c�
10-27 10:28:31.900 2122-2154/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Code length 987
10-27 10:28:31.952 2122-2154/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Compiling shader code:
10-27 10:28:31.952 2122-2154/com.mapbox.mapboxgl.testapp E/mbgl: =�ޢX6��<Q���c�d�c�
10-27 10:28:31.953 2122-2154/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Code length 2215
10-27 10:28:31.957 2122-2154/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Compiling shader code:
10-27 10:28:31.957 2122-2154/com.mapbox.mapboxgl.testapp E/mbgl: �$ޢ=�ޢX6��<Q���c�d�c�
10-27 10:28:31.957 2122-2154/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Code length 1412
10-27 10:28:31.973 2122-2154/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Compiling shader code:
10-27 10:28:31.973 2122-2154/com.mapbox.mapboxgl.testapp E/mbgl: ��ޢ�K��<Q���c�d�c�
10-27 10:28:31.975 2122-2154/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Code length 353
10-27 10:28:31.982 2122-2154/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Compiling shader code:
�ޢ��ޢ�K��<Q���c�d�c�
10-27 10:28:31.983 2122-2154/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Code length 639
10-27 10:28:31.994 2122-2154/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Compiling shader code:
10-27 10:28:31.994 2122-2154/com.mapbox.mapboxgl.testapp E/mbgl: �Cޢ����<Q���c�0x����ݢ��ݢw���`!c�
10-27 10:28:31.995 2122-2154/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Code length 1768
10-27 10:28:32.008 2122-2154/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Compiling shader code:
10-27 10:28:32.008 2122-2154/com.mapbox.mapboxgl.testapp E/mbgl: �Jޢ�Cޢ����<Q���c�0x����ݢ��ݢw���`!c�
10-27 10:28:32.009 2122-2154/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Code length 171
10-27 10:28:32.049 2122-2154/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Compiling shader code:
10-27 10:28:32.049 2122-2154/com.mapbox.mapboxgl.testapp E/mbgl: ��ޢ����<Q���c�d�c��
10-27 10:28:32.050 2122-2154/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Code length 287
10-27 10:28:32.052 2122-2154/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Compiling shader code:
10-27 10:28:32.052 2122-2154/com.mapbox.mapboxgl.testapp E/mbgl: ��ޢ��ޢ����<Q���c�d�c��
10-27 10:28:32.053 2122-2154/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Code length 949
10-27 10:28:32.121 2122-2154/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Compiling shader code:
10-27 10:28:32.121 2122-2154/com.mapbox.mapboxgl.testapp E/mbgl: h�ޢ�.��<Q���c�v�����ݢ��ݢw���`!c�
10-27 10:28:32.122 2122-2154/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Code length 1949
10-27 10:28:32.127 2122-2154/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Compiling shader code:
10-27 10:28:32.127 2122-2154/com.mapbox.mapboxgl.testapp E/mbgl: ��ޢh�ޢ�.��<Q���c�v�����ݢ��ݢw���`!c�
10-27 10:28:32.128 2122-2154/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Code length 420
10-27 10:28:32.171 2122-2154/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Compiling shader code:
10-27 10:28:32.171 2122-2154/com.mapbox.mapboxgl.testapp E/mbgl: h�ޢ@O��<Q���c�d�c��
10-27 10:28:32.172 2122-2154/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Code length 1949
10-27 10:28:32.176 2122-2154/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Compiling shader code:
10-27 10:28:32.176 2122-2154/com.mapbox.mapboxgl.testapp E/mbgl: ��ޢh�ޢ@O��<Q���c�d�c��
10-27 10:28:32.177 2122-2154/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Code length 420
10-27 10:28:32.192 2122-2154/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Compiling shader code:
10-27 10:28:32.192 2122-2154/com.mapbox.mapboxgl.testapp E/mbgl: .Bޢ��ş<Q���c�d�c��
10-27 10:28:32.193 2122-2154/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Code length 187
10-27 10:28:32.194 2122-2154/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Compiling shader code:
10-27 10:28:32.194 2122-2154/com.mapbox.mapboxgl.testapp E/mbgl: �Bޢ.Bޢ��ş<Q���c�d�c��
10-27 10:28:32.195 2122-2154/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Code length 214
10-27 10:28:32.213 2122-2154/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Compiling shader code:
10-27 10:28:32.213 2122-2154/com.mapbox.mapboxgl.testapp E/mbgl: f
10-27 10:28:32.214 2122-2154/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Code length 352
10-27 10:28:32.216 2122-2154/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Compiling shader code:
10-27 10:28:32.216 2122-2154/com.mapbox.mapboxgl.testapp E/mbgl: ��ޢf
10-27 10:28:32.216 2122-2154/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Code length 539
10-27 10:28:32.223 2122-2154/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Compiling shader code:
10-27 10:28:32.223 2122-2154/com.mapbox.mapboxgl.testapp E/mbgl: ��ޢl���<Q���c�d�c��
10-27 10:28:32.224 2122-2154/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Code length 707
10-27 10:28:32.225 2122-2154/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Compiling shader code:
10-27 10:28:32.225 2122-2154/com.mapbox.mapboxgl.testapp E/mbgl: Q�ޢ��ޢl���<Q���c�d�c��
10-27 10:28:32.226 2122-2154/com.mapbox.mapboxgl.testapp E/mbgl: {Map}[Shader]: Code length 235

@ljbade
Copy link
Contributor

ljbade commented Oct 26, 2015

Ignore the last two logs, I had a bug in my logging code.

@ljbade
Copy link
Contributor

ljbade commented Oct 26, 2015

Interesting the shader compile errors from the log happen before we load our shaders!

Somewhere we are attempting to call a GL command with no shaders set so Android goes off and compiles some garbage.

@ljbade
Copy link
Contributor

ljbade commented Oct 27, 2015

Making some notes, the GL compile errors come from the Android UI thread.

Commenting out createSurface call prevents the crash.

Errors happens after createSurface.

Errors happen before onDraw.

@ljbade
Copy link
Contributor

ljbade commented Oct 27, 2015

I suspect this error is coming from the Android framework and not our C++ code.

Somehow I need to get a stack trace for that error.

@ljbade
Copy link
Contributor

ljbade commented Oct 27, 2015

I suspect in createSurface where I make our GL context current and then not current for logging the GL properties, that I am removing the GL context used by Android to render the UI.

I need to save the previous context, before I change it.

@ljbade
Copy link
Contributor

ljbade commented Oct 27, 2015

Sucess! That was the problem. Making a PR now.

@ljbade
Copy link
Contributor

ljbade commented Oct 27, 2015

I still see Surface.finalize() has work. You should have called release() (-1173930792, 0) will investigate that later.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Android Mapbox Maps SDK for Android crash
Projects
None yet
Development

No branches or pull requests

3 participants