Hello,
When I try to run the sample application fastcorner on my Nexus10 I get the splash screen but when I press the Start button it crashes with a pop-up "Unfortunately, FastCV Sample App has stopped. OK".
Any ideas?
Thanks!
In the LogCat I see the following:
04-11 17:46:13.559: E/AndroidRuntime(8610): FATAL EXCEPTION: main
04-11 17:46:13.559: E/AndroidRuntime(8610): java.lang.ExceptionInInitializerError
04-11 17:46:13.559: E/An droidRuntime(8610): at java.lang.Class.newInstanceImpl(Native Method)
04-11 17:46:13.559: E/AndroidRuntime(8610): at java.lang.Class.newInstance(Class.java:1319)
04-11 17:46:13.559: E/AndroidRuntime(8610): at android.app.Instrumentation.newActivity(Instrumentation.java:1054)
04-11 17:46:13.559: E/AndroidRuntime(8610): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2096)
04-11 17:46:13.559: E/AndroidRuntime(8610): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2229)
04-11 17:46:13.559: E/AndroidRuntime(8610): at android.app.ActivityThread.access$600(ActivityThread.java:140)
04-11 17:46:13.559: E/AndroidRuntime(8610): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1233)
04-11 17:46:13.559: E/AndroidRuntime(8610): at android.os.Handler.dispatchMessage(Handler.java:99)
04-11 17:46:13.559: E/AndroidRuntime(8610): at android.os.Looper.loop(Looper.java:137)
04-11 17:46:13.559: E/AndroidRuntime(8610): at android.app.ActivityThread.main(ActivityThread.java:5019)
04-11 17:46:13.559: E/AndroidRuntime(8610): at java.lang.reflect.Method.invokeNative(Native Method)
04-11 17:46:13.559: E/AndroidRuntime(8610): at java.lang.reflect.Method.invoke(Method.java:511)
04-11 17:46:13.559: E/AndroidRuntime(8610): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
04-11 17:46:13.559: E/AndroidRuntime(8610): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
04-11 17:46:13.559: E/AndroidRuntime(8610): at dalvik.system.NativeStart.main(Native Method)
04-11 17:46:13.559: E/AndroidRuntime(8610): Caused by: java.lang.UnsatisfiedLinkError: Couldn't load fastcvsample from loader dalvik.system.PathClassLoader[dexPath=/data/app/com.qualcomm.fastcorner-1.apk,libraryPath=/data/app-lib/com.qualcomm.fastcorner-1]: findLibrary returned null
04-11 17:46:13.559: E/AndroidRuntime(8610): at java.lang.Runtime.loadLibrary(Runtime.java:365)
04-11 17:46:13.559: E/AndroidRuntime(8610): at java.lang.Syst em.loadLibrary(System.java:535)
04-11 17:46:13.559: E/AndroidRuntime(8610): at com.qualcomm.fastcorner.FastCVSample.<clinit>(FastCVSample.java:133)
04-11 17:46:13.559: E/AndroidRuntime(8610): ... 15 more
04-11 17:48:57.674: D/dalvikvm(8629): GC_FOR_ALLOC freed 60K, 1% free 8847K/8936K, paused 10ms, total 10ms
04-11 17:48:57.679: I/dalvikvm-heap(8629): Grow heap (frag case) to 10.127MB for 1536016-byte allocation
04-11 17:48:57.694: D/dalvikvm(8629): GC_FOR_ALLOC freed <1K, 1% free 10346K/10440K, paused 13ms, total 13ms
04-11 17:48:57.709: D/dalvikvm(8629): GC_CONCURRENT freed <1K, 1% free 10346K/10440K, paused 4ms+2ms, total 15ms
04-11 17:48:57.729: D/dalvikvm(8629): GC_FOR_ALLOC freed <1K, 1% free 10346K/10440K, paused 10ms, total 11ms
04-11 17:48:57.739: I/dalvikvm-heap(8629): Grow heap (frag case) to 15.986MB for 6144016-byte allocation
04-11 17:48:57.754: D/dalvikvm(8629): GC_FOR_ALLOC freed 0K, 1% free 16346K/16444K, paused 14ms, total 14ms
04-11 17:48:57.769: D/dalvikvm(8629): GC_CONCURRENT freed <1K, 1% free 16346K/16444K, paused 1ms+1ms, total 12ms
04-11 17:51:49.799: W/dalvikvm(8629): Exception Ljava/lang/UnsatisfiedLinkError; thrown while initializing Lcom/qualcomm/fastcorner/FastCVSample;
04-11 17:51:49.799: W/dalvikvm(8629): Class init failed in newInstance call (Lcom/qualcomm/fastcorner/FastCVSample;)
04-11 17:51:49.799: D/AndroidRuntime(8629): Shutting down VM
04-11 17:51:49.799: W/dalvikvm(8629): threadid=1: thread exiting with uncaught exception (group=0x4164b930)
04-11 17:51:49.809: E/AndroidRuntime(8629): FATAL EXCEPTION: main
04-11 17:51:49.809: E/AndroidRuntime(8629): java.lang.ExceptionInInitializerError
04-11 17:51:49.809: E/AndroidRuntime(8629): at java.lang.Class.newInstanceImpl(Native Method)
04-11 17:51:49.809: E/AndroidRuntime(8629): at java.lang.Class.newInstance(Class.java:1319)
04-11 17:51:49.809: E/AndroidRuntime(8629): at android.app.Instrumentation.newActivity(Instrumentation.java:1054)
04-11 17:51:49.809: E/AndroidRuntime(8629): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2096)
04-11 17:51:49.809: E/AndroidRuntime(8629): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2229)
04-11 17:51:49.809: E/AndroidRuntime(8629): at android.app.ActivityThread.access$600(ActivityThread.java:140)
04-11 17:51:49.809: E/AndroidRuntime(8629): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1233)
04-11 17:51:49.809: E/AndroidRuntime(8629): at android.os.Handler.dispatchMessage(Handler.java:99)
04-11 17:51:49.809: E/AndroidRuntime(8629): at android.os.Looper.loop(Looper.java:137)
04-11 17:51:49.809: E/AndroidRuntime(8629): at android.app.ActivityThread.main(ActivityThread.java:5019)
04-11 17:51:49.809: E/AndroidRuntime(8629): at java.lang.reflect.Method.invokeNative(Native Method)
04-11 17:51:49.809: E/AndroidRuntime(8629): at java.lang.reflect.Method.invoke(Method.java:511)
04-11 17:51:49.809: E/AndroidRuntime(8629): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
04-11 17:51:49.809: E/AndroidRuntime(8629): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
04-11 17:51:49.809: E/AndroidRuntime(8629): at dalvik.system.NativeStart.main(Native Method)
04-11 17:51:49.809: E/AndroidRuntime(8629): Caused by: java.lang.UnsatisfiedLinkError: Couldn't load fastcvsample from loader dalvik.system.PathClassLoader[dexPath=/data/app/com.qualcomm.fastcorner-1.apk,libraryPath=/data/app-lib/com.qualcomm.fastcorner-1]: findLibrary returned null
04-11 17:51:49.809: E/AndroidRuntime(8629): at java.lang.Runtime.loadLibrary(Runtime.java:365)
04-11 17:51:49.809: E/AndroidRuntime(8629): at java.lang.System.loadLibrary(System.java:535)
04-11 17:51:49.809: E/AndroidRuntime(8629): at com.qualcomm.fastcorner.FastCVSample.<clinit>(FastCVSample.java:133)
04-11 17:51:49.809: E/AndroidRuntime(8629): ... 15 more
04-11 17:46:13.559: E/AndroidRuntime(8610): Caused by: java.lang.UnsatisfiedLinkError: Couldn't load fastcvsample from loader dalvik.system.PathClassLoader[dexPath=/data/app/com.qualcomm.fastcorner-1.apk,libraryPath=/data/app-lib/com.qualcomm.fastcorner-1]: findLibrary returned null
Thanks ronaldk for the pointers. They were helpful and I was able to make some progress but I am stuck with a build error which I can not understand.
First, I had issue with the environment variable ANDROID_NDK_ROOT setting as seen by the project Makefile. I have it set in my .bashrc but Makefile doesn't seem to get it. So, I hardcoded it just to get past that issue.
Now I get the following error with Build All:
**** Build of configuration Default for project SplashScreen ****
make all
Host OS was auto-detected: linux
Invalid attribute name:
android:versioncode
make[1]: Entering directory `<my home dir>/AndroidDev/fastcv-android-1-2-0/samples/fastcorner'
<my home dir>/AndroidDev/android-ndk-r8d/build/gmsl/__gmsl:512: *** non-numeric second argument to `wordlist' function: ''. Stop.
make[1]: Leaving directory `<my home dir>/AndroidDev/fastcv-android-1-2-0/samples/fastcorner'
make: *** [all] Error 2
**** Build Finished ****
Line 512 in my __gmsl looks like this:
int_encode = $(__gmsl_tr1)$(wordlist 1,$1,$(__gmsl_input_int))
Thanks for any help.
So you are using Linux to develop.
For eclipse to be able to get your path, you can do the following.
1. At your ~/.bashrc, you can set
export PATH=$PATH:<your path to android ndk>
export ANDROID_NDK_ROOT=<your path to android ndk>
alias eclipse='<your path to eclipse>/eclipse'
2. At your terminal
#bash
#eclipse
3. Build clean and build project.
Hi,
I have the same problem and try to add NDK in my path but I still have the error ...
I don't know what to do please help !