App crashes during startup - can anyone try please
Monkey Targets Forums/Android/App crashes during startup - can anyone try please
| ||
Dear all, can anyone try to build and run an app lately for Android? I've tried Monkey 83c and 84c and have instant crashes on both emulator (4.4.2) and real device (5.0). catlog says: LOG 1 (Android 4.4.2) BUILD SUCCESSFUL Total time: 37 seconds Starting: Intent { cmp=com.cobblecrowd.eyeballing/.MonkeyGame } --------- beginning of /dev/log/main --------- beginning of /dev/log/system E/memtrack( 1097): Couldn't load memtrack module (No such file or directory) E/android.os.Debug( 1097): failed to load memtrack module: -2 E/libEGL ( 55): called unimplemented OpenGL ES API E/libEGL ( 55): called unimplemented OpenGL ES API E/libEGL ( 55): called unimplemented OpenGL ES API E/libEGL ( 55): called unimplemented OpenGL ES API LOG2 (Android 5.1.1) BUILD SUCCESSFUL Total time: 18 seconds Starting: Intent { cmp=com.cobblecrowd.eyeballing/.MonkeyGame } --------- beginning of main E/memtrack( 1309): Couldn't load memtrack module (No such file or directory) E/android.os.Debug( 1309): failed to load memtrack module: -2 --------- beginning of system --------- beginning of crash E/AndroidRuntime( 1320): FATAL EXCEPTION: GLThread 142 E/AndroidRuntime( 1320): Process: com.cobblecrowd.eyeballing, PID: 1320 E/AndroidRuntime( 1320): java.lang.IllegalArgumentException: No configs match configSpec E/AndroidRuntime( 1320): at android.opengl.GLSurfaceView$BaseConfigChooser.chooseConfig(GLSurfaceView.java:858) E/AndroidRuntime( 1320): at android.opengl.GLSurfaceView$EglHelper.start(GLSurfaceView.java:1023) E/AndroidRuntime( 1320): at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1400) E/AndroidRuntime( 1320): at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1239) |
| ||
What are you trying to build? Mojo2 requires GLES2.0, and it looks like your device doesn't support it. Mojo1 stuff should still run OK as it only uses GLES1.1 |
| ||
It's mojo 1. I have a HTC One M8 which even supports GLES 3 :) It's just a small game I want to build. Runs well for HTML5 and GLFW. I had never such issues before. Let's see if I can create a small example but first it might be best to reinstall everything I guess, including this Java crap. |
| ||
I've tried reinstalling Java 7 (jdk-7u79-windows-i586.exe) and have installed the latest android build tools. No change (target SDK version is 19, so 4.4.2). Bouncy Aliens crashes during startup. Will investigate further... That's the manifest: <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="${ANDROID_APP_PACKAGE}" android:versionCode="${ANDROID_VERSION_CODE}" android:versionName="${ANDROID_VERSION_NAME}" android:installLocation="auto"> <uses-sdk android:minSdkVersion="10" android:targetSdkVersion="19" /> <uses-feature android:glEsVersion="0x00010001" /> <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> ${ANDROID_MANIFEST_MAIN} <application android:label="${ANDROID_APP_LABEL}" android:icon="@drawable/icon"> <activity android:name="MonkeyGame" android:label="${ANDROID_APP_LABEL}" android:screenOrientation="${ANDROID_SCREEN_ORIENTATION}" android:configChanges="keyboardHidden|orientation|screenSize" android:theme=\"@..." android:launchMode="singleTop"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> ${ANDROID_MANIFEST_ACTIVITY} </activity> ${ANDROID_MANIFEST_APPLICATION} </application> </manifest> |
| ||
Guess what the reason was? In config.monkey, I had to set this to false: #OPENGL_GLES20_ENABLED=False |
| ||
Hmm...did monkey set that to true? Just did a quick build of a mojo1 app and it's set to false here. |
| ||
You're right Mark. That was my fault and came from my earlier experiments with minib3d. ;) So actually, finally no issues! |
| ||
Whew! |