Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

native-activity example doesn't work on my tegra 3 device

Hi,

i'm writing because i have some problem with the native activity examples. It's strange because this example works on a galaxy next and on the emulator but it doesn't on my lg p880. When i start the application the screen is black and the app seem to go in a infinite loop. This is the log cat:

06-08 14:36:18.951: E/OpenCV_for_Tegra(29368): Tegra platform detected, optimizations are switched ON! 06-08 14:36:18.951: E/OpenCV_for_Tegra(29368): Detected processor count: 4 06-08 14:36:19.091: E/OpenCV::camera(29368): ||libnative_camera_r2.3.3.so 06-08 14:36:19.091: E/OpenCV::camera(29368): ||libnative_camera_r4.0.3.so 06-08 14:36:19.091: E/OpenCV::camera(29368): ||libnative_camera_r4.2.0.so 06-08 14:36:19.091: E/OpenCV::camera(29368): ||libnative_camera_r4.1.1.so 06-08 14:36:19.091: E/OpenCV::camera(29368): ||libnative_camera_r4.0.0.so 06-08 14:36:19.091: E/OpenCV::camera(29368): ||libnative_camera_r2.2.0.so 06-08 14:36:19.091: E/OpenCV::camera(29368): ||libnative_camera_r3.0.1.so 06-08 14:36:19.411: E/OpenCV::camera(29368): calling (pGetPropertyC)(0x5c90a580, 2) 06-08 14:36:21.851: E/OpenCV::camera(29368): calling (pGetPropertyC)(0x5c590178, 0) 06-08 14:36:21.851: E/OpenCV::camera(29368): calling (pGetPropertyC)(0x5c590178, 1) 06-08 14:36:22.231: E/(29368): file /data/data/com.nvidia.NvCPLSvc/files/driverlist.txt: not found! 06-08 14:36:24.731: E/OpenCV::camera(29368): calling (pGetPropertyC)(0x5c590178, 3) 06-08 14:36:25.321: A/libc(29368): Fatal signal 11 (SIGSEGV) at 0x5ecf6000 (code=2), thread 29399 (.NativeActivity) 06-08 14:36:31.831: E/OpenCV_for_Tegra(29669): Tegra platform detected, optimizations are switched ON! 06-08 14:36:31.831: E/OpenCV_for_Tegra(29669): Detected processor count: 4 06-08 14:36:33.251: E/OpenCV::camera(29669): ||libnative_camera_r2.3.3.so 06-08 14:36:33.251: E/OpenCV::camera(29669): ||libnative_camera_r4.0.3.so 06-08 14:36:33.251: E/OpenCV::camera(29669): ||libnative_camera_r4.2.0.so 06-08 14:36:33.251: E/OpenCV::camera(29669): ||libnative_camera_r4.1.1.so 06-08 14:36:33.251: E/OpenCV::camera(29669): ||libnative_camera_r4.0.0.so 06-08 14:36:33.251: E/OpenCV::camera(29669): ||libnative_camera_r2.2.0.so 06-08 14:36:33.251: E/OpenCV::camera(29669): ||libnative_camera_r3.0.1.so 06-08 14:36:34.111: E/OpenCV::camera(29669): calling (pGetPropertyC)(0x5d174d30, 2) 06-08 14:36:35.881: E/OpenCV::camera(29669): calling (pGetPropertyC)(0x5a392568, 0) 06-08 14:36:35.881: E/OpenCV::camera(29669): calling (pGetPropertyC)(0x5a392568, 1) 06-08 14:36:36.251: E/(29669): file /data/data/com.nvidia.NvCPLSvc/files/driverlist.txt: not found! 06-08 14:36:36.351: E/OpenCV::camera(29669): calling (pGetPropertyC)(0x5a392568, 3) 06-08 14:36:36.481: A/libc(29669): Fatal signal 11 (SIGSEGV) at 0x5eaf6000 (code=2), thread 29722 (.NativeActivity) 06-08 14:36:42.171: E/OpenCV_for_Tegra(29972): Tegra platform detected, optimizations are switched ON! 06-08 14:36:42.171: E/OpenCV_for_Tegra(29972): Detected processor count: 4 06-08 14:36:47.581: E/AndroidRuntime(30141): FATAL EXCEPTION: main 06-08 14:36:47.581: E/AndroidRuntime(30141): java.lang.RuntimeException: Unable to start activity ComponentInfo{org.opencv.samples.NativeActivity/android.app.NativeActivity}: java.lang.IllegalArgumentException: Unable to load native library: /data/data/org.opencv.samples.NativeActivity/lib/libnative_activity.so 06-08 14:36:47.581: E/AndroidRuntime(30141): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2073) 06-08 14:36:47.581: E/AndroidRuntime(30141): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2098) 06-08 14:36:47.581: E/AndroidRuntime(30141): at android.app.ActivityThread.access$600(ActivityThread.java:138) 06-08 14:36:47.581: E/AndroidRuntime(30141): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1204) 06-08 14:36:47.581: E/AndroidRuntime(30141): at android.os.Handler.dispatchMessage(Handler.java:99) 06-08 14:36:47.581: E/AndroidRuntime(30141): at android.os.Looper.loop(Looper.java:137) 06-08 14:36:47.581: E/AndroidRuntime(30141): at android.app.ActivityThread.main(ActivityThread.java:4872) 06-08 14:36:47.581: E/AndroidRuntime(30141): at java.lang.reflect.Method.invokeNative(Native Method) 06-08 14:36:47.581: E/AndroidRuntime(30141): at java.lang.reflect.Method.invoke(Method.java:511) 06-08 14:36:47.581: E/AndroidRuntime(30141): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:790) 06-08 14:36:47.581: E/AndroidRuntime(30141): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:557) 06-08 14:36:47.581: E/AndroidRuntime(30141): at dalvik.system.NativeStart.main(Native Method) 06-08 14:36:47.581: E/AndroidRuntime(30141): Caused by: java.lang.IllegalArgumentException: Unable to load native library: /data/data/org.opencv.samples.NativeActivity/lib/libnative_activity.so 06-08 14:36:47.581: E/AndroidRuntime(30141): at android.app.NativeActivity.onCreate(NativeActivity.java:193) 06-08 14:36:47.581: E/AndroidRuntime(30141): at android.app.Activity.performCreate(Activity.java:5191) 06-08 14:36:47.581: E/AndroidRuntime(30141): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1082) 06-08 14:36:47.581: E/AndroidRuntime(30141): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2037)

Thank you very much