saki4510t / UVCCamera

library and sample to access to UVC web camera on non-rooted Android device
2.97k stars 1.19k forks source link

Camera Preview is not showing :- #179

Open aditayDevelopment opened 7 years ago

aditayDevelopment commented 7 years ago

in my project Camera preview is not showing. device detect Usb camera and connect with onConnect method call, but no preview not showing.

This log is print

/AbsUVCCameraHandler( 1337): supportedSize:{"formats":[{"index":1,"type":4,"default":1,"size":["640x480","320x240","160x120","1280x720","1600x1200","800x600"]}]} V/CameraThread( 1337): handleStartPreview: I/libUVCCamera( 1337): [1513UVCPreview.cpp:492:prepare_preview]:frameSize=(640,480)@YUYV I/libUVCCamera( 1337): [1515UVCPreview.cpp:258:callbackPixelFormatChanged]:PIXEL_FORMAT_RAW: F/libc ( 1337): Fatal signal 11 (SIGSEGV) at 0x71152000 (code=1), thread 1512 (CameraThread) E/TAG ( 1337): onCreate E/TAG ( 1337): posimage E/TAG ( 1337): onpageSelected2 I/DEBUG ( 90): I/DEBUG ( 90): Build fingerprint: 'rockchip/rk3188/rk3188:4.4.4/KTU84Q/eng.liaokai.20151026.183723:eng/test-keys' I/DEBUG ( 90): Revision: '0' I/DEBUG ( 90): pid: 1337, tid: 1512, name: CameraThread >>> com.selfieapp <<< I/DEBUG ( 90): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 71152000 I/DEBUG ( 90): r0 71151fe4 r1 6ae80708 r2 00000500 r3 00000000 I/DEBUG ( 90): r4 00000000 r5 00000000 r6 00000000 r7 00000000 I/DEBUG ( 90): r8 00000000 r9 6a9f6558 sl 6ae80008 fp 6cb6bab8 I/DEBUG ( 90): ip 00000000 sp 6cb6ba5c lr 00000000 pc 400ab1c6 cpsr 200d0030 I/DEBUG ( 90): d0 0000000000000000 d1 0000000000000000 I/DEBUG ( 90): d2 0000000000000000 d3 0000000000000000 I/DEBUG ( 90): d4 0006000101030324 d5 0b00010104042407 I/DEBUG ( 90): d6 7f027dd004050524 d7 4c560606241b0017 I/DEBUG ( 90): d8 0000000044b9e000 d9 8000000000000000 I/DEBUG ( 90): d10 0000000000000000 d11 0000000000000000 I/DEBUG ( 90): d12 0000000000000000 d13 0000000000000000 I/DEBUG ( 90): d14 0000000000000000 d15 0000000000000000 I/DEBUG ( 90): d16 000000000000001c d17 01000008ffffffff I/DEBUG ( 90): d18 4649494b4f4e4f4b d19 ffffffffffffffff I/DEBUG ( 90): d20 ffffffffffffffff d21 4649494b4f4e4f4b I/DEBUG ( 90): d22 313636363c3c3c38 d23 474b4b4c5151514d I/DEBUG ( 90): d24 4649494b4f4e4f4b d25 ffffffffffffffff I/DEBUG ( 90): d26 ffffffffffffffff d27 ffffffffffffffff I/DEBUG ( 90): d28 ffffffffffffffff d29 ffffffffffffffff I/DEBUG ( 90): d30 ffffffffffffffff d31 ffffffffffffffff I/DEBUG ( 90): scr 80000013 I/DEBUG ( 90): I/DEBUG ( 90): backtrace: I/DEBUG ( 90): #00 pc 000221c6 /system/lib/libc.so (memcpy_base_aligned+73) I/DEBUG ( 90): #01 pc 00014fc8 /data/app-lib/com.selfieapp-1/libuvc.so I/DEBUG ( 90): #02 pc 0000c314 /data/app-lib/com.selfieapp-1/libusb100.so (usbi_handle_transfer_completion+320) I/DEBUG ( 90): #03 pc 000126a8 /data/app-lib/com.selfieapp-1/libusb100.so I/DEBUG ( 90): #04 pc 0000d200 /data/app-lib/com.selfieapp-1/libusb100.so I/DEBUG ( 90): #05 pc 0000cb60 /data/app-lib/com.selfieapp-1/libusb100.so (libusb_handle_events_timeout_completed+968) I/DEBUG ( 90): #06 pc 0000d3cc /data/app-lib/com.selfieapp-1/libusb100.so (libusb_handle_events+52) I/DEBUG ( 90): #07 pc 00012c20 /data/app-lib/com.selfieapp-1/libuvc.so (_uvc_handle_events+136) I/DEBUG ( 90): #08 pc 0000d228 /system/lib/libc.so (thread_entry+72) I/DEBUG ( 90): #09 pc 0000d3c0 /system/lib/libc.so (pthread_create+240) I/DEBUG ( 90): I/DEBUG ( 90): stack: I/DEBUG ( 90): 6cb6ba1c 00000000
I/DEBUG ( 90): 6cb6ba20 6a92e5c8
I/DEBUG ( 90): 6cb6ba24 00000000
I/DEBUG ( 90): 6cb6ba28 00000000
I/DEBUG ( 90): 6cb6ba2c 6ab06fb0 /data/app-lib/com.selfieapp-1/libusb100.so (libusb_ref_device+36) I/DEBUG ( 90): 6cb6ba30 00000000
I/DEBUG ( 90): 6cb6ba34 00000000
I/DEBUG ( 90): 6cb6ba38 00000000
I/DEBUG ( 90): 6cb6ba3c 6ab0f00c /data/app-lib/com.selfieapp-1/libusb100.so (libusb_submit_transfer+584) I/DEBUG ( 90): 6cb6ba40 00000000
I/DEBUG ( 90): 6cb6ba44 00000000
I/DEBUG ( 90): 6cb6ba48 000004a5
I/DEBUG ( 90): 6cb6ba4c 31a2f89b
I/DEBUG ( 90): 6cb6ba50 21494f58
I/DEBUG ( 90): 6cb6ba54 00000800
I/DEBUG ( 90): 6cb6ba58 00000000
I/DEBUG ( 90): #00 6cb6ba5c 00000c00
I/DEBUG ( 90): 6cb6ba60 00000000
I/DEBUG ( 90): 6cb6ba64 6ae80009
I/DEBUG ( 90): 6cb6ba68 00000c00
I/DEBUG ( 90): 6cb6ba6c 6a92f250
I/DEBUG ( 90): 6cb6ba70 71151904
I/DEBUG ( 90): 6cb6ba74 6ac65fcc /data/app-lib/com.selfieapp-1/libuvc.so I/DEBUG ( 90): #01 6cb6ba78 6ac69284 /data/app-lib/com.selfieapp-1/libuvc.so I/DEBUG ( 90): 6cb6ba7c 6ac69284 /data/app-lib/com.selfieapp-1/libuvc.so I/DEBUG ( 90): 6cb6ba80 6a92f2dc
I/DEBUG ( 90): 6cb6ba84 6a92f2d8
I/DEBUG ( 90): 6cb6ba88 6a9f643c
I/DEBUG ( 90): 6cb6ba8c 00000014
I/DEBUG ( 90): 6cb6ba90 00000000
I/DEBUG ( 90): 6cb6ba94 6a92f050
I/DEBUG ( 90): 6cb6ba98 21494f58
I/DEBUG ( 90): 6cb6ba9c 6a9f6418
I/DEBUG ( 90): 6cb6baa0 6a9f643c
I/DEBUG ( 90): 6cb6baa4 00000000
I/DEBUG ( 90): 6cb6baa8 00000000
I/DEBUG ( 90): 6cb6baac 6a92f050
I/DEBUG ( 90): 6cb6bab0 6a92e510
I/DEBUG ( 90): 6cb6bab4 6a9f65e4
I/DEBUG ( 90): ........ ........ I/DEBUG ( 90): #02 6cb6bac0 6a9f643c
I/DEBUG ( 90): 6cb6bac4 6ac65980 /data/app-lib/com.selfieapp-1/libuvc.so I/DEBUG ( 90): 6cb6bac8 00000000
I/DEBUG ( 90): 6cb6bacc 689a6b88
I/DEBUG ( 90): 6cb6bad0 6a92f050
I/DEBUG ( 90): 6cb6bad4 00000004
I/DEBUG ( 90): 6cb6bad8 6a9f8430
I/DEBUG ( 90): 6cb6badc 00000000
I/DEBUG ( 90): 6cb6bae0 6a9f65e0
I/DEBUG ( 90): 6cb6bae4 6a92f050
I/DEBUG ( 90): 6cb6bae8 00000004
I/DEBUG ( 90): 6cb6baec 6a9f65e4
I/DEBUG ( 90): 6cb6baf0 6cb6bcb8
I/DEBUG ( 90): 6cb6baf4 6ab156ac /data/app-lib/com.selfieapp-1/libusb100.so I/DEBUG ( 90): I/DEBUG ( 90): memory near r0: I/DEBUG ( 90): 71151fc4 00000000 00000000 00000000 00000000
I/DEBUG ( 90): 71151fd4 00000000 00000000 00000000 00000000
I/DEBUG ( 90): 71151fe4 00000000 00000000 00000000 00000000
I/DEBUG ( 90): 71151ff4 00000000 00000000 00000000 ffffffff
I/DEBUG ( 90): 71152004 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 90): 71152014 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 90): 71152024 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 90): 71152034 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 90): 71152044 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 90): 71152054 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 90): 71152064 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 90): 71152074 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 90): 71152084 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 90): 71152094 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 90): 711520a4 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 90): 711520b4 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 90): I/DEBUG ( 90): memory near r1: I/DEBUG ( 90): 6ae806e8 00000000 00000000 00000000 00000000
I/DEBUG ( 90): 6ae806f8 00000000 00000000 00000000 00000000
I/DEBUG ( 90): 6ae80708 00000000 00000000 00000000 00000000
I/DEBUG ( 90): 6ae80718 00000000 00000000 00000000 00000000
I/DEBUG ( 90): 6ae80728 00000000 00000000 00000000 00000000
I/DEBUG ( 90): 6ae80738 00000000 00000000 00000000 00000000
I/DEBUG ( 90): 6ae80748 00000000 00000000 00000000 00000000
I/DEBUG ( 90): 6ae80758 00000000 00000000 00000000 00000000
I/DEBUG ( 90): 6ae80768 00000000 00000000 00000000 00000000
I/DEBUG ( 90): 6ae80778 00000000 00000000 00000000 00000000
I/DEBUG ( 90): 6ae80788 00000000 00000000 00000000 00000000
I/DEBUG ( 90): 6ae80798 00000000 00000000 00000000 00000000
I/DEBUG ( 90): 6ae807a8 00000000 00000000 00000000 00000000
I/DEBUG ( 90): 6ae807b8 00000000 00000000 00000000 00000000
I/DEBUG ( 90): 6ae807c8 00000000 00000000 00000000 00000000
I/DEBUG ( 90): 6ae807d8 00000000 00000000 00000000 00000000
I/DEBUG ( 90): I/DEBUG ( 90): memory near r9: I/DEBUG ( 90): 6a9f6538 00000000 00000c00 00000c00 00000000
I/DEBUG ( 90): 6a9f6548 00000c00 00000800 00000000 00000c00
I/DEBUG ( 90): 6a9f6558 00000c00 00000000 00000c00 00000c00
I/DEBUG ( 90): 6a9f6568 00000000 00000c00 00000c00 00000000
I/DEBUG ( 90): 6a9f6578 00000c00 00000c00 00000000 00000c00
I/DEBUG ( 90): 6a9f6588 000008b4 00000000 00000c00 00000800
I/DEBUG ( 90): 6a9f6598 00000000 00000c00 00000c00 00000000
I/DEBUG ( 90): 6a9f65a8 00000c00 00000800 00000000 00000c00
I/DEBUG ( 90): 6a9f65b8 00000c00 00000000 00000c00 00000800
I/DEBUG ( 90): 6a9f65c8 00000000 00000c00 00000c00 00000000
I/DEBUG ( 90): 6a9f65d8 00000c00 00000c00 00000000 00000000
I/DEBUG ( 90): 6a9f65e8 00000000 00000004 00000004 00000000
I/DEBUG ( 90): 6a9f65f8 00000020 000001eb 00000020 6aa121ec
I/DEBUG ( 90): 6a9f6608 6aa11e1c 000004a5 000c5480 00000000
I/DEBUG ( 90): 6a9f6618 00000000 00000000 00000000 6a92f050
I/DEBUG ( 90): 6a9f6628 00018100 00001388 00000000 00018000
I/DEBUG ( 90): I/DEBUG ( 90): memory near sl: I/DEBUG ( 90): 6ae7ffe8 00000000 00000000 00000000 00000000
I/DEBUG ( 90): 6ae7fff8 00000000 00000000 00000000 00000000
I/DEBUG ( 90): 6ae80008 00000000 00000000 00000000 00000000
I/DEBUG ( 90): 6ae80018 00000000 00000000 00000000 00000000
I/DEBUG ( 90): 6ae80028 00000000 00000000 00000000 00000000
I/DEBUG ( 90): 6ae80038 00000000 00000000 00000000 00000000
I/DEBUG ( 90): 6ae80048 00000000 00000000 00000000 00000000
I/DEBUG ( 90): 6ae80058 00000000 00000000 00000000 00000000
I/DEBUG ( 90): 6ae80068 00000000 00000000 00000000 00000000
I/DEBUG ( 90): 6ae80078 00000000 00000000 00000000 00000000
I/DEBUG ( 90): 6ae80088 00000000 00000000 00000000 00000000
I/DEBUG ( 90): 6ae80098 00000000 00000000 00000000 00000000
I/DEBUG ( 90): 6ae800a8 00000000 00000000 00000000 00000000
I/DEBUG ( 90): 6ae800b8 00000000 00000000 00000000 00000000
I/DEBUG ( 90): 6ae800c8 00000000 00000000 00000000 00000000
I/DEBUG ( 90): 6ae800d8 00000000 00000000 00000000 00000000
I/DEBUG ( 90): I/DEBUG ( 90): memory near fp: I/DEBUG ( 90): 6cb6ba98 21494f58 6a9f6418 6a9f643c 00000000
I/DEBUG ( 90): 6cb6baa8 00000000 6a92f050 6a92e510 6a9f65e4
I/DEBUG ( 90): 6cb6bab8 6cb6baf0 6ab0f318 6a9f643c 6ac65980
I/DEBUG ( 90): 6cb6bac8 00000000 689a6b88 6a92f050 00000004
I/DEBUG ( 90): 6cb6bad8 6a9f8430 00000000 6a9f65e0 6a92f050
I/DEBUG ( 90): 6cb6bae8 00000004 6a9f65e4 6cb6bcb8 6ab156ac
I/DEBUG ( 90): 6cb6baf8 00000000 00000004 00000004 00000000
I/DEBUG ( 90): 6cb6bb08 00000000 00000004 6a9f6438 6ab1c7c5
I/DEBUG ( 90): 6cb6bb18 6ab1c7b7 6ab1c7c5 6ab1c7b7 6ab1c7c5
I/DEBUG ( 90): 6cb6bb28 6ab1c7b7 6ab1ccd3 6ab1cbd6 6ab1ce84
I/DEBUG ( 90): 6cb6bb38 6ab1ce4c 6ab1ccbd 6ab1cbd6 6ab1cda0
I/DEBUG ( 90): 6cb6bb48 6ab1cd1a 6ab1cdd0 6ab1cd1a 6ab1cd7e
I/DEBUG ( 90): 6cb6bb58 6ab1cd1a 6ab1cd61 6ab1cd1a 6ab1cc58
I/DEBUG ( 90): 6cb6bb68 6ab1bb06 6ab1bb42 6ab1cea7 6ab1ce4c
I/DEBUG ( 90): 6cb6bb78 6ab1cec3 6ab1ce4c 6ab1cca2 6ab1ce4c
I/DEBUG ( 90): 6cb6bb88 6ab1cca2 6ab1cbd6 6ab1cc31 6ab1cbd6
I/DEBUG ( 90): I/DEBUG ( 90): memory near sp: I/DEBUG ( 90): 6cb6ba3c 6ab0f00c 00000000 00000000 000004a5
I/DEBUG ( 90): 6cb6ba4c 31a2f89b 21494f58 00000800 00000000
I/DEBUG ( 90): 6cb6ba5c 00000c00 00000000 6ae80009 00000c00
I/DEBUG ( 90): 6cb[ 1182b766460]2ini0 115_p0op: pe5miss6ac6928ied uid:1EB4G nam sy0): ibg 6.v6bs7on a[ 9186 147712]cbia9er2dr laaf64pc c 3I/,EBUa ac(io 99):26 6cb br8c 0 00014 00000000 6a92f050 21494f58
I/DEBUG ( 90): 6cb6ba9c 6a9f6418 6a9f643c 00000000 00000000
I/DEBUG ( 90): 6cb6baac 6a92f050 6a92e510 6a9f65e4 6cb6baf0
I/DEBUG ( 90): 6cb6babc 6ab0f318 6a9f643c 6ac65980 00000000
I/DEBUG ( 90): 6cb6bacc 689a6b88 6a92f050 00000004 6a9f8430
I/DEBUG ( 90): 6cb6badc 00000000 6a9f65e0 6a92f050 00000004
I/DEBUG ( 90): 6cb6baec 6a9f65e4 6cb6bcb8 6ab156ac 00000000
I/DEBUG ( 90): 6cb6bafc 00000004 00000004 00000000 00000000
I/DEBUG ( 90): 6cb6bb0c 00000004 6a9f6438 6ab1c7c5 6ab1c7b7
I/DEBUG ( 90): 6cb6bb1c 6ab1c7c5 6ab1c7b7 6ab1c7c5 6ab1c7b7
I/DEBUG ( 90): 6cb6bb2c 6ab1ccd3 6ab1cbd6 6ab1ce84 6ab1ce4c
I/DEBUG ( 90): I/DEBUG ( 90): code around pc: I/DEBUG ( 90): 400ab1a4 f8114b01 f8005b01 f8004b01 3a405b01
I/DEBUG ( 90): 400ab1b4 f891db0b e8b1f100 e8a051f8 e8b151f8
I/DEBUG ( 90): 400ab1c4 e8a051f8 3a4051f8 3240daf3 db043a20
I/DEBUG ( 90): 400ab1d4 51f8e8b1 51f8e8a0 32203a20 ea5fd01a
I/DEBUG ( 90): 400ab1e4 bf247c02 c078c978 e8b1bf44 e8a00180
I/DEBUG ( 90): 400ab1f4 ea5f0180 bf247c82 3b04f851 3b04f840
I/DEBUG ( 90): 400ab204 f831bf44 f8204b02 f0124b02 bf1c0f01
I/DEBUG ( 90): 400ab214 7003780b 01f0e8bd 8001e8bd 4803b500
I/DEBUG ( 90): 400ab224 44784901 fc50f7f0 000138e4 00027e56
I/DEBUG ( 90): 400ab234 e1520003 9a000008 e52de004 e59f000c
I/DEBUG ( 90): 400ab244 e59f1004 e080000f faffc21e 000138fd
I/DEBUG ( 90): 400ab254 00027e47 e1a02001 e3a01000 e3520084
I/DEBUG ( 90): 400ab264 8a000016 e92d0001 eee01b10 e2522020
I/DEBUG ( 90): 400ab274 3a000003 f2202150 e2522020 f400020d
I/DEBUG ( 90): 400ab284 2afffffc e2822020 e3120010 0a000000
I/DEBUG ( 90): 400ab294 f4000a0d e1b0ce82 3a000000 f400070d
I/DEBUG ( 90): I/DEBUG ( 90): code around lr: I/DEBUG ( 90): 00000000 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 90): 00000010 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 90): 00000020 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 90): 00000030 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 90): 00000040 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 90): 00000050 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 90): 00000060 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 90): 00000070 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 90): 00000080 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 90): 00000090 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 90): 000000a0 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 90): 000000b0 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 90): 000000c0 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 90): 000000d0 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 90): 000000e0 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 90): 000000f0 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 90): I/DEBUG ( 90): memory map around fault addr 71152000: I/DEBUG ( 90): 70151000-71152000 rw- I/DEBUG ( 90): (no map for address) I/DEBUG ( 90): 71414000-71bfd000 rw- /dev/ump W/ActivityManager( 393): Force finishing activity com.selfieapp/.Usb_CameraActivity

please help i am ready to pay

sappho192 commented 7 years ago

Which NDK version are you using? If it's 15, then try 14b.