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

Shader failed to compile on Android Nougat #6400

@snorrid

Description

@snorrid

Mapbox crashes our app on Android 7.0, tested on devices with 7.0(Nexus 5X/Nexus 6P). Works on Nexus 5 with Android 6.0

Shader failed to compile: ERROR: Valid GLSL but not GLSL ES  
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);
}
java.lang.Error: Vertex shader fill failed to compile
at com.mapbox.mapboxsdk.maps.NativeMapView.nativeRender(Native Method)
at com.mapbox.mapboxsdk.maps.NativeMapView.render(NativeMapView.java:139)
at com.mapbox.mapboxsdk.maps.MapView.onDraw(MapView.java:1377)

Platform: Android 7.0 Nougat
Mapbox SDK version: mapbox-android-sdk:4.x

Metadata

Metadata

Assignees

No one assigned

    Labels

    AndroidMapbox Maps SDK for Android

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions