Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

cannot run sample on Android

Hello Everyone

I have some trouble since the openCV Manager v2.10 has been released.

Before the release of openCVManager v2.10 (I don't know it it's really related or not), I've started to run openCV sample and create a project in order to recognize image and everything worked fine for an HTC (firmware 4.2.2) and for a Galaxy tab 7'' (firmware 2.3.3).

However without changing anything in the source code, restarted android device and re-downloaded the android v2.4.6-r sdk, everytime I try to to launch tutorial1 (or another tutorial) from my galaxy, I still have a full black screen and after waiting a while I receive a message for forcing quitting the application.

Could you please tell me why I am no more able to launch any SDK tutorial? Is a new openCVManager will be released in order to fix this trouble?

I'm stack in my project due to this error and I don't know what I can do for fixing it.

Furthermore, for tutorial and my own project I'm using the SDK from the SDK/java folder (I'm not using jni)

I really thank you for your help

Bellow is the logcat I have when I launch tutorial1 (I'm launching it using Mac OSX Mountain Lion with ADTv21.1.0):

09-18 18:09:04.066: E/dalvikvm(2135): Could not find class 'android.graphics.SurfaceTexture', referenced from method org.opencv.android.JavaCameraView.initializeCamera

09-18 18:09:04.078: W/dalvikvm(2135): VFY: unable to resolve new-instance 23 (Landroid/graphics/SurfaceTexture;) in Lorg/opencv/android/JavaCameraView;

09-18 18:09:04.078: D/dalvikvm(2135): VFY: replacing opcode 0x22 at 0x0306

09-18 18:09:04.078: D/dalvikvm(2135): VFY: dead code 0x0308-031b in Lorg/opencv/android/JavaCameraView;.initializeCamera (II)Z

09-18 18:09:04.078: D/CameraBridge(2135): Attr count: 6

09-18 18:09:04.082: D/CameraBridge(2135): Attr count: 6

09-18 18:09:04.089: I/OpenCVEngine/Service(2059): Service starting

09-18 18:09:04.089: I/OpenCVEngine/Service(2059): Engine binder component creating

09-18 18:09:04.089: D/OpenCVEngine/JNI(2059): Java_org_opencv_engine_BinderConnector_Init

09-18 18:09:04.089: I/OpenCVEngine/JNI(2059): Creating new component

09-18 18:09:04.089: I/OpenCVEngine/JNI(2059): New component created successfully

09-18 18:09:04.089: I/OpenCVEngine/Service(2059): Service started successfully

09-18 18:09:04.089: I/OpenCVEngine/Service(2059): Service onBind called for intent Intent { act=org.opencv.engine.BIND }

09-18 18:09:04.093: D/KeyguardViewMediator(120): setHidden false

09-18 18:09:04.097: D/Launcher(204): It's image wallpaper. suggestDesiredDimensions(-1,-1)

09-18 18:09:04.097: D/KeyguardViewMediator(120): setHidden false

09-18 18:09:04.101: D/OpenCVManager/Helper(2135): Service connection created

09-18 18:09:04.101: D/OpenCVEngine(2059): OpenCVEngine::OnTransact(1,16)

09-18 18:09:04.101: D/OpenCVEngine(2059): OpenCVEngine OCVE_GET_ENGINE_VERSION request

09-18 18:09:04.101: D/OpenCVEngine(2059): OpenCVEngine::GetVersion()

09-18 18:09:04.101: D/OpenCVManager/Helper(2135): Trying to get library path

09-18 18:09:04.101: D/OpenCVEngine(2059): OpenCVEngine::OnTransact(2,16)

09-18 18:09:04.101: D/OpenCVEngine(2059): OpenCVEngine OCVE_GET_LIB_PATH_BY_VERSION request

09-18 18:09:04.101: D/OpenCVEngine(2059): OpenCVEngine::GetLibPathByVersion(2.4.3)

09-18 18:09:04.101: D/OpenCVEngine(2059): OpenCVEngine::GetLibPathByVersion(2.4.3) impl

09-18 18:09:04.101: D/OpenCVEngine(2059): PackageInfo::PackageInfo: package arch ARMv7

09-18 18:09:04.101: D/JavaBasedPackageManager(2059): JavaBasedPackageManager::GetInstalledPackages() begin

09-18 18:09:04.121: D/KeyguardViewMediator(120): setHidden false

09-18 18:09:04.140: D/KeyguardViewMediator(120): setHidden false

09-18 18:09:04.140: D/KeyguardViewMediator(120): setHidden false

09-18 18:09:04.156: D/JavaBasedPackageManager(2059): Package info conversion

09-18 18:09:04.156: D/OpenCVEngine(2059): PackageInfo::PackageInfo("org.opencv.engine", "/data/data/org.opencv.engine/lib", "2.10")

09-18 18:09:04.156: D/OpenCVEngine(2059): Trying to load info library "/data/data/org.opencv.engine/lib/libopencv_info.so"

09-18 18:09:04.156: I/OpenCVEngine(2059): OpenCV package "org.opencv.lib_v24_armv7a_neon" revision "6.2.2" found

09-18 18:09:04.156: D/JavaBasedPackageManager(2059): JavaBasedPackageManager::GetInstalledPackages() end

09-18 18:09:04.156: D/CommonPackageManager(2059): Check version "2040300" compatibility with "2040602"

09-18 18:09:04.156: D/CommonPackageManager(2059): Compatible

09-18 18:09:04.156: D/CommonPackageManager(2059): !!! Calculating rating for ARM

09-18 18:09:04.156: D/CommonPackageManager(2059): Checking (0, 67108864) against (0,268435462)

09-18 18:09:04.156: D/CommonPackageManager(2059): Checking (0, 134217728) against (0,268435462)

09-18 18:09:04.156: D/CommonPackageManager(2059): Checking (0, 134217729) against (0,268435462)

09-18 18:09:04.156: D/CommonPackageManager(2059): Checking (0, 134217730) against (0,268435462)

09-18 18:09:04.156: D/CommonPackageManager(2059): Checking (0, 134217731) against (0,268435462)

09-18 18:09:04.156: D/CommonPackageManager(2059): Checking (0, 268435456) against (0,268435462)

09-18 18:09:04.156: D/CommonPackageManager(2059): Checking (0, 268435457) against (0,268435462)

09-18 18:09:04.156: D/CommonPackageManager(2059): Checking (2, 268435457) against (0,268435462)

09-18 18:09:04.167: D/CommonPackageManager(2059): Checking (0, 268435458) against (0,268435462)

09-18 18:09:04.167: D/CommonPackageManager(2059): Checking (0, 268435459) against (0,268435462)

09-18 18:09:04.167: D/CommonPackageManager(2059): Checking (0, 268435460) against (0,268435462)

09-18 18:09:04.167: D/CommonPackageManager(2059): Checking (0, 268435461) against (0,268435462)

09-18 18:09:04.167: D/CommonPackageManager(2059): Checking (0, 268435462) against (0,268435462)

09-18 18:09:04.167: D/CommonPackageManager(2059): Rating found: 12

09-18 18:09:04.167: D/CommonPackageManager(2059): Current hardware platform rating 12 for (0,268435462)

09-18 18:09:04.167: D/CommonPackageManager(2059): !!! Calculating rating for ARM

09-18 18:09:04.167: D/CommonPackageManager(2059): Checking (0, 67108864) against (0,268435460)

09-18 18:09:04.167: D/CommonPackageManager(2059): Checking (0, 134217728) against (0,268435460)

09-18 18:09:04.167: D/CommonPackageManager(2059): Checking (0, 134217729) against (0,268435460)

09-18 18:09:04.167: D/CommonPackageManager(2059): Checking (0, 134217730) against (0,268435460)

09-18 18:09:04.167: D/CommonPackageManager(2059): Checking (0, 134217731) against (0,268435460)

09-18 18:09:04.167: D/CommonPackageManager(2059): Checking (0, 268435456) against (0,268435460)

09-18 18:09:04.167: D/CommonPackageManager(2059): Checking (0, 268435457) against (0,268435460)

09-18 18:09:04.167: D/CommonPackageManager(2059): Checking (2, 268435457) against (0,268435460)

09-18 18:09:04.167: D/CommonPackageManager(2059): Checking (0, 268435458) against (0,268435460)

09-18 18:09:04.167: D/CommonPackageManager(2059): Checking (0, 268435459) against (0,268435460)

09-18 18:09:04.167: D/CommonPackageManager(2059): Checking (0, 268435460) against (0,268435460)

09-18 18:09:04.167: D/CommonPackageManager(2059): Rating found: 10

09-18 18:09:04.167: D/CommonPackageManager(2059): Package "org.opencv.lib_v24_armv7a_neon" rating 10 for (0,268435460)

09-18 18:09:04.167: D/OpenCVEngine(2059): Fixing permissions for folder: "/data/data/org.opencv.engine/lib"

09-18 18:09:04.167: D/OpenCVEngine(2059): Fix permissions for "."

09-18 18:09:04.171: D/OpenCVEngine(2059): Fix permissions for ".."

09-18 18:09:04.171: D/OpenCVEngine(2059): Fix permissions for "libOpenCVEngine.so"

09-18 18:09:04.171: D/OpenCVEngine(2059): Fix permissions for "libOpenCVEngine_jni.so"

09-18 18:09:04.171: D/OpenCVEngine(2059): Fix permissions for "libnative_camera_r4.2.0.so"

09-18 18:09:04.171: D/OpenCVEngine(2059): Fix permissions for "libopencv_java.so"

09-18 18:09:04.171: D/OpenCVEngine(2059): Fix permissions for "libnative_camera_r2.2.0.so"

09-18 18:09:04.171: D/OpenCVEngine(2059): Fix permissions for "libopencv_info.so"

09-18 18:09:04.171: D/OpenCVEngine(2059): Fix permissions for "libnative_camera_r2.3.3.so"

09-18 18:09:04.171: D/OpenCVEngine(2059): Fix permissions for "libnative_camera_r4.3.0.so"

09-18 18:09:04.171: D/OpenCVEngine(2059): Fix permissions for "libnative_camera_r4.0.0.so"

09-18 18:09:04.171: D/OpenCVEngine(2059): Fix permissions for "libnative_camera_r4.0.3.so"

09-18 18:09:04.171: D/OpenCVEngine(2059): Fix permissions for "libnative_camera_r4.1.1.so"

09-18 18:09:04.171: D/OpenCVEngine(2059): Fix permissions for "libnative_camera_r3.0.1.so"

09-18 18:09:04.171: D/OpenCVManager/Helper(2135): Trying to get library list

09-18 18:09:04.171: D/OpenCVEngine(2059): OpenCVEngine::OnTransact(4,16)

09-18 18:09:04.171: D/OpenCVEngine(2059): OpenCVEngine OCVE_GET_LIB_LIST request

09-18 18:09:04.171: D/OpenCVEngine(2059): OpenCVEngine::GetLibraryList(2.4.3)

09-18 18:09:04.171: D/OpenCVEngine(2059): PackageInfo::PackageInfo: package arch ARMv7

09-18 18:09:04.171: D/JavaBasedPackageManager(2059): JavaBasedPackageManager::GetInstalledPackages() begin

09-18 18:09:04.214: D/KeyguardViewMediator(120): setHidden false

09-18 18:09:04.222: D/JavaBasedPackageManager(2059): Package info conversion

09-18 18:09:04.222: D/OpenCVEngine(2059): PackageInfo::PackageInfo("org.opencv.engine", "/data/data/org.opencv.engine/lib", "2.10")

09-18 18:09:04.222: D/OpenCVEngine(2059): Trying to load info library "/data/data/org.opencv.engine/lib/libopencv_info.so"

09-18 18:09:04.222: I/OpenCVEngine(2059): OpenCV package "org.opencv.lib_v24_armv7a_neon" revision "6.2.2" found

09-18 18:09:04.222: D/JavaBasedPackageManager(2059): JavaBasedPackageManager::GetInstalledPackages() end

09-18 18:09:04.222: D/CommonPackageManager(2059): Check version "2040300" compatibility with "2040602"

09-18 18:09:04.222: D/CommonPackageManager(2059): Compatible

09-18 18:09:04.222: D/CommonPackageManager(2059): !!! Calculating rating for ARM

09-18 18:09:04.226: D/CommonPackageManager(2059): Checking (0, 67108864) against (0,268435462)

09-18 18:09:04.226: D/CommonPackageManager(2059): Checking (0, 134217728) against (0,268435462)

09-18 18:09:04.226: D/CommonPackageManager(2059): Checking (0, 134217729) against (0,268435462)

09-18 18:09:04.226: D/CommonPackageManager(2059): Checking (0, 134217730) against (0,268435462)

09-18 18:09:04.226: D/CommonPackageManager(2059): Checking (0, 134217731) against (0,268435462)

09-18 18:09:04.226: D/CommonPackageManager(2059): Checking (0, 268435456) against (0,268435462)

09-18 18:09:04.226: D/CommonPackageManager(2059): Checking (0, 268435457) against (0,268435462)

09-18 18:09:04.226: D/CommonPackageManager(2059): Checking (2, 268435457) against (0,268435462)

09-18 18:09:04.226: D/CommonPackageManager(2059): Checking (0, 268435458) against (0,268435462)

09-18 18:09:04.226: D/CommonPackageManager(2059): Checking (0, 268435459) against (0,268435462)

09-18 18:09:04.226: D/CommonPackageManager(2059): Checking (0, 268435460) against (0,268435462)

09-18 18:09:04.226: D/CommonPackageManager(2059): Checking (0, 268435461) against (0,268435462)

09-18 18:09:04.226: D/CommonPackageManager(2059): Checking (0, 268435462) against (0,268435462)

09-18 18:09:04.226: D/CommonPackageManager(2059): Rating found: 12

09-18 18:09:04.226: D/CommonPackageManager(2059): Current hardware platform rating 12 for (0,268435462)

09-18 18:09:04.226: D/CommonPackageManager(2059): !!! Calculating rating for ARM

09-18 18:09:04.226: D/CommonPackageManager(2059): Checking (0, 67108864) against (0,268435460)

09-18 18:09:04.226: D/CommonPackageManager(2059): Checking (0, 134217728) against (0,268435460)

09-18 18:09:04.226: D/CommonPackageManager(2059): Checking (0, 134217729) against (0,268435460)

09-18 18:09:04.226: D/CommonPackageManager(2059): Checking (0, 134217730) against (0,268435460)

09-18 18:09:04.226: D/CommonPackageManager(2059): Checking (0, 134217731) against (0,268435460)

09-18 18:09:04.226: D/CommonPackageManager(2059): Checking (0, 268435456) against (0,268435460)

09-18 18:09:04.226: D/CommonPackageManager(2059): Checking (0, 268435457) against (0,268435460)

09-18 18:09:04.226: D/CommonPackageManager(2059): Checking (2, 268435457) against (0,268435460)

09-18 18:09:04.226: D/CommonPackageManager(2059): Checking (0, 268435458) against (0,268435460)

09-18 18:09:04.226: D/CommonPackageManager(2059): Checking (0, 268435459) against (0,268435460)

09-18 18:09:04.230: D/CommonPackageManager(2059): Checking (0, 268435460) against (0,268435460)

09-18 18:09:04.230: D/CommonPackageManager(2059): Rating found: 10

09-18 18:09:04.230: D/CommonPackageManager(2059): Package "org.opencv.lib_v24_armv7a_neon" rating 10 for (0,268435460)

09-18 18:09:04.230: D/OpenCVEngine(2059): Trying to load info library "/data/data/org.opencv.engine/lib/libopencv_info.so"

09-18 18:09:04.230: D/OpenCVManager/Helper(2135): Library list: ""

09-18 18:09:04.230: D/OpenCVManager/Helper(2135): First attempt to load libs

09-18 18:09:04.230: D/OpenCVManager/Helper(2135): Trying to init OpenCV libs

09-18 18:09:04.230: D/OpenCVManager/Helper(2135): Trying to load library /data/data/org.opencv.engine/lib/libopencv_java.so

09-18 18:09:04.230: D/dalvikvm(2135): Trying to load lib /data/data/org.opencv.engine/lib/libopencv_java.so 0x40514110

09-18 18:09:08.976: W/WindowManager(120): App freeze timeout expired.

09-18 18:09:08.976: D/KeyguardViewMediator(120): setHidden false

09-18 18:09:08.976: W/WindowManager(120): Force clearing freeze: AppWindowToken{40b91510 token=HistoryRecord{40b91180 org.opencv.samples.tutorial1/.Tutorial1Activity}}

09-18 18:09:13.882: W/ActivityManager(120): Launch timeout has expired, giving up wake lock!

09-18 18:09:14.031: W/ActivityManager(120): Activity idle timeout for HistoryRecord{40b91180 org.opencv.samples.tutorial1/.Tutorial1Activity}