keke77 / javacv

Automatically exported from code.google.com/p/javacv
GNU General Public License v2.0
0 stars 0 forks source link

Problems with android devices having Android 3.0 or lower version but works well with Android 4.0 and higher version #333

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Follow directions on home page to configure project (add javacpp.jar, 
javacv.jar to libs, extract .so files from ffmpeg-1.2-android-arm, 
javacv-android-arm, opencv-2.4.5-android-arm ), first i am trying to run your 
sample program RecorderActivity.
2. Compile the eclipse project without problems.
3. Upload and run code on Android devices (Samsung Galaxy S3 and Samsung Galaxy 
Y).

What is the expected output? What do you see instead?
OpenCv commands are supposed to execute. It executes properly on Samsung Galaxy 
S3 and Samsung Galaxy Grand DUOS but terminates on devices Samsung galaxy Y and 
emulators having Android 3.0 or lower versions with logs in logcat given below 
without any crash.

07-04 18:10:01.587: I/RecordActivity(367): cameara open
07-04 18:10:01.597: W/camera(367): camera view
07-04 18:10:01.611: I/RecordActivity(367): cameara preview start: OK
07-04 18:10:01.611: W/RecordActivity(367): init recorder
07-04 18:10:01.618: I/RecordActivity(367): before create yuvImpimage
07-04 18:10:01.669: W/dalvikvm(367): VFY: unable to find class referenced in 
signature (Ljava/awt/image/BufferedImage;)
07-04 18:10:01.669: W/dalvikvm(367): VFY: unable to find class referenced in 
signature (Ljava/awt/image/BufferedImage;)
07-04 18:10:01.677: W/dalvikvm(367): VFY: unable to find class referenced in 
signature (Ljava/awt/image/BufferedImage;)
07-04 18:10:01.687: W/dalvikvm(367): VFY: unable to find class referenced in 
signature (Ljava/awt/image/BufferedImage;)
07-04 18:10:01.687: W/dalvikvm(367): VFY: unable to find class referenced in 
signature (Ljava/awt/image/BufferedImage;)
07-04 18:10:01.697: I/dalvikvm(367): Could not find method 
java.awt.image.BufferedImage.getSampleModel, referenced from method 
com.googlecode.javacv.cpp.opencv_core$IplImage.createFrom
07-04 18:10:01.697: W/dalvikvm(367): VFY: unable to resolve virtual method 
17603: Ljava/awt/image/BufferedImage;.getSampleModel 
()Ljava/awt/image/SampleModel;
07-04 18:10:01.708: D/dalvikvm(367): VFY: replacing opcode 0x6e at 0x0004
07-04 18:10:01.708: D/dalvikvm(367): VFY: dead code 0x0007-004f in 
Lcom/googlecode/javacv/cpp/opencv_core$IplImage;.createFrom 
(Ljava/awt/image/BufferedImage;DZ)Lcom/googlecode/javacv/cpp/opencv_core$IplImag
e;
07-04 18:10:01.717: W/dalvikvm(367): VFY: unable to find class referenced in 
signature (Ljava/awt/image/BufferedImage;)
07-04 18:10:01.777: W/dalvikvm(367): VFY: unable to find class referenced in 
signature (Ljava/awt/image/BufferedImage;)
07-04 18:10:01.777: W/dalvikvm(367): VFY: unable to find class referenced in 
signature (Ljava/awt/image/BufferedImage;)
07-04 18:10:01.787: E/dalvikvm(367): Could not find class 
'java.awt.image.BufferedImage', referenced from method 
com.googlecode.javacv.cpp.opencv_core$IplImage.cloneBufferedImage
07-04 18:10:01.787: W/dalvikvm(367): VFY: unable to resolve check-cast 1451 
(Ljava/awt/image/BufferedImage;) in 
Lcom/googlecode/javacv/cpp/opencv_core$IplImage;
07-04 18:10:01.787: D/dalvikvm(367): VFY: replacing opcode 0x1f at 0x0008
07-04 18:10:01.787: D/dalvikvm(367): VFY: dead code 0x000a-0030 in 
Lcom/googlecode/javacv/cpp/opencv_core$IplImage;.cloneBufferedImage 
()Ljava/awt/image/BufferedImage;
07-04 18:10:01.798: W/dalvikvm(367): VFY: unable to find class referenced in 
signature (Ljava/awt/image/BufferedImage;)
07-04 18:10:01.807: W/dalvikvm(367): VFY: unable to find class referenced in 
signature (Ljava/awt/image/BufferedImage;)
07-04 18:10:01.807: W/dalvikvm(367): VFY: unable to find class referenced in 
signature (Ljava/awt/image/BufferedImage;)
07-04 18:10:01.818: W/dalvikvm(367): VFY: unable to find class referenced in 
signature (Ljava/awt/image/BufferedImage;)
07-04 18:10:01.840: W/dalvikvm(367): VFY: unable to find class referenced in 
signature (Ljava/awt/image/BufferedImage;)
07-04 18:10:01.847: E/dalvikvm(367): Could not find class 'java.awt.Rectangle', 
referenced from method com.googlecode.javacv.cpp.opencv_core$IplImage.copyFrom
07-04 18:10:01.847: W/dalvikvm(367): VFY: unable to resolve new-instance 1440 
(Ljava/awt/Rectangle;) in Lcom/googlecode/javacv/cpp/opencv_core$IplImage;
07-04 18:10:01.847: D/dalvikvm(367): VFY: replacing opcode 0x22 at 0x0007
07-04 18:10:01.847: W/dalvikvm(367): VFY: unable to find class referenced in 
signature (Ljava/awt/image/BufferedImage;)
07-04 18:10:01.847: W/dalvikvm(367): VFY: unable to find class referenced in 
signature (Ljava/awt/Rectangle;)
07-04 18:10:01.847: D/dalvikvm(367): VFY: dead code 0x0009-001b in 
Lcom/googlecode/javacv/cpp/opencv_core$IplImage;.copyFrom 
(Ljava/awt/image/BufferedImage;DZ)V
07-04 18:10:01.847: W/dalvikvm(367): VFY: unable to find class referenced in 
signature (Ljava/awt/image/BufferedImage;)
07-04 18:10:01.867: W/dalvikvm(367): VFY: unable to find class referenced in 
signature (Ljava/awt/Rectangle;)
07-04 18:10:01.867: I/dalvikvm(367): Could not find method 
java.awt.image.BufferedImage.getSampleModel, referenced from method 
com.googlecode.javacv.cpp.opencv_core$IplImage.copyFrom
07-04 18:10:01.867: W/dalvikvm(367): VFY: unable to resolve virtual method 
17603: Ljava/awt/image/BufferedImage;.getSampleModel 
()Ljava/awt/image/SampleModel;
07-04 18:10:01.867: D/dalvikvm(367): VFY: replacing opcode 0x74 at 0x000f
07-04 18:10:01.877: W/dalvikvm(367): VFY: unable to resolve instance field 5261
07-04 18:10:01.877: D/dalvikvm(367): VFY: replacing opcode 0x52 at 0x0099
07-04 18:10:01.877: D/dalvikvm(367): VFY: dead code 0x0012-0096 in 
Lcom/googlecode/javacv/cpp/opencv_core$IplImage;.copyFrom 
(Ljava/awt/image/BufferedImage;DZLjava/awt/Rectangle;)V
07-04 18:10:01.877: D/dalvikvm(367): VFY: dead code 0x009b-01ba in 
Lcom/googlecode/javacv/cpp/opencv_core$IplImage;.copyFrom 
(Ljava/awt/image/BufferedImage;DZLjava/awt/Rectangle;)V
07-04 18:10:01.897: W/dalvikvm(367): VFY: unable to find class referenced in 
signature (Ljava/awt/image/BufferedImage;)
07-04 18:10:01.897: W/dalvikvm(367): VFY: unable to find class referenced in 
signature (Ljava/awt/image/BufferedImage;)
07-04 18:10:01.897: W/dalvikvm(367): VFY: unable to find class referenced in 
signature (Ljava/awt/image/BufferedImage;)
07-04 18:10:01.897: W/dalvikvm(367): VFY: unable to find class referenced in 
signature (Ljava/awt/image/BufferedImage;)
07-04 18:10:01.897: W/dalvikvm(367): VFY: unable to find class referenced in 
signature (Ljava/awt/image/BufferedImage;)
07-04 18:10:01.897: E/dalvikvm(367): Could not find class 'java.awt.Rectangle', 
referenced from method com.googlecode.javacv.cpp.opencv_core$IplImage.copyTo
07-04 18:10:01.915: W/dalvikvm(367): VFY: unable to resolve new-instance 1440 
(Ljava/awt/Rectangle;) in Lcom/googlecode/javacv/cpp/opencv_core$IplImage;
07-04 18:10:01.940: D/dalvikvm(367): VFY: replacing opcode 0x22 at 0x0007
07-04 18:10:01.940: W/dalvikvm(367): VFY: unable to find class referenced in 
signature (Ljava/awt/image/BufferedImage;)
07-04 18:10:01.940: W/dalvikvm(367): VFY: unable to find class referenced in 
signature (Ljava/awt/Rectangle;)
07-04 18:10:01.940: D/dalvikvm(367): VFY: dead code 0x0009-001b in 
Lcom/googlecode/javacv/cpp/opencv_core$IplImage;.copyTo 
(Ljava/awt/image/BufferedImage;DZ)V
07-04 18:10:01.947: W/dalvikvm(367): VFY: unable to find class referenced in 
signature (Ljava/awt/image/BufferedImage;)
07-04 18:10:01.947: W/dalvikvm(367): VFY: unable to find class referenced in 
signature (Ljava/awt/Rectangle;)
07-04 18:10:01.947: I/dalvikvm(367): Could not find method 
java.awt.image.BufferedImage.getSampleModel, referenced from method 
com.googlecode.javacv.cpp.opencv_core$IplImage.copyTo
07-04 18:10:01.947: W/dalvikvm(367): VFY: unable to resolve virtual method 
17603: Ljava/awt/image/BufferedImage;.getSampleModel 
()Ljava/awt/image/SampleModel;
07-04 18:10:01.947: D/dalvikvm(367): VFY: replacing opcode 0x74 at 0x0011
07-04 18:10:01.947: W/dalvikvm(367): VFY: unable to resolve instance field 5261
07-04 18:10:01.947: D/dalvikvm(367): VFY: replacing opcode 0x52 at 0x007f
07-04 18:10:01.947: D/dalvikvm(367): VFY: dead code 0x0014-007a in 
Lcom/googlecode/javacv/cpp/opencv_core$IplImage;.copyTo 
(Ljava/awt/image/BufferedImage;DZLjava/awt/Rectangle;)V
07-04 18:10:01.947: D/dalvikvm(367): VFY: dead code 0x0081-01c8 in 
Lcom/googlecode/javacv/cpp/opencv_core$IplImage;.copyTo 
(Ljava/awt/image/BufferedImage;DZLjava/awt/Rectangle;)V
07-04 18:10:01.967: W/dalvikvm(367): VFY: unable to find class referenced in 
signature (Ljava/awt/image/BufferedImage;)
07-04 18:10:01.978: W/dalvikvm(367): VFY: unable to find class referenced in 
signature (Ljava/awt/image/BufferedImage;)
07-04 18:10:01.978: W/dalvikvm(367): VFY: unable to find class referenced in 
signature (Ljava/awt/image/BufferedImage;)
07-04 18:10:01.998: W/dalvikvm(367): VFY: unable to find class referenced in 
signature (Ljava/awt/image/BufferedImage;)
07-04 18:10:01.998: W/dalvikvm(367): VFY: unable to find class referenced in 
signature (Ljava/awt/color/ColorSpace;)
07-04 18:10:02.007: W/dalvikvm(367): VFY: unable to find class referenced in 
signature (Ljava/awt/image/BufferedImage;)
07-04 18:10:02.007: W/dalvikvm(367): VFY: unable to find class referenced in 
signature (Ljava/awt/image/BufferedImage;)
07-04 18:10:02.038: W/dalvikvm(367): VFY: unable to find class referenced in 
signature (Ljava/awt/color/ColorSpace;)
07-04 18:10:02.038: E/dalvikvm(367): Could not find class 
'java.awt.image.BufferedImage', referenced from method 
com.googlecode.javacv.cpp.opencv_core$IplImage.getBufferedImage
07-04 18:10:02.038: W/dalvikvm(367): VFY: unable to resolve new-instance 1451 
(Ljava/awt/image/BufferedImage;) in 
Lcom/googlecode/javacv/cpp/opencv_core$IplImage;
07-04 18:10:02.038: D/dalvikvm(367): VFY: replacing opcode 0x22 at 0x000e
07-04 18:10:02.057: I/dalvikvm(367): Could not find method 
java.awt.color.ColorSpace.getInstance, referenced from method 
com.googlecode.javacv.cpp.opencv_core$IplImage.getBufferedImage
07-04 18:10:02.057: W/dalvikvm(367): VFY: unable to resolve static method 
17584: Ljava/awt/color/ColorSpace;.getInstance (I)Ljava/awt/color/ColorSpace;
07-04 18:10:02.057: D/dalvikvm(367): VFY: replacing opcode 0x71 at 0x0033
07-04 18:10:02.057: E/dalvikvm(367): Could not find class 
'java.awt.image.ComponentColorModel', referenced from method 
com.googlecode.javacv.cpp.opencv_core$IplImage.getBufferedImage
07-04 18:10:02.057: W/dalvikvm(367): VFY: unable to resolve new-instance 1453 
(Ljava/awt/image/ComponentColorModel;) in 
Lcom/googlecode/javacv/cpp/opencv_core$IplImage;
07-04 18:10:02.057: D/dalvikvm(367): VFY: replacing opcode 0x22 at 0x0052
07-04 18:10:02.057: E/dalvikvm(367): Could not find class 
'java.awt.image.BufferedImage', referenced from method 
com.googlecode.javacv.cpp.opencv_core$IplImage.getBufferedImage
07-04 18:10:02.057: W/dalvikvm(367): VFY: unable to resolve check-cast 1451 
(Ljava/awt/image/BufferedImage;) in 
Lcom/googlecode/javacv/cpp/opencv_core$IplImage;
07-04 18:10:02.069: D/dalvikvm(367): VFY: replacing opcode 0x1f at 0x0094
07-04 18:10:02.069: E/dalvikvm(367): Could not find class 
'java.awt.image.BufferedImage', referenced from method 
com.googlecode.javacv.cpp.opencv_core$IplImage.getBufferedImage
07-04 18:10:02.069: W/dalvikvm(367): VFY: unable to resolve check-cast 1451 
(Ljava/awt/image/BufferedImage;) in 
Lcom/googlecode/javacv/cpp/opencv_core$IplImage;
07-04 18:10:02.069: D/dalvikvm(367): VFY: replacing opcode 0x1f at 0x00b7
07-04 18:10:02.077: I/dalvikvm(367): Could not find method 
java.awt.color.ColorSpace.getInstance, referenced from method 
com.googlecode.javacv.cpp.opencv_core$IplImage.getBufferedImage
07-04 18:10:02.077: W/dalvikvm(367): VFY: unable to resolve static method 
17584: Ljava/awt/color/ColorSpace;.getInstance (I)Ljava/awt/color/ColorSpace;
07-04 18:10:02.077: D/dalvikvm(367): VFY: replacing opcode 0x71 at 0x00c6
07-04 18:10:02.077: I/dalvikvm(367): Could not find method 
java.awt.color.ColorSpace.getInstance, referenced from method 
com.googlecode.javacv.cpp.opencv_core$IplImage.getBufferedImage
07-04 18:10:02.077: W/dalvikvm(367): VFY: unable to resolve static method 
17584: Ljava/awt/color/ColorSpace;.getInstance (I)Ljava/awt/color/ColorSpace;
07-04 18:10:02.077: D/dalvikvm(367): VFY: replacing opcode 0x71 at 0x00de
07-04 18:10:02.088: E/dalvikvm(367): Could not find class 
'java.awt.image.ComponentColorModel', referenced from method 
com.googlecode.javacv.cpp.opencv_core$IplImage.getBufferedImage
07-04 18:10:02.088: W/dalvikvm(367): VFY: unable to resolve new-instance 1453 
(Ljava/awt/image/ComponentColorModel;) in 
Lcom/googlecode/javacv/cpp/opencv_core$IplImage;
07-04 18:10:02.088: D/dalvikvm(367): VFY: replacing opcode 0x22 at 0x00fc
07-04 18:10:02.088: E/dalvikvm(367): Could not find class 
'java.awt.image.ComponentColorModel', referenced from method 
com.googlecode.javacv.cpp.opencv_core$IplImage.getBufferedImage
07-04 18:10:02.088: W/dalvikvm(367): VFY: unable to resolve new-instance 1453 
(Ljava/awt/image/ComponentColorModel;) in 
Lcom/googlecode/javacv/cpp/opencv_core$IplImage;
07-04 18:10:02.097: D/dalvikvm(367): VFY: replacing opcode 0x22 at 0x012e
07-04 18:10:02.097: E/dalvikvm(367): Could not find class 
'java.awt.image.ComponentColorModel', referenced from method 
com.googlecode.javacv.cpp.opencv_core$IplImage.getBufferedImage
07-04 18:10:02.097: W/dalvikvm(367): VFY: unable to resolve new-instance 1453 
(Ljava/awt/image/ComponentColorModel;) in 
Lcom/googlecode/javacv/cpp/opencv_core$IplImage;
07-04 18:10:02.097: D/dalvikvm(367): VFY: replacing opcode 0x22 at 0x0160
07-04 18:10:02.097: E/dalvikvm(367): Could not find class 
'java.awt.image.ComponentColorModel', referenced from method 
com.googlecode.javacv.cpp.opencv_core$IplImage.getBufferedImage
07-04 18:10:02.117: W/dalvikvm(367): VFY: unable to resolve new-instance 1453 
(Ljava/awt/image/ComponentColorModel;) in 
Lcom/googlecode/javacv/cpp/opencv_core$IplImage;
07-04 18:10:02.117: D/dalvikvm(367): VFY: replacing opcode 0x22 at 0x0191
07-04 18:10:02.117: E/dalvikvm(367): Could not find class 
'java.awt.image.ComponentColorModel', referenced from method 
com.googlecode.javacv.cpp.opencv_core$IplImage.getBufferedImage
07-04 18:10:02.117: W/dalvikvm(367): VFY: unable to resolve new-instance 1453 
(Ljava/awt/image/ComponentColorModel;) in 
Lcom/googlecode/javacv/cpp/opencv_core$IplImage;
07-04 18:10:02.117: D/dalvikvm(367): VFY: replacing opcode 0x22 at 0x01c2
07-04 18:10:02.117: E/dalvikvm(367): Could not find class 
'java.awt.image.BufferedImage', referenced from method 
com.googlecode.javacv.cpp.opencv_core$IplImage.getBufferedImage
07-04 18:10:02.127: W/dalvikvm(367): VFY: unable to resolve check-cast 1451 
(Ljava/awt/image/BufferedImage;) in 
Lcom/googlecode/javacv/cpp/opencv_core$IplImage;
07-04 18:10:02.127: D/dalvikvm(367): VFY: replacing opcode 0x1f at 0x01f9
07-04 18:10:02.127: E/dalvikvm(367): Could not find class 
'java.awt.image.BufferedImage', referenced from method 
com.googlecode.javacv.cpp.opencv_core$IplImage.getBufferedImage
07-04 18:10:02.127: W/dalvikvm(367): VFY: unable to resolve new-instance 1451 
(Ljava/awt/image/BufferedImage;) in 
Lcom/googlecode/javacv/cpp/opencv_core$IplImage;
07-04 18:10:02.127: D/dalvikvm(367): VFY: replacing opcode 0x22 at 0x0077
07-04 18:10:02.127: D/dalvikvm(367): VFY: dead code 0x0010-001e in 
Lcom/googlecode/javacv/cpp/opencv_core$IplImage;.getBufferedImage 
(DZLjava/awt/color/ColorSpace;)Ljava/awt/image/BufferedImage;
07-04 18:10:02.138: D/dalvikvm(367): VFY: dead code 0x0036-0036 in 
Lcom/googlecode/javacv/cpp/opencv_core$IplImage;.getBufferedImage 
(DZLjava/awt/color/ColorSpace;)Ljava/awt/image/BufferedImage;
07-04 18:10:02.138: D/dalvikvm(367): VFY: dead code 0x0054-0076 in 
Lcom/googlecode/javacv/cpp/opencv_core$IplImage;.getBufferedImage 
(DZLjava/awt/color/ColorSpace;)Ljava/awt/image/BufferedImage;
07-04 18:10:02.138: D/dalvikvm(367): VFY: dead code 0x0079-0083 in 
Lcom/googlecode/javacv/cpp/opencv_core$IplImage;.getBufferedImage 
(DZLjava/awt/color/ColorSpace;)Ljava/awt/image/BufferedImage;
07-04 18:10:02.138: D/dalvikvm(367): VFY: dead code 0x0096-00b2 in 
Lcom/googlecode/javacv/cpp/opencv_core$IplImage;.getBufferedImage 
(DZLjava/awt/color/ColorSpace;)Ljava/awt/image/BufferedImage;
07-04 18:10:02.138: D/dalvikvm(367): VFY: dead code 0x00b9-00b9 in 
Lcom/googlecode/javacv/cpp/opencv_core$IplImage;.getBufferedImage 
(DZLjava/awt/color/ColorSpace;)Ljava/awt/image/BufferedImage;
07-04 18:10:02.138: D/dalvikvm(367): VFY: dead code 0x00c9-00c9 in 
Lcom/googlecode/javacv/cpp/opencv_core$IplImage;.getBufferedImage 
(DZLjava/awt/color/ColorSpace;)Ljava/awt/image/BufferedImage;
07-04 18:10:02.138: D/dalvikvm(367): VFY: dead code 0x00e1-00e1 in 
Lcom/googlecode/javacv/cpp/opencv_core$IplImage;.getBufferedImage 
(DZLjava/awt/color/ColorSpace;)Ljava/awt/image/BufferedImage;
07-04 18:10:02.138: D/dalvikvm(367): VFY: dead code 0x00fe-0124 in 
Lcom/googlecode/javacv/cpp/opencv_core$IplImage;.getBufferedImage 
(DZLjava/awt/color/ColorSpace;)Ljava/awt/image/BufferedImage;
07-04 18:10:02.138: D/dalvikvm(367): VFY: dead code 0x0130-0156 in 
Lcom/googlecode/javacv/cpp/opencv_core$IplImage;.getBufferedImage 
(DZLjava/awt/color/ColorSpace;)Ljava/awt/image/BufferedImage;
07-04 18:10:02.138: D/dalvikvm(367): VFY: dead code 0x0162-0188 in 
Lcom/googlecode/javacv/cpp/opencv_core$IplImage;.getBufferedImage 
(DZLjava/awt/color/ColorSpace;)Ljava/awt/image/BufferedImage;
07-04 18:10:02.147: D/dalvikvm(367): VFY: dead code 0x0193-01b9 in 
Lcom/googlecode/javacv/cpp/opencv_core$IplImage;.getBufferedImage 
(DZLjava/awt/color/ColorSpace;)Ljava/awt/image/BufferedImage;
07-04 18:10:02.147: D/dalvikvm(367): VFY: dead code 0x01c4-01ea in 
Lcom/googlecode/javacv/cpp/opencv_core$IplImage;.getBufferedImage 
(DZLjava/awt/color/ColorSpace;)Ljava/awt/image/BufferedImage;
07-04 18:10:02.147: D/dalvikvm(367): VFY: dead code 0x01fb-0205 in 
Lcom/googlecode/javacv/cpp/opencv_core$IplImage;.getBufferedImage 
(DZLjava/awt/color/ColorSpace;)Ljava/awt/image/BufferedImage;
07-04 18:10:02.207: I/dalvikvm(367): Could not find method 
java.util.Properties.load, referenced from method 
com.googlecode.javacpp.Loader.getProperties
07-04 18:10:02.219: W/dalvikvm(367): VFY: unable to resolve virtual method 
18127: Ljava/util/Properties;.load (Ljava/io/Reader;)V
07-04 18:10:02.219: D/dalvikvm(367): VFY: replacing opcode 0x6e at 0x002e
07-04 18:10:02.229: I/dalvikvm(367): Could not find method 
java.util.Properties.load, referenced from method 
com.googlecode.javacpp.Loader.getProperties
07-04 18:10:02.229: W/dalvikvm(367): VFY: unable to resolve virtual method 
18127: Ljava/util/Properties;.load (Ljava/io/Reader;)V
07-04 18:10:02.229: D/dalvikvm(367): VFY: replacing opcode 0x6e at 0x0045
07-04 18:10:02.238: D/dalvikvm(367): VFY: dead code 0x0048-0048 in 
Lcom/googlecode/javacpp/Loader;.getProperties 
(Ljava/lang/String;)Ljava/util/Properties;
07-04 18:10:03.007: D/dalvikvm(367): GC_FOR_MALLOC freed 3880 objects / 357584 
bytes in 115ms
07-04 18:10:03.263: D/dalvikvm(367): Trying to load lib 
/data/data/com.appzcloud.recordactivitytest/lib/libtbb.so 0x44edeeb8

What version of the product are you using? On what operating system?

Latest javacv, opencv2.4.5-android-arm .so files, ffmpeg-1.2-android-arm,  
working on Win7 64bit in Eclipse.

Please provide any additional information below.

I have already tried the facepreview sample application but it also work well 
with the devices having Android 4.0 and higher but not with Android 3.0 and 
other lower versions.

Original issue reported on code.google.com by shiva.ag...@appzcloud.com on 4 Jul 2013 at 12:59

GoogleCodeExporter commented 9 years ago
The Samsung Galaxy Y S5360 seems to come with an ARMv6 processor, which isn't 
compatible with ARMv7. You'll need to recompile the binaries for ARMv6 (or 
ARMv5) as instructed in the README.txt file of the "cppjars" package.

Please post your questions on the mailing next time if possible, thank you!

Original comment by samuel.a...@gmail.com on 5 Jul 2013 at 3:56

GoogleCodeExporter commented 9 years ago
Thanks for your quick and valid reply.
I read the README.txt file of the "cppjars" package but i could not recompile 
the binaries for ARMv6. I also reffered the thread 
https://code.google.com/p/javacv/issues/detail?id=60 (issue no. 60)
and downloaded the "OpenCV-2.2.0-android-armv5.zip" file as you provided the 
link to download precompiled OpenCV 2.2 for ARMv5. I replaced all the .so files 
of opencv-2.4.5-android-arm with the new one, you provided for ARMv5.

But when i execute the facepreview sample with these changes at my Samsung 
Galaxy Y(with armv6), it crashes and i got the following logs this time.

07-08 15:27:10.632: D/dalvikvm(32368): GC_CONCURRENT freed 324K, 48% free 
2941K/5639K, external 408K/517K, paused 4ms+24ms
07-08 15:27:10.984: D/dalvikvm(32368): Trying to load lib 
/data/data/com.appzcloud.javacvtest/lib/libopencv_core.so 0x40518e38
07-08 15:27:11.140: D/dalvikvm(32368): Added shared lib 
/data/data/com.appzcloud.javacvtest/lib/libopencv_core.so 0x40518e38
07-08 15:27:11.140: D/dalvikvm(32368): No JNI_OnLoad found in 
/data/data/com.appzcloud.javacvtest/lib/libopencv_core.so 0x40518e38, skipping 
init
07-08 15:27:11.148: D/dalvikvm(32368): Trying to load lib 
/data/data/com.appzcloud.javacvtest/lib/libjniopencv_core.so 0x40518e38
07-08 15:27:11.187: W/dalvikvm(32368): Exception 
Ljava/lang/UnsatisfiedLinkError; thrown while initializing 
Lcom/googlecode/javacv/cpp/opencv_core;
07-08 15:27:11.187: W/dalvikvm(32368): Exception 
Ljava/lang/ExceptionInInitializerError; thrown while initializing 
Lcom/googlecode/javacv/cpp/opencv_imgproc;
07-08 15:27:11.187: W/dalvikvm(32368): Exception 
Ljava/lang/ExceptionInInitializerError; thrown while initializing 
Lcom/googlecode/javacv/cpp/opencv_objdetect;
07-08 15:27:11.234: D/AndroidRuntime(32368): Shutting down VM
07-08 15:27:11.234: W/dalvikvm(32368): threadid=1: thread exiting with uncaught 
exception (group=0x40018578)
07-08 15:27:11.328: E/AndroidRuntime(32368): FATAL EXCEPTION: main
07-08 15:27:11.328: E/AndroidRuntime(32368): 
java.lang.ExceptionInInitializerError
07-08 15:27:11.328: E/AndroidRuntime(32368):    at 
java.lang.Class.classForName(Native Method)
07-08 15:27:11.328: E/AndroidRuntime(32368):    at 
java.lang.Class.forName(Class.java:234)
07-08 15:27:11.328: E/AndroidRuntime(32368):    at 
com.googlecode.javacpp.Loader.load(Loader.java:453)
07-08 15:27:11.328: E/AndroidRuntime(32368):    at 
com.appzcloud.javacvtest.FaceView.<init>(FaceView.java:51)
07-08 15:27:11.328: E/AndroidRuntime(32368):    at 
com.appzcloud.javacvtest.FacePreview.onCreate(FacePreview.java:32)
07-08 15:27:11.328: E/AndroidRuntime(32368):    at 
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
07-08 15:27:11.328: E/AndroidRuntime(32368):    at 
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1615)
07-08 15:27:11.328: E/AndroidRuntime(32368):    at 
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1667)
07-08 15:27:11.328: E/AndroidRuntime(32368):    at 
android.app.ActivityThread.access$1500(ActivityThread.java:117)
07-08 15:27:11.328: E/AndroidRuntime(32368):    at 
android.app.ActivityThread$H.handleMessage(ActivityThread.java:935)
07-08 15:27:11.328: E/AndroidRuntime(32368):    at 
android.os.Handler.dispatchMessage(Handler.java:99)
07-08 15:27:11.328: E/AndroidRuntime(32368):    at 
android.os.Looper.loop(Looper.java:130)
07-08 15:27:11.328: E/AndroidRuntime(32368):    at 
android.app.ActivityThread.main(ActivityThread.java:3687)
07-08 15:27:11.328: E/AndroidRuntime(32368):    at 
java.lang.reflect.Method.invokeNative(Native Method)
07-08 15:27:11.328: E/AndroidRuntime(32368):    at 
java.lang.reflect.Method.invoke(Method.java:507)
07-08 15:27:11.328: E/AndroidRuntime(32368):    at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867)
07-08 15:27:11.328: E/AndroidRuntime(32368):    at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:625)
07-08 15:27:11.328: E/AndroidRuntime(32368):    at 
dalvik.system.NativeStart.main(Native Method)
07-08 15:27:11.328: E/AndroidRuntime(32368): Caused by: 
java.lang.ExceptionInInitializerError
07-08 15:27:11.328: E/AndroidRuntime(32368):    at 
java.lang.Class.classForName(Native Method)
07-08 15:27:11.328: E/AndroidRuntime(32368):    at 
java.lang.Class.forName(Class.java:234)
07-08 15:27:11.328: E/AndroidRuntime(32368):    at 
com.googlecode.javacpp.Loader.load(Loader.java:453)
07-08 15:27:11.328: E/AndroidRuntime(32368):    at 
com.googlecode.javacv.cpp.opencv_objdetect.<clinit>(opencv_objdetect.java:97)
07-08 15:27:11.328: E/AndroidRuntime(32368):    ... 18 more
07-08 15:27:11.328: E/AndroidRuntime(32368): Caused by: 
java.lang.ExceptionInInitializerError
07-08 15:27:11.328: E/AndroidRuntime(32368):    at 
java.lang.Class.classForName(Native Method)
07-08 15:27:11.328: E/AndroidRuntime(32368):    at 
java.lang.Class.forName(Class.java:234)
07-08 15:27:11.328: E/AndroidRuntime(32368):    at 
com.googlecode.javacpp.Loader.load(Loader.java:453)
07-08 15:27:11.328: E/AndroidRuntime(32368):    at 
com.googlecode.javacv.cpp.opencv_imgproc.<clinit>(opencv_imgproc.java:97)
07-08 15:27:11.328: E/AndroidRuntime(32368):    ... 22 more
07-08 15:27:11.328: E/AndroidRuntime(32368): Caused by: 
java.lang.UnsatisfiedLinkError: Cannot load library: reloc_library[1312]:  1311 
cannot locate '_ZN2cv13AlgorithmInfoD1Ev'...
07-08 15:27:11.328: E/AndroidRuntime(32368):    at 
java.lang.Runtime.loadLibrary(Runtime.java:434)
07-08 15:27:11.328: E/AndroidRuntime(32368):    at 
java.lang.System.loadLibrary(System.java:554)
07-08 15:27:11.328: E/AndroidRuntime(32368):    at 
com.googlecode.javacpp.Loader.loadLibrary(Loader.java:593)
07-08 15:27:11.328: E/AndroidRuntime(32368):    at 
com.googlecode.javacpp.Loader.load(Loader.java:489)
07-08 15:27:11.328: E/AndroidRuntime(32368):    at 
com.googlecode.javacpp.Loader.load(Loader.java:431)
07-08 15:27:11.328: E/AndroidRuntime(32368):    at 
com.googlecode.javacv.cpp.opencv_core.<clinit>(opencv_core.java:136)
07-08 15:27:11.328: E/AndroidRuntime(32368):    ... 26 more
07-08 15:27:11.328: E/AndroidRuntime(32368): Caused by: 
java.lang.UnsatisfiedLinkError: Couldn't load tbb: findLibrary returned null
07-08 15:27:11.328: E/AndroidRuntime(32368):    at 
java.lang.Runtime.loadLibrary(Runtime.java:429)
07-08 15:27:11.328: E/AndroidRuntime(32368):    at 
java.lang.System.loadLibrary(System.java:554)
07-08 15:27:11.328: E/AndroidRuntime(32368):    at 
com.googlecode.javacpp.Loader.loadLibrary(Loader.java:593)
07-08 15:27:11.328: E/AndroidRuntime(32368):    at 
com.googlecode.javacpp.Loader.load(Loader.java:481)
07-08 15:27:11.328: E/AndroidRuntime(32368):    ... 28 more
07-08 15:27:11.734: D/dalvikvm(32368): GC_CONCURRENT freed 447K, 50% free 
3005K/5895K, external 408K/517K, paused 3ms+10ms

Can you provide me precompiled binaries for armv6.

Original comment by shiva.ag...@appzcloud.com on 8 Jul 2013 at 10:12

GoogleCodeExporter commented 9 years ago
There's two problems here:
1. Android does not support ARMv6, only ARMv5 or ARMv7.
2. Although ARMv5 is compatible with both ARMv6 and ARMv7, since it doesn't 
have an FPU, the performance is something like 100 times worse.

Is it OK for your application to be 100 times slower?

Original comment by samuel.a...@gmail.com on 8 Jul 2013 at 11:07

GoogleCodeExporter commented 9 years ago
Thanks for your quick reply 
i agree with your point but still i want to execute it at my Samsung galaxy Y 
just for curiousity, want to see it working at this device.
So, i need appropriate precompiled binaries for this device.

Original comment by shiva.ag...@appzcloud.com on 8 Jul 2013 at 11:40

GoogleCodeExporter commented 9 years ago
Hi Samuel.
As i am using javac. Great work done by you. I am facing one problem. i want to 
rotate an IplImage at 90 degree angle. cvFlip(IplImage, IplImage,int param) is 
also there to flip the image but it is not rotating my IplImage at 90 degree 
angle. Please help me out.
Thanks

Original comment by shivaagr...@gmail.com on 11 Jul 2013 at 10:33