Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | LeDernier |
I successfully exported my app (basic app with a panel node and a LineEdit node) but when I run it in android after installing it, It says “(app) has stopped”.
I am quite new using Godot Engine and I don’t have any experience working with Android. But I still managed to get some logs using :
adb logcat "*:E"
Here is a part of the output file :
--------- beginning of crash
02-10 20:07:25.927 1016 1092 E AndroidRuntime: FATAL EXCEPTION: GLThread 2485
02-10 20:07:25.927 1016 1092 E AndroidRuntime: Process: org.godotengine.testexport, PID: 1016
02-10 20:07:25.927 1016 1092 E AndroidRuntime: java.lang.RuntimeException: createContext failed: EGL_SUCCESS
02-10 20:07:25.927 1016 1092 E AndroidRuntime: at android.opengl.GLSurfaceView$EglHelper.throwEglException(GLSurfaceView.java:1233)
02-10 20:07:25.927 1016 1092 E AndroidRuntime: at android.opengl.GLSurfaceView$EglHelper.throwEglException(GLSurfaceView.java:1224)
02-10 20:07:25.927 1016 1092 E AndroidRuntime: at android.opengl.GLSurfaceView$EglHelper.start(GLSurfaceView.java:1074)
02-10 20:07:25.927 1016 1092 E AndroidRuntime: at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1447)
02-10 20:07:25.927 1016 1092 E AndroidRuntime: at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1286)
02-10 20:07:40.881 1595 1635 E AndroidRuntime: FATAL EXCEPTION: GLThread 2537
02-10 20:07:40.881 1595 1635 E AndroidRuntime: Process: org.godotengine.testexport, PID: 1595
02-10 20:07:40.881 1595 1635 E AndroidRuntime: java.lang.RuntimeException: createContext failed: EGL_SUCCESS
02-10 20:07:40.881 1595 1635 E AndroidRuntime: at android.opengl.GLSurfaceView$EglHelper.throwEglException(GLSurfaceView.java:1233)
02-10 20:07:40.881 1595 1635 E AndroidRuntime: at android.opengl.GLSurfaceView$EglHelper.throwEglException(GLSurfaceView.java:1224)
02-10 20:07:40.881 1595 1635 E AndroidRuntime: at android.opengl.GLSurfaceView$EglHelper.start(GLSurfaceView.java:1074)
02-10 20:07:40.881 1595 1635 E AndroidRuntime: at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1447)
02-10 20:07:40.881 1595 1635 E AndroidRuntime: at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1286)
02-10 20:09:01.632 2488 2517 E AndroidRuntime: FATAL EXCEPTION: GLThread 2593
02-10 20:09:01.632 2488 2517 E AndroidRuntime: Process: org.godotengine.testexport, PID: 2488
02-10 20:09:01.632 2488 2517 E AndroidRuntime: java.lang.RuntimeException: createContext failed: EGL_SUCCESS
02-10 20:09:01.632 2488 2517 E AndroidRuntime: at android.opengl.GLSurfaceView$EglHelper.throwEglException(GLSurfaceView.java:1233)
02-10 20:09:01.632 2488 2517 E AndroidRuntime: at android.opengl.GLSurfaceView$EglHelper.throwEglException(GLSurfaceView.java:1224)
02-10 20:09:01.632 2488 2517 E AndroidRuntime: at android.opengl.GLSurfaceView$EglHelper.start(GLSurfaceView.java:1074)
02-10 20:09:01.632 2488 2517 E AndroidRuntime: at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1447)
02-10 20:09:01.632 2488 2517 E AndroidRuntime: at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1286)
I am using Windows 8 and my device is a Wiko : Lenny 3.
Do you have any idea to make it work ?
Thank you for the log! This has something to do with OpenGL but I’m not sure, why this is happening.
Could you please upload your project as zip so we can investigate this with other devices?
You can also create an issue in the Godot repository containing the log and the specifications of your phone (especially that it has a Mediatek MT6580M CPU).
rolfpancake | 2018-02-11 15:22
Thank you for your reply, here is the issue with all uploaded :
https://github.com/godotengine/godot/issues/16563
LeDernier | 2018-02-11 16:19
Well done! Sometimes you have to wait a long time to get an answer from the devs so stay patient and hopefully it will get solved.
I tested your exported apk on my OnePlus One and it works fine there. This leads to the assumption that this has something to do with the device you are using (hardware specific) or something is wrong with the OpenGL context there.
By the way: Which Android version is you Wiko on?
rolfpancake | 2018-02-11 21:43
Thank you very much ! It’s already great to know that it works on some other devices.
I’ll wait for the issue to be solved and i’ll try to borrow a friend’s phone in order to continue developing my project.
My Android version is Android 6.0.
LeDernier | 2018-02-11 22:33
Here is the answer I obtained from the devs, thank you very much for the answers :
The GPU Mali-400MP2 does not support OpenGL ES 3.0, requirement for running Godot 3.
LeDernier | 2018-02-12 10:01
hi, I am having the same issue, does that means we need to wait for GLES 2.0?
Themaker482 | 2018-02-14 03:56
I added an answer summarizing this.
rolfpancake | 2018-02-14 07:13