-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Shader failed to compile on Android Nougat #6400
Comments
Sounds like you might be using an emulator? Could you try changing the |
This is failing on real devices in our device suite, no emulators. |
This looks similar to issue #5878. cc: @ivovandongen to help look into this |
@snorrid Anything special about those devices? And which version of Android Studio/gradle plugin are you using? Just re-tested with the AS 2.2 on a nexus 5x with android 7.0 and I can't reproduce. The emulators do seem to be broken still though. |
I've validated the shader in the error and it seems to comply to the specification. (validator) |
I can't reproduce on any physical devices but run into this issue with emulators. It seems to be happening with the latest Android Studio emulator only, Genymotion's not having issues if the device is running greater then API 20. For now, if you need an emulator for building and testing your project I'd recommend using this till we resolve this issue. |
@cammace I get the same shader crash with a Genymotion emulator running 7.0 and 6.0 Logcat:
I'm running Windows 10 with an AMD FirePro W5100 GPU |
Any updates on this? We are using software GL in the meantime, but that's definitely not a great solution in the long run. Does anyone have theories as to where the problem is? |
Software GL using Mesa fails for me, -gpu swiftshader works for me: |
The issue (at least for me) is that the Android Emulator is supporting OpenGL in hardware but not GLES. This is triggering different code to be compiled, and the code is evidently buggy when GL_ES is not defined. This output is using the standard Mapbox Android SDK installed via Maven (see the last line in the dump). It would appear highp needs to have a type defined, but does not!
|
Still experiencing this issue, any news? |
Fixed with #7044, closing. |
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
Platform: Android 7.0 Nougat
Mapbox SDK version: mapbox-android-sdk:4.x
The text was updated successfully, but these errors were encountered: