gyandeep8693 / javacv

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

error: javacv for android on eclipse #334

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. the program can't do this Loader.load(opencv_objdetect.class);
2.
3.

What is the expected output? What do you see instead?
code:
    public FaceView(FacePreview context) throws IOException {
        super(context);

        // Load the classifier file from Java resources.

        Log.i("@@@@@@@@@@@@@@@","1111111111111111111111111111111111111");
        File classifierFile = Loader.extractResource(getClass(),
            "/com/googlecode/javacv/facepreview/haarcascade_frontalface_alt.xml",
            context.getCacheDir(), "classifier", ".xml");
        if (classifierFile == null || classifierFile.length() <= 0) {
            Log.i("error!!!","bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb");
            throw new IOException("Could not extract the classifier file from Java resource.");
        }

        // Preload the opencv_objdetect module to work around a known bug.

        Log.i("@@@@@@@@@@@@@@@","2222222222222222222222222222222");
        Loader.load(opencv_objdetect.class);
        Log.i("@@@@@@@@@@@@@@@","3333333333333333333333333333333");
        classifier = new CvHaarClassifierCascade(cvLoad(classifierFile.getAbsolutePath())); 
        Log.i("@@@@@@@@@@@@@@@","44444444444444444444444444444444444444444");
        classifierFile.delete();
        if (classifier.isNull()) {
            throw new IOException("Could not load the classifier file.");
        }
        storage = CvMemStorage.create();
    }

error:
07-05 11:27:49.299: E/UinboxLogger(11673): [UinboxReceiver] onReceive() >> 
Context is android.app.ReceiverRestrictedContext@405250d8
07-05 11:28:17.819: E/Launcher(245): setWindowOpaque()
07-05 11:28:17.849: E/Launcher(245): MTP-LAUNCHER: media scanning not yet 
finished. 
07-05 11:28:17.869: E/Launcher(245): setWindowOpaque()
07-05 11:28:59.029: E/Launcher(245): setWindowOpaque()
07-05 11:28:59.049: E/Launcher(245): MTP-LAUNCHER: media scanning not yet 
finished. 
07-05 11:28:59.069: E/Launcher(245): setWindowOpaque()

logcat:
07-05 11:28:51.779: I/ActivityManager(162): Starting: Intent { 
act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] 
flg=0x10000000 cmp=com.googlecode.javacv.facepreview/.FacePreview } from pid 
11916
07-05 11:28:51.809: I/Launcher(245): onPause()
07-05 11:28:51.819: D/AndroidRuntime(11916): Shutting down VM
07-05 11:28:51.829: I/ActivityManager(162): Start proc 
com.googlecode.javacv.facepreview for activity 
com.googlecode.javacv.facepreview/.FacePreview: pid=11928 uid=10020 gids={1006}
07-05 11:28:51.839: I/AndroidRuntime(11916): NOTE: attach of thread 'Binder 
Thread #3' failed
07-05 11:28:51.919: I/OrientationDebug(162): [pwm] in 
updateOrientationListenerLp()
07-05 11:28:51.919: V/OrientationDebug(162): in updateOrientationListenerLp(), 
Screen status=true, current orientation=-1, SensorEnabled=false
07-05 11:28:51.919: I/OrientationDebug(162): [pwm] needSensorRunningLp(), 
return false #3
07-05 11:28:51.969: I/@@@@@@@@@@@@@@@(11928): 
1111111111111111111111111111111111111
07-05 11:28:52.019: I/Launcher(245): onWindowFocusChanged(false)
07-05 11:28:52.029: D/Launcher(245): setWallpaperDimension() called
07-05 11:28:52.029: D/Launcher(245): USE_NON_SCROLLABLE_IMAGE_WALLPAPER is true
07-05 11:28:52.029: D/Launcher(245): It's image wallpaper. 
suggestDesiredDimensions(-1,-1)
07-05 11:28:52.359: I/@@@@@@@@@@@@@@@(11928): 2222222222222222222222222222222
07-05 11:28:52.599: I/DEBUG(3344): *** *** *** *** *** *** *** *** *** *** *** 
*** *** *** *** ***
07-05 11:28:52.599: I/DEBUG(3344): Build fingerprint: 
'samsung/GT-S5830/GT-S5830:2.3.4/GINGERBREAD/ZCKPB:user/release-keys'
07-05 11:28:52.599: I/DEBUG(3344): pid: 11928, tid: 11928  >>> 
com.googlecode.javacv.facepreview <<<
07-05 11:28:52.609: I/DEBUG(3344): signal 4 (SIGILL), code 1 (ILL_ILLOPC), 
fault addr 80a12cec
07-05 11:28:52.609: I/DEBUG(3344):  r0 80a39bfc  r1 00000008  r2 80a12cea  r3 
000270b4
07-05 11:28:52.609: I/DEBUG(3344):  r4 80a39c00  r5 00000008  r6 00000004  r7 
00000000
07-05 11:28:52.609: I/DEBUG(3344):  r8 801182c0  r9 0000cec8  10 4428f85c  fp 
46cc6444
07-05 11:28:52.609: I/DEBUG(3344):  ip 80a00000  sp bef9a998  lr b00037f5  pc 
80a12cec  cpsr 80000010
07-05 11:28:52.609: I/DEBUG(3344):  d0  400000003eaaaaab  d1  3ff0000042c80000
07-05 11:28:52.609: I/DEBUG(3344):  d2  bfd3441350baf6de  d3  c1493000c1323800
07-05 11:28:52.609: I/DEBUG(3344):  d4  4900000040dcb000  d5  000000000006e580
07-05 11:28:52.609: I/DEBUG(3344):  d6  4515a00000000800  d7  40800000c48ee000
07-05 11:28:52.609: I/DEBUG(3344):  d8  0000000000000000  d9  0000000000000000
07-05 11:28:52.609: I/DEBUG(3344):  d10 0000000000000000  d11 0000000000000000
07-05 11:28:52.609: I/DEBUG(3344):  d12 0000000000000000  d13 0000000000000000
07-05 11:28:52.609: I/DEBUG(3344):  d14 0000000000000000  d15 0000000000000000
07-05 11:28:52.609: I/DEBUG(3344):  scr 80000012
07-05 11:28:52.659: I/DEBUG(3344):          #00  pc 00012cec  
/data/data/com.googlecode.javacv.facepreview/lib/libtbb.so
07-05 11:28:52.659: I/DEBUG(3344):          #01  lr b00037f5  /system/bin/linker
07-05 11:28:52.659: I/DEBUG(3344): code around pc:
07-05 11:28:52.659: I/DEBUG(3344): 80a12ccc e1a00006 eb004a45 eb004b9b 0002745c 
07-05 11:28:52.659: I/DEBUG(3344): 80a12cdc fffffe00 fffffea8 fffffeb0 e59f300c 
07-05 11:28:52.659: I/DEBUG(3344): 80a12cec f2c00010 e79f3003 f443078f e12fff1e 
07-05 11:28:52.659: I/DEBUG(3344): 80a12cfc 000270b4 e59f300c e79f3003 e2833008 
07-05 11:28:52.659: I/DEBUG(3344): 80a12d0c e5803000 e12fff1e 000270a4 e12fff1e 
07-05 11:28:52.659: I/DEBUG(3344): code around lr:
07-05 11:28:52.659: I/DEBUG(3344): b00037d4 2a002601 1e48d003 18e40083 00b64276 
07-05 11:28:52.659: I/DEBUG(3344): b00037e4 e0061c0d 19a46823 32031e5a 4798d800 
07-05 11:28:52.659: I/DEBUG(3344): b00037f4 2d003d01 bd70dcf6 1c03b510 1c0433e8 
07-05 11:28:52.659: I/DEBUG(3344): b0003804 28006818 3304d004 22016819 ffdef7ff 
07-05 11:28:52.659: I/DEBUG(3344): b0003814 682334f4 d0002b00 bd104798 4c05b510 
07-05 11:28:52.659: I/DEBUG(3344): stack:
07-05 11:28:52.659: I/DEBUG(3344):     bef9a958  b000e3a4  
07-05 11:28:52.659: I/DEBUG(3344):     bef9a95c  b0003c4d  /system/bin/linker
07-05 11:28:52.659: I/DEBUG(3344):     bef9a960  ffffffff  
07-05 11:28:52.659: I/DEBUG(3344):     bef9a964  00000000  
07-05 11:28:52.659: I/DEBUG(3344):     bef9a968  b000e318  
07-05 11:28:52.659: I/DEBUG(3344):     bef9a96c  b00140cc  
07-05 11:28:52.659: I/DEBUG(3344):     bef9a970  b000e318  
07-05 11:28:52.659: I/DEBUG(3344):     bef9a974  b00047a3  /system/bin/linker
07-05 11:28:52.659: I/DEBUG(3344):     bef9a978  ffffffff  
07-05 11:28:52.659: I/DEBUG(3344):     bef9a97c  b000e318  
07-05 11:28:52.659: I/DEBUG(3344):     bef9a980  0000023c  
07-05 11:28:52.659: I/DEBUG(3344):     bef9a984  00000413  
07-05 11:28:52.659: I/DEBUG(3344):     bef9a988  80a0ca70  
/data/data/com.googlecode.javacv.facepreview/lib/libtbb.so
07-05 11:28:52.659: I/DEBUG(3344):     bef9a98c  80a09a14  
/data/data/com.googlecode.javacv.facepreview/lib/libtbb.so
07-05 11:28:52.659: I/DEBUG(3344):     bef9a990  df002777  
07-05 11:28:52.659: I/DEBUG(3344):     bef9a994  e3a070ad  
07-05 11:28:52.659: I/DEBUG(3344): #00 bef9a998  b000e3fc  
07-05 11:28:52.659: I/DEBUG(3344):     bef9a99c  b000e3f8  
07-05 11:28:52.659: I/DEBUG(3344):     bef9a9a0  00002724  
07-05 11:28:52.659: I/DEBUG(3344):     bef9a9a4  b00038a9  /system/bin/linker
07-05 11:28:52.659: I/DEBUG(3344):     bef9a9a8  0003f000  
07-05 11:28:52.659: I/DEBUG(3344):     bef9a9ac  afd00000  /system/lib/libc.so
07-05 11:28:52.659: I/DEBUG(3344):     bef9a9b0  00000025  
07-05 11:28:52.659: I/DEBUG(3344):     bef9a9b4  b000e318  
07-05 11:28:52.659: I/DEBUG(3344):     bef9a9b8  80a39ccc  
07-05 11:28:52.659: I/DEBUG(3344):     bef9a9bc  b000e318  
07-05 11:28:52.659: I/DEBUG(3344):     bef9a9c0  00002724  
07-05 11:28:52.659: I/DEBUG(3344):     bef9a9c4  b0004f93  /system/bin/linker
07-05 11:28:52.659: I/DEBUG(3344):     bef9a9c8  00000025  
07-05 11:28:52.659: I/DEBUG(3344):     bef9a9cc  b000e3a4  
07-05 11:28:52.659: I/DEBUG(3344):     bef9a9d0  b000e318  
07-05 11:28:52.669: I/DEBUG(3344):     bef9a9d4  00000007  
07-05 11:28:52.669: I/DEBUG(3344):     bef9a9d8  00000000  
07-05 11:28:52.669: I/DEBUG(3344):     bef9a9dc  80145f11  /system/lib/libdvm.so
07-05 11:28:53.009: I/BootReceiver(162): Copying /data/tombstones/tombstone_02 
to DropBox (SYSTEM_TOMBSTONE)
07-05 11:28:53.019: I/DEBUG(3344): dumpstate /data/log/dumpstate_app_native.txt
07-05 11:28:53.809: W/FastDormancy(227):  before ======= ENTER DORMANCY =======

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

win7  javacv-0.5 phone: sansung GTS5830

Please provide any additional information below.

Original issue reported on code.google.com by xinxianq...@163.com on 5 Jul 2013 at 3:44

Attachments:

GoogleCodeExporter commented 9 years ago
i need help ,please.

Original comment by xinxianq...@163.com on 5 Jul 2013 at 3:48

GoogleCodeExporter commented 9 years ago
The GTS5830 seems to come with an ARMv6 processor (MSM7227), 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.

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

GoogleCodeExporter commented 9 years ago
@samuel
I know that,I tried the example on another phone with ARMV7,but error exists.
and I want to konw can I test javacv on AVD?

Original comment by xinxianq...@163.com on 5 Jul 2013 at 4:15

GoogleCodeExporter commented 9 years ago
So please post the error you get in that case.

Sure, it should work fine with AVD.

Original comment by samuel.a...@gmail.com on 5 Jul 2013 at 4:41

GoogleCodeExporter commented 9 years ago
@samuel
 Thank you so much , I run the project on AVD (cpu: ARMv7) ,and I success!
thank you.

Original comment by xinxianq...@163.com on 5 Jul 2013 at 10:33