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

Vertex shader fill failed to compile #5849

Closed
ivovandongen opened this issue Aug 2, 2016 · 3 comments
Closed

Vertex shader fill failed to compile #5849

ivovandongen opened this issue Aug 2, 2016 · 3 comments
Labels
Android Mapbox Maps SDK for Android bug Core The cross-platform C++ core, aka mbgl

Comments

@ivovandongen
Copy link
Contributor

Capturing this from #5610 (comment) so it doesn't get lost.

This crash happens when adding a Layer in the MapView#onMapReady callback. I've added a test case here to reproduce the issue (thanks @cammace)

08-02 10:14:44.321 4607-4607/? D/mbgl: {pboxsdk.testapp}[JNI]: nativeAddLayer
08-02 10:14:44.321 4607-4607/? D/mbgl: {pboxsdk.testapp}[Android]: NativeMapView::activate
08-02 10:14:44.321 4607-4607/? D/mbgl: {pboxsdk.testapp}[Android]: NativeMapView::deactivate
08-02 10:14:44.322 4607-4607/? D/mbgl: {pboxsdk.testapp}[JNI]: nativeLatLngForPixel
08-02 10:14:44.322 4607-4607/? D/mbgl: {pboxsdk.testapp}[JNI]: nativeLatLngForPixel
08-02 10:14:44.322 4607-4607/? D/mbgl: {pboxsdk.testapp}[JNI]: nativeLatLngForPixel
08-02 10:14:44.322 4607-4607/? D/mbgl: {pboxsdk.testapp}[JNI]: nativeLatLngForPixel
08-02 10:14:44.322 4607-4607/? D/mbgl: {pboxsdk.testapp}[JNI]: nativeGetAnnotationsInBounds
08-02 10:14:44.323 4607-4607/? D/mbgl: {pboxsdk.testapp}[Android]: NativeMapView::notifyMapChange()
08-02 10:14:44.323 4607-4607/? E/libEGL: call to OpenGL ES API with no current context (logged once per thread)
08-02 10:14:44.323 4607-4607/? E/mbgl: {pboxsdk.testapp}[Shader]: Vertex shader fill failed to compile: precision highp float;
                                       #ifdef GL_ES
                                       precision highp float;
                                       #else
                                       #define lowp
                                       #define mediump
                                       #define highp
                                       #endif

                                       attribute vec2 a_pos;

                                       uniform mat4 u_matrix;

                                       uniform lowp vec4 u_color;
                                       uniform lowp float u_opacity;

                                       void main() {
                                           lowp vec4 color = u_color;
                                           lowp float opacity = u_opacity;

                                           gl_Position = u_matrix * vec4(a_pos, 0, 1);
                                       }
08-02 10:14:44.323 4607-4607/? D/AndroidRuntime: Shutting down VM

cc @tmpsantos @zugaldia @tobrun @cammace

@ivovandongen ivovandongen added bug Android Mapbox Maps SDK for Android Core The cross-platform C++ core, aka mbgl labels Aug 2, 2016
@ivovandongen ivovandongen added this to the android-v4.2.0 milestone Aug 2, 2016
@drmarkpowell
Copy link

Looks like I got this or something very similar trying out Mapbox Android SDK 4.2 beta 1 for the first time. Same shader failed to compile message, precision highp float;

@ivovandongen
Copy link
Contributor Author

@drmarkpowell Was this on an emulator? And if so, might it be this bug: #5878

@ivovandongen
Copy link
Contributor Author

This is no longer the case. cc @cammace

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Android Mapbox Maps SDK for Android bug Core The cross-platform C++ core, aka mbgl
Projects
None yet
Development

No branches or pull requests

2 participants