libopencv_java.so v 2.4.6 hangs on some Android 4.0.3 devices (Bug #3124)


Added by Daniel Schlick almost 4 years ago. Updated over 3 years ago.


Status:Done Start date:
Priority:Blocker Due date:
Assignee:Alexander Smorkalov % Done:

0%

Category:android
Target version:-
Affected version:2.4.6 (latest release) Operating System:Android
Difficulty: HW Platform:ARM
Pull request:https://github.com/Itseez/opencv/pull/1090

Description

Hi,

with the new version of the OpenCV Manager (2.8) i could not start any OpenCV app on my HTC Sensation XE with Android 4.0.3. With the previous version 2.7 it works fine.

LogCat prints the following and then the application hangs:

07-02 11:31:15.047: I/OpenCVEngine(1074): OpenCV package "org.opencv.lib_v24_armv7a_neon" revision "6.0.1" found
07-02 11:31:15.047: D/CommonPackageManager(1074): Package "org.opencv.lib_v24_armv7a_neon" rating 10 for (0,268435460)
07-02 11:31:15.047: D/OpenCVEngine(1074): Trying to load info library "/data/data/org.opencv.engine/lib/libopencv_info.so" 
07-02 11:31:15.047: D/OpenCVManager/Helper(1488): Trying to init OpenCV libs
07-02 11:31:15.047: D/OpenCVManager/Helper(1488): Trying to load library /data/data/org.opencv.engine/lib/libopencv_java.so
07-02 11:31:15.047: D/dalvikvm(1488): Trying to load lib /data/data/org.opencv.engine/lib/libopencv_java.so 0x40d94c98


Related issues

duplicated by Bug #3132: OCV 2.4 pack armeabi-v7a not working on some hardware Cancelled

Associated revisions

Revision c2e66684
Added by Alexander Smorkalov almost 4 years ago

Bug #3124 libopencv_java.so v 2.4.6 hangs on some Android 4.0.3 devices fixed.

Downgrade TBB to 4.1u2 for all platforms, except WinRT.

History

Updated by Alexander Smorkalov almost 4 years ago

  • Status changed from New to Open
  • Priority changed from Normal to Blocker

Updated by Andrey Pavlenko almost 4 years ago

  • Affected version changed from 2.4.5 (latest release) to 2.4.6 (latest release)
  • Start date deleted (2013-07-02)

Updated by Henrik Lundahl almost 4 years ago

We found this too. Seems to affect all devices with Android 4.0.3.

Updated by Alexander Smorkalov almost 4 years ago

The latest version of TBB (4.1 update 4) cases the hang. It looks like some deadlock inside TBB or in static variables initialization. Downgrade to TBB 4.1 update 2 (the same as in OpenCV 2.4.5) will fix the issue.

  • Pull request set to https://github.com/Itseez/opencv/pull/1090
  • Subject changed from OpenCVManager/Helper: Trying to load library /data/data/org.opencv.engine/lib/libopencv_java.so to libopencv_java.so v 2.4.6 hangs on some Android 4.0.3 devices

Updated by Alexander Smorkalov almost 4 years ago

  • Status changed from Open to Done

Updated by Kirill Kornyakov almost 4 years ago

New packages should be available at Google Play in a couple of hours. They are already published, but it takes some time to appear on the site.

Those who observed the issue, could you please confirm that the bug disappears with the new OpenCV Manager 2.9?

  • Status changed from Done to Open

Updated by Alexander Smorkalov almost 4 years ago

The issue was reproduced with OpenCV Manager 2.8 on Huawei Ascend G500 Pro (Android 4.0.3).
OpenCV Manager v2.9 works ok on this device. No hangs in OpenCV 15-puzzle and Tutorial-1 Preview.

Updated by Daniel Schlick almost 4 years ago

I can confirm that OpenCV works now on Android 4.0.3 (HTC Sensation XE) with OpenCV Manger v2.9

Updated by Alexander Smorkalov almost 4 years ago

  • Status changed from Open to Done

Updated by Daniel Schlick over 3 years ago

With an update to OpenCV Manger v2.10 the error appears again.

09-09 15:52:31.657: D/OpenCVManager/Helper(28535): Trying to init OpenCV libs
09-09 15:52:31.657: D/OpenCVManager/Helper(28535): Trying to load library /data/data/org.opencv.engine/lib/libopencv_java.so
09-09 15:52:31.657: D/dalvikvm(28535): Trying to load lib /data/data/org.opencv.engine/lib/libopencv_java.so 0x40db0c88

  • Status changed from Done to Open

Updated by Alexander Smorkalov over 3 years ago

OpenCV Manager 2.10 hang is caused by another reason. I create separate ticket #3265.

  • Status changed from Open to Done

Also available in: Atom PDF