-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Android 4.0.2-beta1 demos crashes at startup on Genymotion #5939
Comments
Similar to #5939? /cc @dapetcu21 @vfaSonnt @jabm111 |
Tested using the latest Genymotion version and Mapbox Android SDK |
The same happens on Genymotion Samsung Galaxy S3 - 4.1.1 - API16 and the same mapbox-android-sdk:4.2.0-beta.3. |
I tried to debug this and saw an "java.lang.reflect.InvocationTargetException" with cause: "java.lang.Error:eglChooseConfig() failed" in NativeMapView.nativeInitializeDisplay() method (and my debugging skills stops there). Does this ring a bell with anybody? API 19, 4.2.0.beta.3. |
Interestingly, I'm getting a similar crash when I try to running I'm attaching the full log below, note how the SDK erroneously identify this new platform as an "emulator":
This is targeting API 25 with a minimum of API 24. Looking at the release notes I see a graphics-related known issue for the Raspberry Pi: "Hardware graphics acceleration is not currently enabled." Full code of the app in https://github.com/zugaldia/mapbox-things/tree/master/MapboxIoTMap. |
@zugaldia thanks for trying out the SDK on Android things! Could you test if older versions of the SDK work or that you can run any other apps that rely on opengl? What I noticed in the past is that software rendering worked in more cases, but was slower, than hardware accelerated graphics 🤔 Note that the original issue has been resolved with #7044 and the solution was shipped with |
I notice a similar crash running my own app using Mapbox 4.2.1 on a Genymotion image running API18 (Android 4.3). Same code works fine on a Z2 phone running API23 (Android 6.0). Here is the logcat:
|
Older genymotion images pre 5.0.0 seem to not work. The issues shown in original post have been fixed with #7044 and we are able to run back on Genymotion. Closing |
It's still not working with the newest Genymotion and Mapbox - although it works with emulator Crash on Genymotion: |
Wondering if we need a similar check for Genymotion. |
It would be great if it was possible to use MapBox with Genymotion. While it's true that emulator is now more or less usable, but when it comes for location handling Genymotion is much easier to use (and I believe it's important use case for apps using MapBox ;)) |
@AntekM could you cut a separate ticket including information about the issue you're now encountering? |
Platform: Android
Mapbox SDK version: 4.2.0-beta1
Steps to trigger behavior
Actual behavior
The demo works on Genymotion Emulator with API 23
The demo crashes on Genymotion Emulator with API 19
I haven't test case between 19-23.
The text was updated successfully, but these errors were encountered: