Note that there are some explanatory texts on larger screens.

plurals
  1. POUnfortunately IrrHelloWorld has stopped - Android
    primarykey
    data
    text
    <p>I'm working on compiling and running a sample for android port of irrlicht in Emulator using NDK.(Mac). I have compiled the sample successfully after changing settings in Eclipse, but it shows an alert showing that 'Unfortunately app has stopped'. This is what I found in my Logcat:</p> <pre><code>11-26 05:31:24.200: I/ActivityManager(727): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=doug.irrlicht/.IrrHelloWorld} from pid 856 11-26 05:31:24.240: E/SoundPool(727): error loading /system/media/audio/ui/Effect_Tick.ogg 11-26 05:31:24.240: W/AudioService(727): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg 11-26 05:31:24.250: E/SoundPool(727): error loading /system/media/audio/ui/Effect_Tick.ogg 11-26 05:31:24.250: W/AudioService(727): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg 11-26 05:31:24.250: E/SoundPool(727): error loading /system/media/audio/ui/Effect_Tick.ogg 11-26 05:31:24.250: W/AudioService(727): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg 11-26 05:31:24.250: E/SoundPool(727): error loading /system/media/audio/ui/Effect_Tick.ogg 11-26 05:31:24.260: W/AudioService(727): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg 11-26 05:31:24.260: E/SoundPool(727): error loading /system/media/audio/ui/Effect_Tick.ogg 11-26 05:31:24.260: W/AudioService(727): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg 11-26 05:31:24.270: E/SoundPool(727): error loading /system/media/audio/ui/KeypressStandard.ogg 11-26 05:31:24.290: W/AudioService(727): Soundpool could not load file: /system/media/audio/ui/KeypressStandard.ogg 11-26 05:31:24.300: E/SoundPool(727): error loading /system/media/audio/ui/KeypressSpacebar.ogg 11-26 05:31:24.300: W/AudioService(727): Soundpool could not load file: /system/media/audio/ui/KeypressSpacebar.ogg 11-26 05:31:24.300: E/SoundPool(727): error loading /system/media/audio/ui/KeypressDelete.ogg 11-26 05:31:24.350: W/AudioService(727): Soundpool could not load file: /system/media/audio/ui/KeypressDelete.ogg 11-26 05:31:24.350: E/SoundPool(727): error loading /system/media/audio/ui/KeypressReturn.ogg 11-26 05:31:24.350: W/AudioService(727): Soundpool could not load file: /system/media/audio/ui/KeypressReturn.ogg 11-26 05:31:24.360: W/AudioService(727): onLoadSoundEffects(), Error -1 while loading samples 11-26 05:31:24.400: I/WindowManager(727): Screenshot Window{41941da8 u0 com.android.launcher/com.android.launcher2.Launcher} was all black! mSurfaceLayer=21005 minLayer=21005 maxLayer=21005 11-26 05:31:24.621: W/dalvikvm(1195): PR_CAPBSET_DROP 0 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled. 11-26 05:31:24.632: W/dalvikvm(1195): PR_CAPBSET_DROP 1 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled. 11-26 05:31:24.641: W/dalvikvm(1195): PR_CAPBSET_DROP 2 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled. 11-26 05:31:24.641: W/dalvikvm(1195): PR_CAPBSET_DROP 3 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled. 11-26 05:31:24.641: W/dalvikvm(1195): PR_CAPBSET_DROP 4 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled. 11-26 05:31:24.641: W/dalvikvm(1195): PR_CAPBSET_DROP 5 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled. 11-26 05:31:24.641: W/dalvikvm(1195): PR_CAPBSET_DROP 6 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled. 11-26 05:31:24.641: W/dalvikvm(1195): PR_CAPBSET_DROP 7 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled. 11-26 05:31:24.641: W/dalvikvm(1195): PR_CAPBSET_DROP 8 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled. 11-26 05:31:24.651: W/dalvikvm(1195): PR_CAPBSET_DROP 9 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled. 11-26 05:31:24.651: W/dalvikvm(1195): PR_CAPBSET_DROP 10 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled. 11-26 05:31:24.651: W/dalvikvm(1195): PR_CAPBSET_DROP 11 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled. 11-26 05:31:24.651: W/dalvikvm(1195): PR_CAPBSET_DROP 12 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled. 11-26 05:31:24.651: W/dalvikvm(1195): PR_CAPBSET_DROP 13 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled. 11-26 05:31:24.661: W/dalvikvm(1195): PR_CAPBSET_DROP 14 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled. 11-26 05:31:24.661: W/dalvikvm(1195): PR_CAPBSET_DROP 15 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled. 11-26 05:31:24.661: W/dalvikvm(1195): PR_CAPBSET_DROP 16 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled. 11-26 05:31:24.661: W/dalvikvm(1195): PR_CAPBSET_DROP 17 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled. 11-26 05:31:24.661: W/dalvikvm(1195): PR_CAPBSET_DROP 18 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled. 11-26 05:31:24.661: W/dalvikvm(1195): PR_CAPBSET_DROP 19 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled. 11-26 05:31:24.661: W/dalvikvm(1195): PR_CAPBSET_DROP 20 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled. 11-26 05:31:24.661: W/dalvikvm(1195): PR_CAPBSET_DROP 21 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled. 11-26 05:31:24.671: W/dalvikvm(1195): PR_CAPBSET_DROP 22 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled. 11-26 05:31:24.671: W/dalvikvm(1195): PR_CAPBSET_DROP 23 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled. 11-26 05:31:24.671: W/dalvikvm(1195): PR_CAPBSET_DROP 24 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled. 11-26 05:31:24.671: W/dalvikvm(1195): PR_CAPBSET_DROP 25 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled. 11-26 05:31:24.671: W/dalvikvm(1195): PR_CAPBSET_DROP 26 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled. 11-26 05:31:24.681: W/dalvikvm(1195): PR_CAPBSET_DROP 27 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled. 11-26 05:31:24.681: W/dalvikvm(1195): PR_CAPBSET_DROP 28 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled. 11-26 05:31:24.681: W/dalvikvm(1195): PR_CAPBSET_DROP 29 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled. 11-26 05:31:24.691: I/ActivityManager(727): Start proc doug.irrlicht for activity doug.irrlicht/.IrrHelloWorld: pid=1195 uid=10048 gids={50048, 1028} 11-26 05:31:24.691: W/dalvikvm(1195): PR_CAPBSET_DROP 30 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled. 11-26 05:31:24.691: W/dalvikvm(1195): PR_CAPBSET_DROP 31 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled. 11-26 05:31:24.701: W/dalvikvm(1195): PR_CAPBSET_DROP 32 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled. 11-26 05:31:24.701: W/dalvikvm(1195): PR_CAPBSET_DROP 33 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled. 11-26 05:31:24.741: D/dalvikvm(1195): Not late-enabling CheckJNI (already on) 11-26 05:31:25.880: D/(1195): HostConnection::get() New Host Connection established 0x2a1c9188, tid 1195 11-26 05:31:25.891: D/libEGL(1195): loaded /system/lib/egl/libEGL_emulation.so 11-26 05:31:25.901: D/(1195): HostConnection::get() New Host Connection established 0x2a1c9300, tid 1208 11-26 05:31:25.971: D/libEGL(1195): loaded /system/lib/egl/libGLESv1_CM_emulation.so 11-26 05:31:25.980: D/libEGL(1195): loaded /system/lib/egl/libGLESv2_emulation.so 11-26 05:31:26.030: W/GL2JNIView(1195): creating OpenGL ES 2.0 context 11-26 05:31:26.120: D/dalvikvm(1195): Trying to load lib /data/app-lib/doug.irrlicht-2/libIrrHelloWorld.so 0x416f2020 11-26 05:31:26.120: I/ActivityManager(727): Displayed doug.irrlicht/.IrrHelloWorld: +1s508ms 11-26 05:31:26.140: D/dalvikvm(1195): Added shared lib /data/app-lib/doug.irrlicht-2/libIrrHelloWorld.so 0x416f2020 11-26 05:31:26.140: D/dalvikvm(1195): No JNI_OnLoad found in /data/app-lib/doug.irrlicht-2/libIrrHelloWorld.so 0x416f2020, skipping init 11-26 05:31:26.220: W/dalvikvm(1195): No implementation found for native Ldoug/irrlicht/GLNative;.init:(IILdoug/irrlicht/ArchiveHelper;)I 11-26 05:31:26.230: W/dalvikvm(1195): threadid=11: thread exiting with uncaught exception (group=0x41465700) 11-26 05:31:26.260: E/AndroidRuntime(1195): FATAL EXCEPTION: GLThread 66 11-26 05:31:26.260: E/AndroidRuntime(1195): java.lang.UnsatisfiedLinkError: Native method not found: doug.irrlicht.GLNative.init:(IILdoug/irrlicht/ArchiveHelper;)I 11-26 05:31:26.260: E/AndroidRuntime(1195): at doug.irrlicht.GLNative.init(Native Method) 11-26 05:31:26.260: E/AndroidRuntime(1195): at doug.irrlicht.GLNative.&lt;init&gt;(GLNative.java:14) 11-26 05:31:26.260: E/AndroidRuntime(1195): at doug.irrlicht.GLView$Renderer.onSurfaceChanged(GLView.java:314) 11-26 05:31:26.260: E/AndroidRuntime(1195): at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1512) 11-26 05:31:26.260: E/AndroidRuntime(1195): at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1240) 11-26 05:31:26.310: W/ActivityManager(727): Force finishing activity doug.irrlicht/.IrrHelloWorld 11-26 05:31:26.581: D/dalvikvm(727): GC_FOR_ALLOC freed 944K, 30% free 6717K/9588K, paused 170ms, total 178ms 11-26 05:31:26.691: I/WindowManager(727): Screenshot Window{418c1668 u0 Starting doug.irrlicht} was all black! mSurfaceLayer=21020 minLayer=21020 maxLayer=21020 11-26 05:31:26.861: W/EGL_emulation(856): eglSurfaceAttrib not implemented 11-26 05:31:27.250: W/InputMethodManagerService(727): Starting input on non-focused client com.android.internal.view.IInputMethodClient$Stub$Proxy@41753208 (uid=10048 pid=1195) 11-26 05:31:28.220: D/dalvikvm(727): GC_FOR_ALLOC freed 592K, 27% free 7053K/9588K, paused 111ms, total 118ms 11-26 05:31:28.341: I/WindowManager(727): Screenshot Window{41941da8 u0 com.android.launcher/com.android.launcher2.Launcher} was all black! mSurfaceLayer=21005 minLayer=21005 maxLayer=21005 11-26 05:31:28.371: E/ActivityThread(856): Performing pause of activity that is not resumed: {com.android.launcher/com.android.launcher2.Launcher} 11-26 05:31:28.371: E/ActivityThread(856): java.lang.RuntimeException: Performing pause of activity that is not resumed: {com.android.launcher/com.android.launcher2.Launcher} 11-26 05:31:28.371: E/ActivityThread(856): at android.app.ActivityThread.performPauseActivity(ActivityThread.java:3031) 11-26 05:31:28.371: E/ActivityThread(856): at android.app.ActivityThread.performPauseActivity(ActivityThread.java:3019) 11-26 05:31:28.371: E/ActivityThread(856): at android.app.ActivityThread.handlePauseActivity(ActivityThread.java:2997) 11-26 05:31:28.371: E/ActivityThread(856): at android.app.ActivityThread.access$800(ActivityThread.java:141) 11-26 05:31:28.371: E/ActivityThread(856): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1267) 11-26 05:31:28.371: E/ActivityThread(856): at android.os.Handler.dispatchMessage(Handler.java:99) 11-26 05:31:28.371: E/ActivityThread(856): at android.os.Looper.loop(Looper.java:137) 11-26 05:31:28.371: E/ActivityThread(856): at android.app.ActivityThread.main(ActivityThread.java:5103) 11-26 05:31:28.371: E/ActivityThread(856): at java.lang.reflect.Method.invokeNative(Native Method) 11-26 05:31:28.371: E/ActivityThread(856): at java.lang.reflect.Method.invoke(Method.java:525) 11-26 05:31:28.371: E/ActivityThread(856): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737) 11-26 05:31:28.371: E/ActivityThread(856): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553) 11-26 05:31:28.371: E/ActivityThread(856): at dalvik.system.NativeStart.main(Native Method) 11-26 05:31:29.571: I/Process(1195): Sending signal. PID: 1195 SIG: 9 11-26 05:31:29.601: I/ActivityManager(727): Process doug.irrlicht (pid 1195) has died. 11-26 05:31:29.631: E/SoundPool(727): error loading /system/media/audio/ui/Effect_Tick.ogg 11-26 05:31:29.631: W/AudioService(727): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg 11-26 05:31:29.631: E/SoundPool(727): error loading /system/media/audio/ui/Effect_Tick.ogg 11-26 05:31:29.631: W/AudioService(727): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg 11-26 05:31:29.631: E/SoundPool(727): error loading /system/media/audio/ui/Effect_Tick.ogg 11-26 05:31:29.631: W/AudioService(727): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg 11-26 05:31:29.641: E/SoundPool(727): error loading /system/media/audio/ui/Effect_Tick.ogg 11-26 05:31:29.641: W/AudioService(727): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg 11-26 05:31:29.641: E/SoundPool(727): error loading /system/media/audio/ui/Effect_Tick.ogg 11-26 05:31:29.641: W/AudioService(727): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg 11-26 05:31:29.651: E/SoundPool(727): error loading /system/media/audio/ui/KeypressStandard.ogg 11-26 05:31:29.651: W/AudioService(727): Soundpool could not load file: /system/media/audio/ui/KeypressStandard.ogg 11-26 05:31:29.651: E/SoundPool(727): error loading /system/media/audio/ui/KeypressSpacebar.ogg 11-26 05:31:29.651: W/AudioService(727): Soundpool could not load file: /system/media/audio/ui/KeypressSpacebar.ogg 11-26 05:31:29.661: E/SoundPool(727): error loading /system/media/audio/ui/KeypressDelete.ogg 11-26 05:31:29.661: W/AudioService(727): Soundpool could not load file: /system/media/audio/ui/KeypressDelete.ogg 11-26 05:31:29.661: E/SoundPool(727): error loading /system/media/audio/ui/KeypressReturn.ogg 11-26 05:31:29.661: W/AudioService(727): Soundpool could not load file: /system/media/audio/ui/KeypressReturn.ogg 11-26 05:31:29.661: W/AudioService(727): onLoadSoundEffects(), Error -1 while loading samples 11-26 05:31:29.771: W/InputMethodManagerService(727): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@418fa370 attribute=null, token = android.os.BinderProxy@41c81638 </code></pre> <p>Here is my Android.mk file:</p> <pre><code>LOCAL_PATH:= $(call my-dir) include $(CLEAR_VARS) LOCAL_C_INCLUDES := /Users/karthik/android/irrlichtandroid/project/include LOCAL_MODULE := Irrlicht LOCAL_SRC_FILES := /Users/karthik/android/irrlichtandroid/project/libs/armeabi/libirrlicht.so include $(PREBUILT_SHARED_LIBRARY) include $(CLEAR_VARS) LOCAL_C_INCLUDES := -I /Users/karthik/android/irrlichtandroid/project/include -I$(IRR_PROJECT)/include LOCAL_MODULE := IrrHelloWorld LOCAL_CFLAGS := -I$(IRR_PROJECT)/include LOCAL_SRC_FILES := \ native.cpp \ ArchiveLoader.cpp \ FileArchive.cpp \ ReadFile.cpp \ ArchiveHelper.cpp LOCAL_LDLIBS := -L$(IRR_PROJECT)/cmake/android -llog -lGLESv2 LOCAL_SHARED_LIBRARIES := Irrlicht include $(BUILD_SHARED_LIBRARY) </code></pre> <p>I have checked again, all the folders and files , I have specified exists in exact paths. I have googled line by line but I dint found nothing yet. Even I re-installed Eclipse, SDK and NDK. I dint found a word 'caused' in log cat. What is the actual issue? I'll provide more data clearly about project if needed by anyone. Any help will be appreciated.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload