Support status and button callbacks#22
Merged
saki4510t merged 2 commits intoOct 30, 2015
Merged
Conversation
saki4510t
added a commit
that referenced
this pull request
Oct 30, 2015
Support status and button callbacks
xvsd247
pushed a commit
to xvsd247/UVCCamera
that referenced
this pull request
Dec 20, 2019
2.add a53 arm64-v8a so support Application.mk 3.update gradle version 4.solve many locks and crashes like below: a.====================================================> "USBMonitor" prio=5 tid=26 Native | group="main" sCount=1 dsCount=0 obj=0x1305e4c0 self=0x936f3600 | sysTid=29098 nice=0 cgrp=default sched=0/0 handle=0x963f5920 | state=R schedstat=( 33047306629 57265839 2564796 ) utm=962 stm=2342 core=3 HZ=100 | stack=0x962f3000-0x962f5000 stackSize=1038KB | held mutexes= native: #00 pc 0001741c /system/lib/libc.so (syscall+32) native: saki4510t#1 pc 00046e19 /system/lib/libc.so (_ZL20__pthread_cond_pulseP23pthread_cond_internal_ti+60) native: saki4510t#2 pc 00046dd5 /system/lib/libc.so (pthread_cond_broadcast+6) native: saki4510t#3 pc 0000a2fc /data/app/com.zhilai.xiaogu-1/lib/arm/libusb100.so (libusb_unlock_events+44) native: saki4510t#4 pc 0000a96c /data/app/com.zhilai.xiaogu-1/lib/arm/libusb100.so (libusb_handle_events_timeout_completed+304) native: saki4510t#5 pc 0000ab40 /data/app/com.zhilai.xiaogu-1/lib/arm/libusb100.so (libusb_handle_events_completed+48) native: saki4510t#6 pc 0000b390 /data/app/com.zhilai.xiaogu-1/lib/arm/libusb100.so (libusb_control_transfer+360) native: saki4510t#7 pc 00012f74 /data/app/com.zhilai.xiaogu-1/lib/arm/libuvc.so (uvc_query_stream_ctrl+188) native: saki4510t#8 pc 000138e8 /data/app/com.zhilai.xiaogu-1/lib/arm/libuvc.so (uvc_get_stream_ctrl_format_size_fps+240) native: saki4510t#9 pc 0000dbf8 /data/app/com.zhilai.xiaogu-1/lib/arm/libUVCCamera.so (_ZN10UVCPreview14setPreviewSizeEiiiiif+120) native: saki4510t#10 pc 00030d23 /data/app/com.zhilai.xiaogu-1/oat/arm/base.odex (Java_com_serenegiant_usb_UVCCamera_nativeSetPreviewSize__JIIIIIF+142) at com.serenegiant.usb.UVCCamera.nativeSetPreviewSize(Native method) at com.serenegiant.usb.UVCCamera.open(UVCCamera.java:212) - locked <0x0a790c22> (a com.serenegiant.usb.UVCCamera) at com.zhilai.facelibrary.zlfacerecog.faceutil.ucvcamera.widget.UvcCameraView$2.onConnect(UvcCameraView.java:98) - locked <0x0d480de6> (a java.lang.Object) at com.serenegiant.usb.USBMonitor$3.run(USBMonitor.java:605) at android.os.Handler.handleCallback(Handler.java:755) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:154) at android.os.HandlerThread.run(HandlerThread.java:61) b.====================================================> 12-17 01:59:18.348 483 533 E BatteryStatsService: modem info is invalid: ModemActivityInfo{ mTimestamp=0 mSleepTimeMs=0 mIdleTimeMs=0 mTxTimeMs[]=[0, 0, 0, 0, 0] mRxTimeMs=0 mEnergyUsed=0} 12-17 02:01:00.004 483 530 I ProcessStatsService: Prepared write state in 1ms --------- beginning of crash 12-17 02:07:49.987 6684 23021 F libc : Fatal signal 6 (SIGABRT), code -6 in tid 23021 (Thread-700) 12-17 02:07:50.057 23094 23094 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 12-17 02:07:50.057 23094 23094 F DEBUG : Build fingerprint: 'Android/rk3288/rk3288:7.1.2/rk3288_v1.2.0.191107_A:userdebug/test-keys' 12-17 02:07:50.057 23094 23094 F DEBUG : Revision: '0' 12-17 02:07:50.057 23094 23094 F DEBUG : ABI: 'arm' 12-17 02:07:50.057 23094 23094 F DEBUG : pid: 6684, tid: 23021, name: Thread-700 >>> com.zhilai.xiaogu <<< 12-17 02:07:50.057 23094 23094 F DEBUG : signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr -------- 12-17 02:07:50.059 23094 23094 F DEBUG : Abort message: 'art/runtime/java_vm_ext.cc:470] JNI DETECTED ERROR IN APPLICATION: jmethodID was NULL' 12-17 02:07:50.060 23094 23094 F DEBUG : r0 00000000 r1 000059ed r2 00000006 r3 00000008 12-17 02:07:50.060 23094 23094 F DEBUG : r4 6557b978 r5 00000006 r6 6557b920 r7 0000010c 12-17 02:07:50.060 23094 23094 F DEBUG : r8 00000000 r9 0000000a sl 00000acf fp 87be5000 12-17 02:07:50.060 23094 23094 F DEBUG : ip 0000000b sp 6557b460 lr a48bc857 pc a48bf0c0 cpsr 60070010 12-17 02:07:50.079 23094 23094 F DEBUG : 12-17 02:07:50.079 23094 23094 F DEBUG : backtrace: 12-17 02:07:50.079 23094 23094 F DEBUG : #00 pc 0004a0c0 /system/lib/libc.so (tgkill+12) 12-17 02:07:50.079 23094 23094 F DEBUG : saki4510t#1 pc 00047853 /system/lib/libc.so (pthread_kill+34) 12-17 02:07:50.079 23094 23094 F DEBUG : saki4510t#2 pc 0001d8b5 /system/lib/libc.so (raise+10) 12-17 02:07:50.079 23094 23094 F DEBUG : saki4510t#3 pc 00019401 /system/lib/libc.so (__libc_android_abort+34) 12-17 02:07:50.080 23094 23094 F DEBUG : saki4510t#4 pc 00017048 /system/lib/libc.so (abort+4) 12-17 02:07:50.080 23094 23094 F DEBUG : saki4510t#5 pc 0031d8cd /system/lib/libart.so (_ZN3art7Runtime5AbortEPKc+328) 12-17 02:07:50.080 23094 23094 F DEBUG : saki4510t#6 pc 000b5503 /system/lib/libart.so (_ZN3art10LogMessageD2Ev+1134) 12-17 02:07:50.080 23094 23094 F DEBUG : saki4510t#7 pc 0023b3a1 /system/lib/libart.so (_ZN3art9JavaVMExt8JniAbortEPKcS2_+1584) 12-17 02:07:50.080 23094 23094 F DEBUG : saki4510t#8 pc 0023b5f7 /system/lib/libart.so (_ZN3art9JavaVMExt9JniAbortVEPKcS2_St9__va_list+58) 12-17 02:07:50.080 23094 23094 F DEBUG : saki4510t#9 pc 000cafc3 /system/lib/libart.so (_ZN3art11ScopedCheck6AbortFEPKcz+42) 12-17 02:07:50.080 23094 23094 F DEBUG : saki4510t#10 pc 000caa0f /system/lib/libart.so (_ZN3art11ScopedCheck13CheckMethodIDERNS_18ScopedObjectAccessEP10_jmethodID+118) 12-17 02:07:50.080 23094 23094 F DEBUG : saki4510t#11 pc 000c9be7 /system/lib/libart.so (_ZN3art11ScopedCheck22CheckPossibleHeapValueERNS_18ScopedObjectAccessEcNS_12JniValueTypeE+58) 12-17 02:07:50.080 23094 23094 F DEBUG : saki4510t#12 pc 000c9099 /system/lib/libart.so (_ZN3art11ScopedCheck5CheckERNS_18ScopedObjectAccessEbPKcPNS_12JniValueTypeE+800) 12-17 02:07:50.080 23094 23094 F DEBUG : saki4510t#13 pc 000cd247 /system/lib/libart.so (_ZN3art8CheckJNI13CheckCallArgsERNS_18ScopedObjectAccessERNS_11ScopedCheckEP7_JNIEnvP8_jobjectP7_jclassP10_jmethodIDNS_10InvokeTypeEPKNS_7VarArgsE+110) 12-17 02:07:50.080 23094 23094 F DEBUG : saki4510t#14 pc 000cc879 /system/lib/libart.so (_ZN3art8CheckJNI11CallMethodVEPKcP7_JNIEnvP8_jobjectP7_jclassP10_jmethodIDSt9__va_listNS_9Primitive4TypeENS_10InvokeTypeE+512) 12-17 02:07:50.080 23094 23094 F DEBUG : saki4510t#15 pc 000c2a71 /system/lib/libart.so (_ZN3art8CheckJNI15CallVoidMethodVEP7_JNIEnvP8_jobjectP10_jmethodIDSt9__va_list+44) 12-17 02:07:50.080 23094 23094 F DEBUG : saki4510t#16 pc 0000d474 /data/app/com.zhilai.xiaogu-1/lib/arm/libUVCCamera.so (_ZN7_JNIEnv14CallVoidMethodEP8_jobjectP10_jmethodIDz+52) 12-17 02:07:50.080 23094 23094 F DEBUG : saki4510t#17 pc 0000f518 /data/app/com.zhilai.xiaogu-1/lib/arm/libUVCCamera.so (_ZN10UVCPreview19do_capture_callbackEP7_JNIEnvP9uvc_frame+160) 12-17 02:07:50.080 23094 23094 F DEBUG : saki4510t#18 pc 0000f650 /data/app/com.zhilai.xiaogu-1/lib/arm/libUVCCamera.so (_ZN10UVCPreview20do_capture_idle_loopEP7_JNIEnv+56) 12-17 02:07:50.082 23094 23094 F DEBUG : saki4510t#19 pc 0000f7b0 /data/app/com.zhilai.xiaogu-1/lib/arm/libUVCCamera.so (_ZN10UVCPreview10do_captureEP7_JNIEnv+104) 12-17 02:07:50.082 23094 23094 F DEBUG : saki4510t#20 pc 0000f800 /data/app/com.zhilai.xiaogu-1/lib/arm/libUVCCamera.so (_ZN10UVCPreview19capture_thread_funcEPv+68) 12-17 02:07:50.082 23094 23094 F DEBUG : saki4510t#21 pc 00047323 /system/lib/libc.so (_ZL15__pthread_startPv+22) 12-17 02:07:50.082 23094 23094 F DEBUG : saki4510t#22 pc 00019e5d /system/lib/libc.so (__start_thread+6) 12-17 02:07:50.730 483 534 I BootReceiver: Copying /data/tombstones/tombstone_00 to DropBox (SYSTEM_TOMBSTONE) 12-17 02:07:50.735 483 23109 W ActivityManager: Force finishing activity com.zhilai.xiaogu/com.zhilai.boxsystem.MainActivity 12-17 02:07:50.863 483 662 I WindowManager: WIN DEATH: Window{80da2ea u0 com.zhilai.xiaogu/com.zhilai.boxsystem.MainActivity} 12-17 02:07:50.864 483 662 W WindowManager: Force-removing child win Window{ae3bfa2 u0 SurfaceView - com.zhilai.xiaogu/com.zhilai.boxsystem.MainActivity} from container Window{80da2ea u0 com.zhilai.xiaogu/com.zhilai.boxsystem.MainActivity} 12-17 02:07:50.865 483 20470 I ActivityManager: Process com.zhilai.xiaogu (pid 6684) has died 12-17 02:07:50.865 483 20470 D ActivityManager: cleanUpApplicationRecord -- 6684 12-17 02:07:50.870 483 23078 W WindowManager: Failed looking up window 12-17 02:07:50.870 483 23078 W WindowManager: java.lang.IllegalArgumentException: Requested window android.os.BinderProxy@b356f8d does not exist 12-17 02:07:50.870 483 23078 W WindowManager: at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:10024) 12-17 02:07:50.870 483 23078 W WindowManager: at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:10015) 12-17 02:07:50.870 483 23078 W WindowManager: at com.android.server.wm.WindowState$DeathRecipient.binderDied(WindowState.java:1821) 12-17 02:07:50.870 483 23078 W WindowManager: at android.os.BinderProxy.sendDeathNotice(Binder.java:688) 12-17 02:07:50.870 483 23078 I WindowManager: WIN DEATH: null 12-17 02:07:51.003 483 23120 I ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.android.quicksearchbox/.SearchActivity bnds=[378,217][471,337] (has extras)} from uid 10037 on display 0 c.====================================================> 12-17 18:31:02.404 221 287 E AudioHardwareTiny: pcm_open(PCM_CARD) failed: cannot open device '/dev/snd/pcmC0D0p': No such file or directory 12-17 18:31:02.410 21473 6140 E art : Request to unregister unattached thread <native thread without managed peer> 12-17 18:31:02.410 21473 6140 E art : native: #00 pc 003537b1 /system/lib/libart.so (_ZN3art15DumpNativeStackERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEEiP12BacktraceMapPKcPNS_9ArtMethodEPv+128) 12-17 18:31:02.410 21473 6140 E art : native: saki4510t#1 pc 00345295 /system/lib/libart.so (_ZN3art10ThreadList10UnregisterEPNS_6ThreadE+456) 12-17 18:31:02.410 21473 6140 E art : native: saki4510t#2 pc 0031d463 /system/lib/libart.so (_ZN3art7Runtime19DetachCurrentThreadEv+226) 12-17 18:31:02.410 21473 6140 E art : native: saki4510t#3 pc 0023e91b /system/lib/libart.so (_ZN3art3JII19DetachCurrentThreadEP7_JavaVM+42) 12-17 18:31:02.410 21473 6140 E art : native: saki4510t#4 pc 000d1cd3 /system/lib/libart.so (_ZN3art8CheckJII19DetachCurrentThreadEP7_JavaVM+66) 12-17 18:31:02.410 21473 6140 E art : native: saki4510t#5 pc 0000f048 /data/app/com.serenegiant.usbcameratest-2/lib/arm/libUVCCamera.so (_ZN10UVCPreview19capture_thread_funcEPv+84) 12-17 18:31:02.410 21473 6140 E art : native: saki4510t#6 pc 00047323 /system/lib/libc.so (_ZL15__pthread_startPv+22) 12-17 18:31:02.410 21473 6140 E art : native: saki4510t#7 pc 00019e5d /system/lib/libc.so (__start_thread+6) 12-17 18:31:02.410 21473 6140 E art : 12-17 18:31:02.410 21473 6140 F art : art/runtime/base/mutex.cc:488] Unexpected state_ 0 in unlock for logging lock d.====================================================> 12-17 19:55:20.520 221 287 D alsa_route: route_set_controls() set route 26 12-17 19:55:20.520 221 287 D alsa_route: route_set_controls() set route 27 12-17 19:55:20.520 221 287 D alsa_route: route_set_controls() set route 24 12-17 19:55:20.520 221 287 D alsa_route: route_set_controls() set route 0 12-17 19:55:20.520 221 287 E AudioHardwareTiny: pcm_open(PCM_CARD) failed: cannot open device '/dev/snd/pcmC0D0p': No such file or directory 12-17 19:55:20.524 9970 10013 D UsbDeviceConnectionJNI: close 12-17 19:55:20.525 9970 10013 I USBMonitor: name=/dev/bus/usb/002/003,desc=1018,busnum=2,devnum=3,rawDesc=[B@621f6cc 12-17 19:55:20.525 9970 10013 D xjx : --xjx-- onConnect 12-17 19:55:20.525 9970 10012 D xjx : --xjx-- onConnect run 12-17 19:55:20.527 9970 10012 D UsbDeviceConnectionJNI: close 12-17 19:55:20.527 9970 10012 I libusb/core: [10012*core.c:2085:libusb_init2]:libusb v1.0.19.10903 12-17 19:55:20.527 9970 10012 I libusb/usbfs: [10012*android_usbfs.c:504:op_init2]:start up hotplug event handler 12-17 19:55:20.527 9970 10012 I libusb/usbfs: [10012*android_usbfs.c:512:op_init2]:call android_scan_devices 12-17 19:55:20.528 9970 10012 E libusb/usbfs: [10012*android_usbfs.c:1331:android_initialize_device]:short descriptor read (0) 12-17 19:55:20.528 9970 10012 E libusb/usbfs: [10012*android_usbfs.c:1398:android_generate_device]:initialize_device failed: ret=-1 12-17 19:55:20.528 9970 10012 E libuvc/device: [10012*device.c:241:uvc_get_device_with_fd]:could not find specific device 12-17 19:55:20.528 9970 10012 E UVCCamera: [10012*UVCCamera.cpp:180:connect]:could not find camera:err=-4 --------- beginning of crash 12-17 19:55:20.528 9970 10012 E AndroidRuntime: FATAL EXCEPTION: BaseActivity 12-17 19:55:20.528 9970 10012 E AndroidRuntime: Process: com.serenegiant.usbcameratest, PID: 9970 12-17 19:55:20.528 9970 10012 E AndroidRuntime: java.lang.UnsupportedOperationException: open failed:result=-4 12-17 19:55:20.528 9970 10012 E AndroidRuntime: at com.serenegiant.usb.UVCCamera.open(UVCCamera.java:204) 12-17 19:55:20.528 9970 10012 E AndroidRuntime: at com.serenegiant.usbcameratest.MainActivity$2$1.run(MainActivity.java:157) 12-17 19:55:20.528 9970 10012 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:755) 12-17 19:55:20.528 9970 10012 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:95) 12-17 19:55:20.528 9970 10012 E AndroidRuntime: at android.os.Looper.loop(Looper.java:154) 12-17 19:55:20.528 9970 10012 E AndroidRuntime: at android.os.HandlerThread.run(HandlerThread.java:61) 12-17 19:55:20.531 487 802 W ActivityManager: Force finishing activity com.serenegiant.usbcameratest/.MainActivity 12-17 19:55:20.532 221 287 D AudioHardwareTiny: start_output_stream 12-17 19:55:20.533 221 287 D alsa_route: route_info->sound_card 0, route_info->devices 0 12-17 19:55:20.533 221 287 D alsa_route: route_set_controls() set route 26 12-17 19:55:20.533 221 287 D alsa_route: route_set_controls() set route 27 12-17 19:55:20.533 221 287 D alsa_route: route_set_controls() set route 24 12-17 19:55:20.533 221 287 D alsa_route: route_set_controls() set route 0 12-17 19:55:20.533 221 287 E AudioHardwareTiny: pcm_open(PCM_CARD) failed: cannot open device '/dev/snd/pcmC0D0p': No such file or directory 12-17 19:55:20.536 487 802 W ActivityManager: Force finishing activity com.serenegiant.usbcameratest/.MainActivity 12-17 19:55:20.536 487 802 W ActivityManager: Duplicate finish request for ActivityRecord{fd6e18 u0 com.serenegiant.usbcameratest/.MainActivity t89 f} 12-17 19:55:20.545 221 287 D AudioHardwareTiny: start_output_stream
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.