shiyinghan / UVCAndroid

Apache License 2.0
205 stars 54 forks source link

libUVCCamera: [2674*diag.c:83:uvc_perror]:failed start_streaming:I/O error (-1) #11

Open liujie136918 opened 2 years ago

liujie136918 commented 2 years ago

切换分辨率的时候有概率会黑屏,无法预览,看日志是I/O报错了,跟踪了下代码 是stream.c里面的uvc_start_streaming引起的,但是不知道怎么修改

2022-09-20 15:23:03.843 2486-2486/com.herohan.uvcapp W/.herohan.uvcap: Accessing hidden method Landroid/widget/PopupWindow;->setEpicenterBounds(Landroid/graphics/Rect;)V (light greylist, linking) 2022-09-20 15:23:03.847 2486-2486/com.herohan.uvcapp W/.herohan.uvcap: Accessing hidden method Landroid/widget/PopupWindow;->setTouchModal(Z)V (light greylist, linking) 2022-09-20 15:23:03.849 2486-2486/com.herohan.uvcapp W/.herohan.uvcap: Accessing hidden method Landroid/widget/PopupWindow;->setClipToScreenEnabled(Z)V (light greylist, reflection) 2022-09-20 15:23:03.958 2486-2565/com.herohan.uvcapp I/BufferQueueProducer: SurfaceTexture-0-2486-2 queueBuffer: slot 1 is dropped, handle=0x8b1ab4c0 2022-09-20 15:23:04.047 2486-2565/com.herohan.uvcapp I/BufferQueueProducer: SurfaceTexture-0-2486-2 queueBuffer: slot 2 is dropped, handle=0x8b1aba00 2022-09-20 15:23:04.154 2486-2486/com.herohan.uvcapp W/.herohan.uvcap: Accessing hidden field Landroid/widget/AbsListView;->mIsChildViewEnabled:Z (light greylist, reflection) 2022-09-20 15:23:04.160 2486-2565/com.herohan.uvcapp I/BufferQueueProducer: SurfaceTexture-0-2486-2 queueBuffer: slot 1 is dropped, handle=0x8b1ab4c0 2022-09-20 15:23:04.173 2486-2486/com.herohan.uvcapp D/ViewRootImpl[PopupWindow:72aa226]: hardware acceleration = true , fakeHwAccelerated = false, sRendererDisabled = false, forceHwAccelerated = false, sSystemRendererDisabled = false 2022-09-20 15:23:04.274 2486-2604/com.herohan.uvcapp I/libUVCCamera: [2604*UVCPreview.cpp:115:get_frame]:allocate new frame 2022-09-20 15:23:04.288 2486-2565/com.herohan.uvcapp I/BufferQueueProducer: SurfaceTexture-0-2486-2 queueBuffer: slot 2 is dropped, handle=0x8b1aba00 2022-09-20 15:23:04.321 2486-2486/com.herohan.uvcapp I/Choreographer: Skipped 32 frames! The application may be doing too much work on its main thread. 2022-09-20 15:23:04.355 2486-2486/com.herohan.uvcapp D/Surface: Surface::allocateBuffers(this=0x89a7a800) 2022-09-20 15:23:04.355 2486-2518/com.herohan.uvcapp D/Surface: Surface::connect(this=0x89a7a800,api=1) 2022-09-20 15:23:04.383 2486-2565/com.herohan.uvcapp I/BufferQueueProducer: SurfaceTexture-0-2486-2 queueBuffer: slot 1 is dropped, handle=0x8b1ab4c0 2022-09-20 15:23:04.459 2486-2565/com.herohan.uvcapp I/BufferQueueProducer: SurfaceTexture-0-2486-2 queueBuffer: slot 2 is dropped, handle=0x8b1aba00 2022-09-20 15:23:04.553 2486-2603/com.herohan.uvcapp I/BufferQueueProducer: SurfaceTexture-2-2486-1 queueBuffer: fps=9.91 dur=1009.53 max=129.07 min=79.36 2022-09-20 15:23:04.558 2486-2565/com.herohan.uvcapp I/BufferQueueProducer: SurfaceTexture-0-2486-2 queueBuffer: slot 1 is dropped, handle=0x8b1ab4c0 2022-09-20 15:23:04.661 2486-2565/com.herohan.uvcapp I/BufferQueueProducer: SurfaceTexture-0-2486-2 queueBuffer: slot 2 is dropped, handle=0x8b1aba00 2022-09-20 15:23:04.661 2486-2565/com.herohan.uvcapp I/BufferQueueProducer: SurfaceTexture-0-2486-2 queueBuffer: fps=9.88 dur=1012.65 max=128.83 min=75.56 2022-09-20 15:23:04.755 2486-2565/com.herohan.uvcapp I/BufferQueueProducer: SurfaceTexture-0-2486-2 queueBuffer: slot 1 is dropped, handle=0x8b1ab4c0 2022-09-20 15:23:05.645 2486-2603/com.herohan.uvcapp I/BufferQueueProducer: SurfaceTexture-2-2486-1 queueBuffer: fps=10.07 dur=1091.82 max=114.09 min=90.10 2022-09-20 15:23:05.747 2486-2565/com.herohan.uvcapp I/BufferQueueProducer: SurfaceTexture-0-2486-2 queueBuffer: fps=10.13 dur=1085.92 max=112.26 min=86.99 2022-09-20 15:23:05.914 2486-2486/com.herohan.uvcapp D/CameraHelper: getSupportedFormatList: 2022-09-20 15:23:05.916 2486-2486/com.herohan.uvcapp D/CameraHelper: getPreviewSize: 2022-09-20 15:23:06.063 2486-2565/com.herohan.uvcapp I/BufferQueueProducer: SurfaceTexture-0-2486-2 queueBuffer: slot 2 is dropped, handle=0x8b1aba00 2022-09-20 15:23:06.161 2486-2565/com.herohan.uvcapp I/BufferQueueProducer: SurfaceTexture-0-2486-2 queueBuffer: slot 1 is dropped, handle=0x8b1ab4c0 2022-09-20 15:23:06.255 2486-2565/com.herohan.uvcapp I/BufferQueueProducer: SurfaceTexture-0-2486-2 queueBuffer: slot 2 is dropped, handle=0x8b1aba00 2022-09-20 15:23:06.361 2486-2486/com.herohan.uvcapp D/ViewRootImpl[MainActivity]: hardware acceleration = true , fakeHwAccelerated = false, sRendererDisabled = false, forceHwAccelerated = false, sSystemRendererDisabled = false 2022-09-20 15:23:06.363 2486-2565/com.herohan.uvcapp I/BufferQueueProducer: SurfaceTexture-0-2486-2 queueBuffer: slot 1 is dropped, handle=0x8b1ab4c0 2022-09-20 15:23:06.464 2486-2565/com.herohan.uvcapp I/BufferQueueProducer: SurfaceTexture-0-2486-2 queueBuffer: slot 2 is dropped, handle=0x8b1aba00 2022-09-20 15:23:06.559 2486-2565/com.herohan.uvcapp I/BufferQueueProducer: SurfaceTexture-0-2486-2 queueBuffer: slot 1 is dropped, handle=0x8b1ab4c0 2022-09-20 15:23:06.656 2486-2603/com.herohan.uvcapp I/BufferQueueProducer: SurfaceTexture-2-2486-1 queueBuffer: fps=9.89 dur=1010.74 max=108.98 min=94.38 2022-09-20 15:23:06.659 2486-2565/com.herohan.uvcapp I/BufferQueueProducer: SurfaceTexture-0-2486-2 queueBuffer: slot 2 is dropped, handle=0x8b1aba00 2022-09-20 15:23:06.757 2486-2565/com.herohan.uvcapp I/BufferQueueProducer: SurfaceTexture-0-2486-2 queueBuffer: slot 1 is dropped, handle=0x8b1ab4c0 2022-09-20 15:23:06.757 2486-2565/com.herohan.uvcapp I/BufferQueueProducer: SurfaceTexture-0-2486-2 queueBuffer: fps=9.90 dur=1009.68 max=109.84 min=92.89 2022-09-20 15:23:06.800 2486-2518/com.herohan.uvcapp D/Surface: Surface::connect(this=0x88523000,api=1) 2022-09-20 15:23:06.800 2486-2486/com.herohan.uvcapp D/Surface: Surface::allocateBuffers(this=0x88523000) 2022-09-20 15:23:06.880 2486-2565/com.herohan.uvcapp I/BufferQueueProducer: SurfaceTexture-0-2486-2 queueBuffer: slot 2 is dropped, handle=0x8b1aba00 2022-09-20 15:23:06.967 2486-2565/com.herohan.uvcapp I/BufferQueueProducer: SurfaceTexture-0-2486-2 queueBuffer: slot 1 is dropped, handle=0x8b1ab4c0 2022-09-20 15:23:07.033 2486-2486/com.herohan.uvcapp I/Choreographer: Skipped 40 frames! The application may be doing too much work on its main thread. 2022-09-20 15:23:07.054 2486-2518/com.herohan.uvcapp D/Surface: Surface::disconnect(this=0x89a7a800,api=1) 2022-09-20 15:23:07.057 2486-2486/com.herohan.uvcapp D/View: [Warning] assignParent to null: this = android.widget.PopupWindow$PopupDecorView{4ceee0a V.E...... R.....ID 0,0-261,404} 2022-09-20 15:23:07.064 2486-2565/com.herohan.uvcapp I/BufferQueueProducer: SurfaceTexture-0-2486-2 queueBuffer: slot 2 is dropped, handle=0x8b1aba00 2022-09-20 15:23:07.159 2486-2565/com.herohan.uvcapp I/BufferQueueProducer: SurfaceTexture-0-2486-2 queueBuffer: slot 1 is dropped, handle=0x8b1ab4c0 2022-09-20 15:23:07.183 2486-2518/com.herohan.uvcapp I/OpenGLRenderer: Davey! duration=788ms; Flags=0, IntendedVsync=123259384121, Vsync=123886245081, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=123901484213, AnimationStart=123901563367, PerformTraversalsStart=123935771755, DrawStart=123936465909, SyncQueued=124039469996, SyncStart=124041825073, IssueDrawCommandsStart=124042069919, SwapBuffers=124049620459, FrameCompleted=124050731997, DequeueBufferDuration=0, QueueBufferDuration=549000, 2022-09-20 15:23:07.197 2486-2518/com.herohan.uvcapp I/OpenGLRenderer: Davey! duration=803ms; Flags=0, IntendedVsync=123259384121, Vsync=123886245081, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=123901484213, AnimationStart=123901563367, PerformTraversalsStart=123935771755, DrawStart=124051774536, SyncQueued=124053208228, SyncStart=124054824228, IssueDrawCommandsStart=124054966536, SwapBuffers=124058186998, FrameCompleted=124064614922, DequeueBufferDuration=0, QueueBufferDuration=4409000, 2022-09-20 15:23:07.396 2486-2565/com.herohan.uvcapp I/BufferQueueProducer: SurfaceTexture-0-2486-2 queueBuffer: slot 1 is dropped, handle=0x8b1ab4c0 2022-09-20 15:23:07.480 2486-2565/com.herohan.uvcapp I/BufferQueueProducer: SurfaceTexture-0-2486-2 queueBuffer: slot 0 is dropped, handle=0x8b1aaf80 2022-09-20 15:23:07.748 2486-2603/com.herohan.uvcapp I/BufferQueueProducer: SurfaceTexture-2-2486-1 queueBuffer: fps=10.07 dur=1092.38 max=130.53 min=81.67 2022-09-20 15:23:07.854 2486-2565/com.herohan.uvcapp I/BufferQueueProducer: SurfaceTexture-0-2486-2 queueBuffer: fps=10.03 dur=1096.69 max=130.21 min=77.58 2022-09-20 15:23:08.716 2486-2486/com.herohan.uvcapp D/ViewRootImpl[PopupWindow:dd1c158]: hardware acceleration = true , fakeHwAccelerated = false, sRendererDisabled = false, forceHwAccelerated = false, sSystemRendererDisabled = false 2022-09-20 15:23:08.761 2486-2603/com.herohan.uvcapp I/BufferQueueProducer: SurfaceTexture-2-2486-1 queueBuffer: fps=9.88 dur=1012.30 max=117.97 min=85.87 2022-09-20 15:23:08.765 2486-2565/com.herohan.uvcapp I/BufferQueueProducer: SurfaceTexture-0-2486-2 queueBuffer: slot 1 is dropped, handle=0x8b1ab4c0 2022-09-20 15:23:08.781 2486-2518/com.herohan.uvcapp D/Surface: Surface::connect(this=0x875cc800,api=1) 2022-09-20 15:23:08.781 2486-2486/com.herohan.uvcapp D/Surface: Surface::allocateBuffers(this=0x875cc800) 2022-09-20 15:23:08.871 2486-2565/com.herohan.uvcapp I/BufferQueueProducer: SurfaceTexture-0-2486-2 queueBuffer: slot 0 is dropped, handle=0x8b1aaf80 2022-09-20 15:23:08.872 2486-2565/com.herohan.uvcapp I/BufferQueueProducer: SurfaceTexture-0-2486-2 queueBuffer: fps=9.82 dur=1017.88 max=120.93 min=85.00 2022-09-20 15:23:09.874 2486-2603/com.herohan.uvcapp I/BufferQueueProducer: SurfaceTexture-2-2486-1 queueBuffer: fps=9.88 dur=1113.15 max=118.62 min=87.38 2022-09-20 15:23:09.881 2486-2565/com.herohan.uvcapp I/BufferQueueProducer: SurfaceTexture-0-2486-2 queueBuffer: fps=9.90 dur=1009.68 max=123.15 min=86.71 2022-09-20 15:23:09.982 2486-2565/com.herohan.uvcapp I/BufferQueueProducer: SurfaceTexture-0-2486-2 queueBuffer: slot 0 is dropped, handle=0x8b1aaf80 2022-09-20 15:23:10.172 2486-2565/com.herohan.uvcapp I/BufferQueueProducer: SurfaceTexture-0-2486-2 queueBuffer: slot 0 is dropped, handle=0x8b1aaf80 2022-09-20 15:23:10.199 2486-2518/com.herohan.uvcapp D/Surface: Surface::disconnect(this=0x875cc800,api=1) 2022-09-20 15:23:10.202 2486-2486/com.herohan.uvcapp D/View: [Warning] assignParent to null: this = android.widget.PopupWindow$PopupDecorView{84d9b04 V.E...... R.....ID 0,0-470,256} 2022-09-20 15:23:10.952 2486-2603/com.herohan.uvcapp I/BufferQueueProducer: SurfaceTexture-2-2486-1 queueBuffer: fps=10.21 dur=1077.75 max=120.49 min=78.59 2022-09-20 15:23:10.955 2486-2565/com.herohan.uvcapp I/BufferQueueProducer: SurfaceTexture-0-2486-2 queueBuffer: fps=10.24 dur=1074.05 max=110.35 min=78.52 2022-09-20 15:23:11.952 2486-2603/com.herohan.uvcapp I/BufferQueueProducer: SurfaceTexture-2-2486-1 queueBuffer: fps=9.99 dur=1000.84 max=106.26 min=94.26 2022-09-20 15:23:11.956 2486-2565/com.herohan.uvcapp I/BufferQueueProducer: SurfaceTexture-0-2486-2 queueBuffer: fps=9.99 dur=1000.66 max=105.72 min=94.28 2022-09-20 15:23:12.901 2486-2486/com.herohan.uvcapp D/CameraHelper: isRecording: 2022-09-20 15:23:12.902 2486-2486/com.herohan.uvcapp D/CameraHelper: stopPreview: 2022-09-20 15:23:12.902 2486-2515/com.herohan.uvcapp D/CameraConnectionService: CameraConnection#stopPreview: 2022-09-20 15:23:12.904 2486-2486/com.herohan.uvcapp D/CameraHelper: setPreviewSize:Size(640x480@25,type:7) 2022-09-20 15:23:12.905 2486-2486/com.herohan.uvcapp D/CameraHelper: startPreview: 2022-09-20 15:23:12.905 2486-2515/com.herohan.uvcapp D/CameraInternal: stopPreview: 2022-09-20 15:23:12.983 2486-2603/com.herohan.uvcapp I/BufferQueueProducer: SurfaceTexture-2-2486-1 queueBuffer: fps=9.71 dur=1030.29 max=128.20 min=97.92 2022-09-20 15:23:12.994 2486-2565/com.herohan.uvcapp I/BufferQueueProducer: SurfaceTexture-0-2486-2 queueBuffer: fps=9.64 dur=1037.63 max=136.30 min=97.90 2022-09-20 15:23:13.001 2486-2515/com.herohan.uvcapp D/CameraConnectionService: CameraConnection#setPreviewSize: 2022-09-20 15:23:13.003 2486-2565/com.herohan.uvcapp I/BufferQueueProducer: SurfaceTexture-0-2486-2 queueBuffer: slot 0 is dropped, handle=0x8b1aaf80 2022-09-20 15:23:13.003 2486-2515/com.herohan.uvcapp D/CameraInternal: setPreviewSize:Size(640x480@25,type:7) 2022-09-20 15:23:13.017 2486-2515/com.herohan.uvcapp W/MediaAnalyticsItem: Unable to record: [1:codec:0:-1::0:-1:1:0:8:android.media.mediacodec.codec=OMX.MTK.VIDEO.ENCODER.AVC:android.media.mediacodec.mode=video:android.media.mediacodec.secure=0:android.media.mediacodec.encoder=1:android.media.mediacodec.width=1280:android.media.mediacodec.height=720:android.media.mediacodec.rotation-degrees=0:android.media.mediacodec.mime=video/avc:] [forcenew=0] 2022-09-20 15:23:13.021 2486-2515/com.herohan.uvcapp W/MediaAnalyticsItem: Unable to record: [1:codec:0:-1::0:-1:1:0:5:android.media.mediacodec.codec=OMX.google.aac.encoder:android.media.mediacodec.mode=audio:android.media.mediacodec.secure=0:android.media.mediacodec.encoder=1:android.media.mediacodec.mime=audio/mp4a-latm:] [forcenew=0] 2022-09-20 15:23:13.026 2486-2649/com.herohan.uvcapp I/OMXClient: IOmx service obtained 2022-09-20 15:23:13.038 2486-2656/com.herohan.uvcapp I/OMXClient: IOmx service obtained 2022-09-20 15:23:13.540 2486-2649/com.herohan.uvcapp I/OMXClient: IOmx service obtained 2022-09-20 15:23:13.549 2486-2649/com.herohan.uvcapp W/OMXUtils: do not know color format 0x7f000200 = 2130706944 2022-09-20 15:23:13.549 2486-2649/com.herohan.uvcapp W/OMXUtils: do not know color format 0x7f000789 = 2130708361 2022-09-20 15:23:13.554 2486-2649/com.herohan.uvcapp I/ACodec: setupAVCEncoderParameters with [profile: Baseline] [level: Level31] 2022-09-20 15:23:13.555 2486-2649/com.herohan.uvcapp I/ACodec: [OMX.MTK.VIDEO.ENCODER.AVC] cannot encode color aspects. Ignoring. 2022-09-20 15:23:13.555 2486-2649/com.herohan.uvcapp I/ACodec: [OMX.MTK.VIDEO.ENCODER.AVC] cannot encode HDR static metadata. Ignoring. 2022-09-20 15:23:13.555 2486-2649/com.herohan.uvcapp I/ACodec: setupVideoEncoder succeeded 2022-09-20 15:23:13.556 2486-2649/com.herohan.uvcapp W/OMXUtils: do not know color format 0x7f000789 = 2130708361 2022-09-20 15:23:13.568 2486-2656/com.herohan.uvcapp I/OMXClient: IOmx service obtained 2022-09-20 15:23:13.574 2486-2515/com.herohan.uvcapp D/AudioRecord: stop: 0x8a5fce00 2022-09-20 15:23:13.574 2486-2515/com.herohan.uvcapp I/chatty: uid=10053(com.herohan.uvcapp) CameraHelper identical 1 line 2022-09-20 15:23:13.574 2486-2515/com.herohan.uvcapp D/AudioRecord: stop: 0x8a5fce00 2022-09-20 15:23:13.584 2486-2515/com.herohan.uvcapp W/MediaAnalyticsItem: Unable to record: [1:audiorecord:0:-1::0:-1:1:0:8:android.media.audiorecord.latency=80:android.media.audiorecord.samplerate=8000:android.media.audiorecord.channels=1:android.media.audiorecord.encoding=AUDIO_FORMAT_PCM_16_BIT:android.media.audiorecord.source=AUDIO_SOURCE_CAMCORDER:android.media.audiorecord.durationMs=0:android.media.audiorecord.n=0:android.media.audiorecord.createdMs=1663658538006:] [forcenew=0] 2022-09-20 15:23:13.585 2486-2515/com.herohan.uvcapp D/AudioRecord: set(): 0x8a5fce00, inputSource 5, sampleRate 8000, format 0x1, channelMask 0x10, frameCount 640, notificationFrames 0, sessionId 0, transferType 0, flags 0, opPackageName com.herohan.uvcapp uid -1, pid -1 2022-09-20 15:23:13.597 2486-2515/com.herohan.uvcapp D/AudioRecord: openRecord_l: 0x8a5fce00, mCblk = 0x88bff000 2022-09-20 15:23:13.598 2486-2515/com.herohan.uvcapp I/VideoCapture: source: 5 audioSampleRate: 8000 channelConfig: 16 audioFormat: 2 bufferSize: 640 2022-09-20 15:23:13.598 2486-2515/com.herohan.uvcapp D/CameraConnectionService: CameraConnection#startPreview: 2022-09-20 15:23:13.598 2486-2515/com.herohan.uvcapp D/CameraInternal: startPreview: 2022-09-20 15:23:13.598 2486-2515/com.herohan.uvcapp D/CameraInternal: updateRendererSize: 2022-09-20 15:23:13.600 2486-2565/com.herohan.uvcapp D/Surface: Surface::disconnect(this=0x8bab8800,api=2) 2022-09-20 15:23:13.600 2486-2565/com.herohan.uvcapp I/BufferQueueProducer: SurfaceTexture-2-2486-1 disconnect(P): api 2 2022-09-20 15:23:13.600 2486-2565/com.herohan.uvcapp I/BufferQueueConsumer: SurfaceTexture-2-2486-1 getReleasedBuffers: returning mask 0xffffffffffffffff 2022-09-20 15:23:13.602 2486-2565/com.herohan.uvcapp I/BufferQueueConsumer: SurfaceTexture-2-2486-1 disconnect(C) 2022-09-20 15:23:13.604 2486-2565/com.herohan.uvcapp I/BufferQueue: unnamed-2486-3 BufferQueue core=(2486:com.herohan.uvcapp) 2022-09-20 15:23:13.605 2486-2565/com.herohan.uvcapp I/BufferQueueConsumer: unnamed-2486-3 connect(C): consumer=(2486:com.herohan.uvcapp) controlledByApp=true 2022-09-20 15:23:13.605 2486-2565/com.herohan.uvcapp I/BufferQueueConsumer: unnamed-2486-3 setConsumerName: unnamed-2486-3 2022-09-20 15:23:13.605 2486-2565/com.herohan.uvcapp I/BufferQueueConsumer: SurfaceTexture-3-2486-3 setConsumerName: SurfaceTexture-3-2486-3 2022-09-20 15:23:13.605 2486-2565/com.herohan.uvcapp I/BufferQueueConsumer: SurfaceTexture-3-2486-3 setDefaultBufferSize: width=640 height=480 2022-09-20 15:23:13.606 2486-2515/com.herohan.uvcapp D/Surface: Surface::setBuffersUserDimensions(this=0x8bab8800,w=1280,h=720) 2022-09-20 15:23:13.613 2486-2674/com.herohan.uvcapp I/libUVCCamera: [2674UVCPreview.cpp:531:prepare_preview]:frameSize=(640,480)@MJPEG 2022-09-20 15:23:13.613 2486-2674/com.herohan.uvcapp D/Surface: Surface::setBuffersUserDimensions(this=0x8bab8800,w=640,h=480) 2022-09-20 15:23:13.616 2486-2674/com.herohan.uvcapp W/libUVCCamera: [2674diag.c:83:uvc_perror]:failed start_streaming:I/O error (-1) 2022-09-20 15:23:13.626 2486-2565/com.herohan.uvcapp D/EGLBase14: EGLContext created, client version 3 2022-09-20 15:23:14.392 2486-2518/com.herohan.uvcapp D/Surface: Surface::disconnect(this=0x88523000,api=1) 2022-09-20 15:23:14.394 2486-2486/com.herohan.uvcapp D/View: [Warning] assignParent to null: this = DecorView@e2a601e[MainActivity] 2022-09-20 15:23:14.408 2486-2486/com.herohan.uvcapp I/Choreographer: Skipped 96 frames! The application may be doing too much work on its main thread. 2022-09-20 15:23:14.478 2486-2497/com.herohan.uvcapp I/.herohan.uvcap: Background concurrent copying GC freed 7272(722KB) AllocSpace objects, 2(104KB) LOS objects, 25% free, 1909KB/2MB, paused 348us total 1.405s 2022-09-20 15:23:14.484 2486-2486/com.herohan.uvcapp I/BufferQueueConsumer: SurfaceTexture-0-2486-2 setDefaultBufferSize: width=585 height=439 2022-09-20 15:23:14.525 2486-2495/com.herohan.uvcapp I/BufferQueue: SurfaceTexture-2-2486-1 ~BufferQueueCore 2022-09-20 15:23:16.041 2486-2649/com.herohan.uvcapp W/AMessage: failed to deliver message as target handler 11 is gone. 2022-09-20 15:23:16.563 2486-2656/com.herohan.uvcapp W/AMessage: failed to deliver message as target handler 14 is gone. 2022-09-20 15:23:31.151 2486-2497/com.herohan.uvcapp I/.herohan.uvcap: Background concurrent copying GC freed 12676(545KB) AllocSpace objects, 0(0B) LOS objects, 24% free, 1891KB/2MB, paused 13.229ms total 53.911ms

liujie136918 commented 2 years ago

详细跟踪了下 在sync.c-->libusb_control_transfer-->memcpy(data, libusb_control_transfer_get_data(transfer),transfer->actual_length) 这里出现了问题

shiyinghan commented 2 years ago

image

shiyinghan commented 2 years ago

你可以按照上面那样改一下Application.mk文件,可以得到更详细的Logcat日志。

shiyinghan commented 2 years ago

这个切换分辨率,需要先把原来建立的流传输给停止掉,然后和UVC设备协商好新的分辨率,最后重新开始新的流传输。我感觉可能是原来的流传输没有停止成功,后面的切换也就没办法进行。

liujie136918 commented 2 years ago

log_error1.txt

这个是日志,麻烦大佬帮忙看看,感谢!