java.lang.RuntimeException: createContext failed: EGL_SUCCESS

880
2
Jump to solution
09-10-2019 04:07 AM
VTSVTS
by
New Contributor

Error occurs when map activity i called.

xml code:

<com.esri.arcgisruntime.mapping.view.MapView
android:id="@+id/map"
mapoptions.MapType="Streets"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
mapoptions.ZoomLevel="16"
mapoptions.center="19.2190, 72.6701"
android:layout_centerInParent="true" />

java.lang.RuntimeException: createContext failed: EGL_SUCCESS
at android.opengl.GLSurfaceView$EglHelper.throwEglException(GLSurfaceView.java:1230)
at android.opengl.GLSurfaceView$EglHelper.throwEglException(GLSurfaceView.java:1221)
at android.opengl.GLSurfaceView$EglHelper.start(GLSurfaceView.java:1071)
at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1437)
at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1278)

Android Device : OPPO A5s

Model: CPH1909

Android Version: 8.1.0

ColorOS Version: CPH190-9EX_11A_26

1 Solution

Accepted Solutions
GarySheppard
Esri Contributor

This question has been asked and answered previously at the following link:

Error createContext failed: EGL_SUCCESS when under Android 4.2.2 application is started 

This is a known issue for this release that has not found its way into the release notes yet, we will update the release notes soon.

 

The issue is that some devices do not correctly report their OpenGL configurations to allow us to create our OpenGL context. We need to be specific in creating the OpenGL context to allow many of our map rendering features to work properly (particularly for things like Vector Tiled Layers). We have implemented a solution which works on most devices, but it will still be problematic on some, especially older devices running older versions of Android.

 

Please try on another device or the emulator.

View solution in original post

2 Replies
GarySheppard
Esri Contributor

This question has been asked and answered previously at the following link:

Error createContext failed: EGL_SUCCESS when under Android 4.2.2 application is started 

This is a known issue for this release that has not found its way into the release notes yet, we will update the release notes soon.

 

The issue is that some devices do not correctly report their OpenGL configurations to allow us to create our OpenGL context. We need to be specific in creating the OpenGL context to allow many of our map rendering features to work properly (particularly for things like Vector Tiled Layers). We have implemented a solution which works on most devices, but it will still be problematic on some, especially older devices running older versions of Android.

 

Please try on another device or the emulator.

View solution in original post

VTSVTS
by
New Contributor

Thank you Gary Sheppard‌ for providing the details regard the issue.

It has been observed that few handset of Vivo (Vivo 1902) running Android P (API:28) are also having same problem. Is it possible to do any setting changes in the device and make the application with arcgis android sdk work.

Currently my application is having arcgis android sdk version: 100.6.0 

Please advice any possible solution since my application is in production and many of my Vivo and OPPO handset user are facing this problem.

0 Kudos