aws-samples / amazon-chime-react-native-demo

A React Native demo application for Android and iOS using the Amazon Chime SDK.
MIT No Attribution
102 stars 24 forks source link

I can access to camera after start meeting #133

Closed MjdBh closed 2 years ago

MjdBh commented 2 years ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Logs If applicable, add logs from logcat to help explain your problem.

02-22 23:34:43.159 7219 7958 I Logging : HardwareVideoEncoder: Config frame generated. Offset: 0. Size: 25 02-22 23:34:43.162 7219 7958 I Logging : HardwareVideoEncoder: Sync frame generated 02-22 23:34:43.162 7219 7958 I Logging : HardwareVideoEncoder: Prepending config frame of size 25 to output buffer with offset 0, size 31603 02-22 23:34:43.164 7219 7928 I MediaCodec: setCodecState state : 1 02-22 23:34:43.165 7219 7943 I MediaCodec: setCodecState state : 1 02-22 23:34:43.166 4945 5714 I Camera2ClientBase: Closed Camera 1. Client was: com.example (PID 7219, UID 10314) 02-22 23:34:43.166 8445 8480 I DrmMediaResourceHelper: resource type: 2,,,isSecured : falseIsEncoder : truegetCodecState : 0getpid : 7219 02-22 23:34:43.166 8445 8480 I DrmMediaResourceHelper: resource type: 2,,,isSecured : falseIsEncoder : truegetCodecState : 1getpid : 7219 02-22 23:34:43.168 8445 8480 I DrmMediaResourceHelper: resource type: 2,,,isSecured : falseIsEncoder : truegetCodecState : 1getpid : 7219 02-22 23:34:43.168 8445 8480 I DrmMediaResourceHelper: resource type: 2,,,isSecured : falseIsEncoder : truegetCodecState : 1getpid : 7219 02-22 23:34:43.393 7219 7958 I Logging : HardwareVideoEncoder: Releasing MediaCodec on output thread 02-22 23:34:43.396 7219 7944 I ACodec : [OMX.Exynos.AVC.Encoder] Now Executing->Idle 02-22 23:34:43.428 7219 7944 I ACodec : [OMX.Exynos.AVC.Encoder] Now Idle->Loaded 02-22 23:34:43.434 7219 7944 I ACodec : [OMX.Exynos.AVC.Encoder] Now Loaded 02-22 23:34:43.434 7219 7944 I ACodec : [OMX.Exynos.AVC.Encoder] Now kWhatShutdownCompleted event : 8312 02-22 23:34:43.439 7219 7958 I Logging : HardwareVideoEncoder: Release on output thread done 02-22 23:34:43.451 7219 7944 I ACodec : [OMX.Exynos.AVC.Encoder] Now uninitialized 02-22 23:34:43.452 7219 7944 I ACodec : [] Now kWhatShutdownCompleted event : 8312 02-22 23:34:43.452 7219 7943 I MediaCodec: Codec shutdown complete 02-22 23:34:43.452 4964 29300 I ResourceManagerService: removeResourceInfo pid 7219, removed 691200 (width 720 height 960) remained 1234391250, isLowPriority 0, remained hw codec count 1 02-22 23:34:43.453 4964 29300 I ResourceManagerService: getMediaResourceInfo (PID : 7219, clientID : 532211628448, non-secure-codec/video-codec:[]:1, 368x480 (fps:15) - sw codec : no, encoder : yes) 02-22 23:34:43.484 7219 7455 I ChimeReactNativeSDKDemoManager: Called startMeeting 02-22 23:34:43.487 7219 7765 I DefaultVideoClientController: Stopping video client 02-22 23:34:43.487 7219 7455 I ChimeReactNativeSDKDemoManager: meetingInfo.getString(KEY_MEETING_ID)9fdc76cc-f85b-4099-b26d-f6bb6f9b0706 02-22 23:34:43.487 7219 7941 I Logging : HardwareVideoEncoder: Releasing MediaCodec on output thread 02-22 23:34:43.488 7219 7455 I ChimeReactNativeSDKDemoManager: { NativeMap: {"AudioHostUrl":"1a2adeb11ea3c55f06b2e9e3808effbe.k.m2.cc1.app.chime.aws:3478","AudioFallbackUrl":"wss://haxrp.m2.cc1.app.chime.aws:443/calls/9fdc76cc-f85b-4099-b26d-f6bb6f9b0706","EventIngestionUrl":null,"ScreenDataUrl":"wss://bitpw.m2.cc1.app.chime.aws:443/v2/screen/9fdc76cc-f85b-4099-b26d-f6bb6f9b0706","ScreenSharingUrl":"wss://bitpw.m2.cc1.app.chime.aws:443/v2/screen/9fdc76cc-f85b-4099-b26d-f6bb6f9b0706","ScreenViewingUrl":"wss://bitpw.m2.cc1.app.chime.aws:443/ws/connect?passcode=null&viewer_uuid=null&X-BitHub-Call-Id=9fdc76cc-f85b-4099-b26d-f6bb6f9b0706","SignalingUrl":"wss://signal.m2.cc1.app.chime.aws/control/9fdc76cc-f85b-4099-b26d-f6bb6f9b0706","TurnControlUrl":"https://ccp.cp.ue1.app.chime.aws/v2/turn_sessions"} } 02-22 23:34:43.489 7219 7930 I ACodec : [OMX.Exynos.AVC.Encoder] Now Executing->Idle 02-22 23:34:43.498 7219 7711 D com.example: PlayerBase::stop() from IPlayer 02-22 23:34:43.502 7219 7711 D AudioTrack: stop(10407): called with 35200 frames delivered 02-22 23:34:43.503 7219 7455 I audioclient_jni: [audio client] INTIALIZED 02-22 23:34:43.515 5259 5259 D MediaSessionService: Audio playback is changed, config=AudioPlaybackConfiguration piid:65743 type:OpenSL ES AudioPlayer (Buffer Queue) u/pid:10314/7219 state:stopped attr:AudioAttributes: usage=USAGE_VOICE_COMMUNICATION content=CONTENT_TYPE_UNKNOWN flags=0x0 tags= bundle=null, removed=false 02-22 23:34:43.519 7219 7455 I AudioClient: SPK LAT: 81.0(ms) MIC LAT: 40.0(ms) 02-22 23:34:43.520 7219 7930 I ACodec : [OMX.Exynos.AVC.Encoder] Now Idle->Loaded 02-22 23:34:43.520 7219 7930 I ACodec : [OMX.Exynos.AVC.Encoder] Now Loaded 02-22 23:34:43.520 7219 7930 I ACodec : [OMX.Exynos.AVC.Encoder] Now kWhatShutdownCompleted event : 8312 02-22 23:34:43.522 7219 7941 I Logging : HardwareVideoEncoder: Release on output thread done 02-22 23:34:43.523 7219 7925 I Logging : HardwareVideoEncoder: initEncode: 368 x 480. @ 187kbps. Fps: 15 Use surface mode: false 02-22 23:34:43.525 7219 7925 D MediaCodec: MediaCodec::reclaim(0x7be0733a00) OMX.Exynos.AVC.Encoder 02-22 23:34:43.526 7219 7735 D DefaultVideoClientObserver: cameraSendIsAvailable: true 02-22 23:34:43.529 7219 7930 I ACodec : [OMX.Exynos.AVC.Encoder] Now uninitialized 02-22 23:34:43.529 7219 7930 I ACodec : [] Now kWhatShutdownCompleted event : 8312 02-22 23:34:43.529 7219 7928 I MediaCodec: Codec shutdown complete 02-22 23:34:43.530 7219 7455 I AudioClient: SPK LAT: 80.166664(ms) MIC LAT: 40.0(ms) NATIVE SR: 48000 02-22 23:34:43.532 4964 5272 I ResourceManagerService: removeResourceInfo pid 7219, removed 176640 (width 368 height 480) remained 1234567890, isLowPriority 0, remained hw codec count 0 02-22 23:34:43.533 7219 7925 D MediaCodec: MediaCodec looper is gone, skip reclaim 02-22 23:34:43.543 7219 7925 I ACodec : [] Now uninitialized 02-22 23:34:43.545 7219 7991 I ACodec : [] onAllocateComponent 02-22 23:34:43.549 7219 7991 I OMXClient: IOmx service obtained 02-22 23:34:43.555 5259 12249 V AS.AudioService: setModeInt(mode=3, pid=7219, uid=10314, caller=com.example) 02-22 23:34:43.566 7219 7991 I ACodec : [OMX.Exynos.AVC.Encoder] Now Loaded 02-22 23:34:43.568 7219 7925 I Logging : HardwareVideoEncoder: Format: {color-format=19, i-frame-interval=20, mime=video/avc, width=368, bitrate-mode=2, bitrate=187000, frame-rate=15, height=480} 02-22 23:34:43.573 7219 7991 I ACodec : app-pid(7219) 02-22 23:34:43.575 7219 7991 I ACodec : app-name : com.example 02-22 23:34:43.576 7219 7991 I ACodec : setupAVCEncoderParameters with [profile: Baseline] [level: Level21] 02-22 23:34:43.576 7219 7991 I ACodec : Enable Perceptual Video Coding 02-22 23:34:43.577 7219 7991 I ACodec : Success set VideoMinQP(5/5/5) VideoMaxQP(50/50/50) 02-22 23:34:43.577 7219 7991 I ACodec : reconfigEncoder4OtherApps 02-22 23:34:43.579 7219 7991 I ACodec : [OMX.Exynos.AVC.Encoder] cannot encode HDR static metadata. Ignoring. 02-22 23:34:43.579 7219 7991 I ACodec : setupVideoEncoder succeeded 02-22 23:34:43.579 7219 7991 I ACodec : [OMX.Exynos.AVC.Encoder] configure, AMessage : AMessage(what = 'conf', target = 7) = { 02-22 23:34:43.579 7219 7991 I ACodec : int32_t color-format = 19 02-22 23:34:43.579 7219 7991 I ACodec : int32_t i-frame-interval = 20 02-22 23:34:43.579 7219 7991 I ACodec : string mime = "video/avc" 02-22 23:34:43.579 7219 7991 I ACodec : int32_t width = 368 02-22 23:34:43.579 7219 7991 I ACodec : int32_t bitrate-mode = 2 02-22 23:34:43.579 7219 7991 I ACodec : int32_t bitrate = 187000 02-22 23:34:43.579 7219 7991 I ACodec : int32_t frame-rate = 15 02-22 23:34:43.579 7219 7991 I ACodec : int32_t height = 480 02-22 23:34:43.579 7219 7991 I ACodec : int32_t flags = 1 02-22 23:34:43.579 7219 7991 I ACodec : int32_t encoder = 1 02-22 23:34:43.579 7219 7991 I ACodec : } 02-22 23:34:43.597 7219 7455 I ChimeReactNativeSDKDemoManager: audioVideo.addAudioVideoObserver 02-22 23:34:43.597 7219 7455 W DefaultAudioClientController: Current audio client state STARTED is invalid to start audio, ignoring 02-22 23:34:43.600 7219 7455 I DefaultVideoClientController: Initializing video client 02-22 23:34:43.601 7219 7455 I DefaultVideoClientController: Starting video client 02-22 23:34:43.601 7219 7455 I videoclient_jni: video client - startService: 02-22 23:34:43.601 7219 7455 I videoclient_jni: Reported App Detail Info: { app_version_name: Android 1.0.0, app_version_code: 4, device_model: SM-A515F, device_make: samsung, platform_name: android, platform_version: 11, client_source: amazon-chime-sdk, chime_sdk_version: 0.8.2 } 02-22 23:34:43.603 7219 7455 W Logging : HardwareVideoEncoderFactory: No shared EglBase.Context. Encoders will not use texture mode. 02-22 23:34:43.615 7219 7991 I ACodec : [OMX.Exynos.AVC.Encoder] Now Loaded->Idle 02-22 23:34:43.646 7219 7455 I ChimeReactNativeSDKDemoManager: audioVideo.start() 02-22 23:34:43.646 7219 7455 I DefaultVideoClientController: Starting remote video 02-22 23:34:43.647 7219 8007 I Logging : EglBase14Impl: Using OpenGL ES version 2 02-22 23:34:43.647 7219 7455 I DefaultVideoClientController: Setting external video source in media client to internal camera source 02-22 23:34:43.648 7219 7455 I DefaultCameraCaptureSource: Camera capture start requested with device: 1 (Front Camera) 02-22 23:34:43.654 7219 7998 I DefaultVideoClientObserver: requestTurnCreds 02-22 23:34:43.656 7219 7766 I DefaultVideoClientObserver: Making TURN Request 02-22 23:34:43.656 7219 7766 I DefaultVideoClientObserver: User Agent while doing TURN request is Dalvik/2.1.0 (Linux; U; Android 11; SM-A515F Build/RP1A.200720.012) 02-22 23:34:43.659 7219 7766 I System.out: (HTTPLog)-Static: isSBSettingEnabled false 02-22 23:34:43.659 7219 7766 I System.out: (HTTPLog)-Static: isSBSettingEnabled false 02-22 23:34:43.673 7219 7991 I ACodec : [OMX.Exynos.AVC.Encoder] Now Idle->Executing 02-22 23:34:43.673 4964 5272 I ResourceManagerService: addMediaInfo pid 7219, add 176640 (width 368 height 480) remained 1234391250, lowPriority 0, allocated hw codec count, 1 02-22 23:34:43.673 4964 5272 I ResourceManagerService: getMediaResourceInfo (PID : 7219, clientID : 532211627872, non-secure-codec/video-codec:[]:1, 368x480 (fps:15) - sw codec : no, encoder : yes) 02-22 23:34:43.675 7219 7991 I ACodec : [OMX.Exynos.AVC.Encoder] Now Executing 02-22 23:34:43.676 7219 7988 I MediaCodec: setCodecState state : 0 02-22 23:34:43.677 7219 8009 I SurfaceTextureCaptureSource: Created surface texture for video source with dimensions 960 x 720 02-22 23:34:43.678 8445 8480 I DrmMediaResourceHelper: resource type: 2,,,isSecured : falseIsEncoder : truegetCodecState : 0getpid : 7219 02-22 23:34:43.681 7219 7925 I Logging : HardwareVideoEncoder: initEncode: 720 x 960. @ 863kbps. Fps: 15 Use surface mode: false 02-22 23:34:43.682 7219 7925 I ACodec : [] Now uninitialized 02-22 23:34:43.683 7219 8012 I ACodec : [] onAllocateComponent 02-22 23:34:43.686 7219 8012 I OMXClient: IOmx service obtained 02-22 23:34:43.686 4945 5714 I CameraService: CameraService::validateClientPermissionsLocked is ok : calling pid 7219, calling uid 10314, client com.example , cameraservice pid=4945, device user 0, currently allowed device users: 0 02-22 23:34:43.686 4945 5714 I CameraService: handleEvictionsLocked: priorityMap[0] : pid=7219, priorityScore=0, state=2 02-22 23:34:43.687 4945 5714 I CameraService: wouldEvictLocked: owner=7219, priority-score=0, highestPriorityOwner=7219, highestPriority-score=0 02-22 23:34:43.687 4945 5714 I CameraService: wouldEvictLocked: Build eviction list of clients to remove - curOwner=7219, curPriority-score=0, conflicting=true 02-22 23:34:43.687 4945 5714 E CameraService: CameraService::connect X (PID 7219) rejected (existing client(s) with higher priority). 02-22 23:34:43.687 4945 5714 I CameraService: wouldEvictLocked: owner=7219, priority-score=0, highestPriorityOwner=7219, highestPriority-score=0 02-22 23:34:43.687 4945 5714 I CameraService: wouldEvictLocked: Build eviction list of clients to remove - curOwner=7219, curPriority-score=0, conflicting=true 02-22 23:34:43.688 7219 7990 I DefaultCameraCaptureSource: Camera device encountered error: 2 for ID 1 02-22 23:34:43.695 7219 8012 I ACodec : [OMX.Exynos.AVC.Encoder] Now Loaded 02-22 23:34:43.696 7219 7455 I DefaultCameraCaptureSource: Setting capture device: 0 (Back Camera) 02-22 23:34:43.696 7219 7455 I DefaultCameraCaptureSource: Stopping camera capture source 02-22 23:34:43.696 7219 7925 I Logging : HardwareVideoEncoder: Format: {color-format=19, i-frame-interval=20, mime=video/avc, width=720, bitrate-mode=2, bitrate=863000, frame-rate=15, height=960} 02-22 23:34:43.697 7219 8009 I SurfaceTextureCaptureSource: Setting on frame available listener to null 02-22 23:34:43.698 7219 8012 I ACodec : app-pid(7219) 02-22 23:34:43.701 7219 8009 I SurfaceTextureCaptureSource: Releasing surface texture capture source 02-22 23:34:43.701 7219 7455 I DefaultCameraCaptureSource: Camera capture start requested with device: 0 (Back Camera) 02-22 23:34:43.702 7219 8009 I SurfaceTextureCaptureSource: Finished releasing surface texture capture source 02-22 23:34:43.704 7219 8012 I ACodec : app-name : com.example 02-22 23:34:43.704 7219 8012 I ACodec : setupAVCEncoderParameters with [profile: Baseline] [level: Level31] 02-22 23:34:43.705 7219 8012 I ACodec : Enable Perceptual Video Coding 02-22 23:34:43.708 7219 8012 I ACodec : Success set VideoMinQP(5/5/5) VideoMaxQP(50/50/50) 02-22 23:34:43.708 7219 8012 I ACodec : reconfigEncoder4OtherApps 02-22 23:34:43.710 7219 8012 I ACodec : [OMX.Exynos.AVC.Encoder] cannot encode HDR static metadata. Ignoring. 02-22 23:34:43.710 7219 8012 I ACodec : setupVideoEncoder succeeded 02-22 23:34:43.710 7219 8012 I ACodec : [OMX.Exynos.AVC.Encoder] configure, AMessage : AMessage(what = 'conf', target = 10) = { 02-22 23:34:43.710 7219 8012 I ACodec : int32_t color-format = 19 02-22 23:34:43.710 7219 8012 I ACodec : int32_t i-frame-interval = 20 02-22 23:34:43.710 7219 8012 I ACodec : string mime = "video/avc" 02-22 23:34:43.710 7219 8012 I ACodec : int32_t width = 720 02-22 23:34:43.710 7219 8012 I ACodec : int32_t bitrate-mode = 2 02-22 23:34:43.710 7219 8012 I ACodec : int32_t bitrate = 863000 02-22 23:34:43.710 7219 8012 I ACodec : int32_t frame-rate = 15 02-22 23:34:43.710 7219 8012 I ACodec : int32_t height = 960 02-22 23:34:43.710 7219 8012 I ACodec : int32_t flags = 1 02-22 23:34:43.710 7219 8012 I ACodec : int32_t encoder = 1 02-22 23:34:43.710 7219 8012 I ACodec : } 02-22 23:34:43.715 7219 8017 I SurfaceTextureCaptureSource: Created surface texture for video source with dimensions 960 x 720 02-22 23:34:43.731 7219 8012 I ACodec : [OMX.Exynos.AVC.Encoder] Now Loaded->Idle 02-22 23:34:43.734 7219 7764 I DefaultAudioClientController: Stopped audio session. 02-22 23:34:43.735 7219 7764 D AudioManager: setBluetoothScoOn false 02-22 23:34:43.735 4945 12935 I CameraService: CameraService::validateClientPermissionsLocked is ok : calling pid 7219, calling uid 10314, client com.example , cameraservice pid=4945, device user 0, currently allowed device users: 0 02-22 23:34:43.737 5259 12249 E AS.AudioDeviceBroker: setBluetoothScoOn() return uid = 10314, pid = 7219 02-22 23:34:43.737 4945 12935 I CameraService: handleEvictionsLocked: priorityMap[0] : pid=7219, priorityScore=0, state=2 02-22 23:34:43.737 4945 12935 I CameraService: wouldEvictLocked: owner=7219, priority-score=0, highestPriorityOwner=7219, highestPriority-score=0 02-22 23:34:43.737 4945 12935 I CameraService: wouldEvictLocked: Build eviction list of clients to remove - curOwner=7219, curPriority-score=0, conflicting=true 02-22 23:34:43.737 4945 12935 E CameraDeviceClient: notifyError: pid=7219, errorCode=0, errorStreamId=-1, frameNumber=0 02-22 23:34:43.737 4945 12935 E CameraDeviceClient: notifyError: pid=7219, skipClientNotification=false 02-22 23:34:43.740 5259 12249 V AS.AudioService: setModeInt(mode=0, pid=7219, uid=10314, caller=com.example) 02-22 23:34:43.750 7219 7766 I DefaultVideoClientObserver: TURN Request Success 02-22 23:34:43.752 7219 7219 I videoclient_jni: video client - updateTurnCredentials: 02-22 23:34:43.752 7219 7219 I videoclient_jni: video client - allocating memory for urisBuf 02-22 23:34:43.752 7219 7219 I videoclient_jni: Updating TURN creds: { user_name: 1645598383:74819ef9-f6e9-4046-a736-9231640e068a, signaling_url: wss://signal.m2.cc1.app.chime.aws/control/9fdc76cc-f85b-4099-b26d-f6bb6f9b0706 } 02-22 23:34:43.752 7219 7219 I videoclient_jni: video client - free the allocated memory for urisBuf 02-22 23:34:43.755 7219 7998 E videoclient_jni: video client DNS: dns1 , dns2 02-22 23:34:43.756 7219 7998 I DefaultVideoClientObserver: isConnecting 02-22 23:34:43.760 7219 7998 E videoclient_jni: video client DNS: dns1 , dns2 02-22 23:34:43.775 7219 8012 I ACodec : [OMX.Exynos.AVC.Encoder] Now Idle->Executing 02-22 23:34:43.777 7219 8012 I ACodec : [OMX.Exynos.AVC.Encoder] Now Executing 02-22 23:34:43.777 4964 29300 I ResourceManagerService: addMediaInfo pid 7219, add 691200 (width 720 height 960) remained 1233700050, lowPriority 0, allocated hw codec count, 2 02-22 23:34:43.777 4964 29300 I ResourceManagerService: getMediaResourceInfo (PID : 7219, clientID : 532211627872, non-secure-codec/video-codec:[]:1, 368x480 (fps:15) - sw codec : no, encoder : yes) 02-22 23:34:43.777 4964 29300 I ResourceManagerService: getMediaResourceInfo (PID : 7219, clientID : 532211730400, non-secure-codec/video-codec:[]:1, 720x960 (fps:15) - sw codec : no, encoder : yes) 02-22 23:34:43.778 7219 8011 I MediaCodec: setCodecState state : 0 02-22 23:34:43.781 8445 8480 I DrmMediaResourceHelper: resource type: 2,,,isSecured : falseIsEncoder : truegetCodecState : 0getpid : 7219 02-22 23:34:43.781 8445 8480 I DrmMediaResourceHelper: resource type: 2,,,isSecured : falseIsEncoder : truegetCodecState : 0getpid : 7219 02-22 23:34:43.812 7219 8010 I Logging : HardwareVideoEncoder: Config frame generated. Offset: 0. Size: 24 02-22 23:34:43.814 7219 8010 I Logging : HardwareVideoEncoder: Sync frame generated 02-22 23:34:43.814 7219 8010 I Logging : HardwareVideoEncoder: Prepending config frame of size 24 to output buffer with offset 0, size 8942 02-22 23:34:43.817 7219 7988 I MediaCodec: setCodecState state : 1 02-22 23:34:43.819 8445 8480 I DrmMediaResourceHelper: resource type: 2,,,isSecured : falseIsEncoder : truegetCodecState : 1getpid : 7219 02-22 23:34:43.819 8445 8480 I DrmMediaResourceHelper: resource type: 2,,,isSecured : falseIsEncoder : truegetCodecState : 0getpid : 7219 02-22 23:34:43.820 7219 8034 I Logging : HardwareVideoEncoder: Releasing MediaCodec on output thread 02-22 23:34:43.822 7219 8012 I ACodec : [OMX.Exynos.AVC.Encoder] Now Executing->Idle 02-22 23:34:43.844 7219 8012 I ACodec : [OMX.Exynos.AVC.Encoder] Now Idle->Loaded 02-22 23:34:43.844 7219 8012 I ACodec : [OMX.Exynos.AVC.Encoder] Now Loaded 02-22 23:34:43.844 7219 8012 I ACodec : [OMX.Exynos.AVC.Encoder] Now kWhatShutdownCompleted event : 8312 02-22 23:34:43.846 7219 8034 I Logging : HardwareVideoEncoder: Release on output thread done 02-22 23:34:43.847 7219 8012 I ACodec : [OMX.Exynos.AVC.Encoder] Now uninitialized 02-22 23:34:43.848 7219 8012 I ACodec : [] Now kWhatShutdownCompleted event : 8312 02-22 23:34:43.848 7219 8011 I MediaCodec: Codec shutdown complete 02-22 23:34:43.848 4964 5272 I ResourceManagerService: removeResourceInfo pid 7219, removed 691200 (width 720 height 960) remained 1234391250, isLowPriority 0, remained hw codec count 1 02-22 23:34:43.848 4964 5272 I ResourceManagerService: getMediaResourceInfo (PID : 7219, clientID : 532211627872, non-secure-codec/video-codec:[]:1, 368x480 (fps:15) - sw codec : no, encoder : yes) 02-22 23:34:43.893 4945 12935 E CameraDeviceClient: notifyError: pid=7219, errorCode=4, errorStreamId=0, frameNumber=17 02-22 23:34:43.893 4945 12935 E CameraDeviceClient: notifyError: pid=7219, skipClientNotification=false 02-22 23:34:43.894 4945 12935 E CameraDeviceClient: notifyError: pid=7219, errorCode=5, errorStreamId=0, frameNumber=17 02-22 23:34:43.895 4945 12935 E CameraDeviceClient: notifyError: pid=7219, skipClientNotification=false 02-22 23:34:43.898 4945 12935 E CameraDeviceClient: notifyError: pid=7219, errorCode=3, errorStreamId=0, frameNumber=18 02-22 23:34:43.898 4945 12935 E CameraDeviceClient: notifyError: pid=7219, skipClientNotification=false 02-22 23:34:43.900 4945 12935 E CameraDeviceClient: notifyError: pid=7219, errorCode=3, errorStreamId=0, frameNumber=19 02-22 23:34:43.900 4945 12935 E CameraDeviceClient: notifyError: pid=7219, skipClientNotification=false 02-22 23:34:43.903 4945 12935 E CameraDeviceClient: notifyError: pid=7219, errorCode=3, errorStreamId=0, frameNumber=20 02-22 23:34:43.903 4945 12935 E CameraDeviceClient: notifyError: pid=7219, skipClientNotification=false 02-22 23:34:43.909 4945 12935 E CameraDeviceClient: notifyError: pid=7219, errorCode=3, errorStreamId=0, frameNumber=21 02-22 23:34:43.909 4945 12935 E CameraDeviceClient: notifyError: pid=7219, skipClientNotification=false 02-22 23:34:43.912 4945 12935 E CameraDeviceClient: notifyError: pid=7219, errorCode=3, errorStreamId=0, frameNumber=22 02-22 23:34:43.912 4945 12935 E CameraDeviceClient: notifyError: pid=7219, skipClientNotification=false 02-22 23:34:43.914 4945 12935 E CameraDeviceClient: notifyError: pid=7219, errorCode=3, errorStreamId=0, frameNumber=23 02-22 23:34:43.914 4945 12935 E CameraDeviceClient: notifyError: pid=7219, skipClientNotification=false 02-22 23:34:43.916 4945 12935 E CameraDeviceClient: notifyError: pid=7219, errorCode=3, errorStreamId=0, frameNumber=24 02-22 23:34:43.916 4945 12935 E CameraDeviceClient: notifyError: pid=7219, skipClientNotification=false 02-22 23:34:43.919 7219 8010 I Logging : HardwareVideoEncoder: Releasing MediaCodec on output thread 02-22 23:34:43.921 7219 7399 I CameraManagerGlobal: Camera 0 facing CAMERA_FACING_BACK state now CAMERA_STATE_IDLE for client com.example API Level 2 02-22 23:34:43.921 7219 7991 I ACodec : [OMX.Exynos.AVC.Encoder] Now Executing->Idle 02-22 23:34:43.946 7219 7991 I ACodec : [OMX.Exynos.AVC.Encoder] Now Idle->Loaded 02-22 23:34:43.949 7219 7991 I ACodec : [OMX.Exynos.AVC.Encoder] Now Loaded 02-22 23:34:43.949 7219 7991 I ACodec : [OMX.Exynos.AVC.Encoder] Now kWhatShutdownCompleted event : 8312 02-22 23:34:43.951 7219 8010 I Logging : HardwareVideoEncoder: Release on output thread done 02-22 23:34:43.958 7219 7764 D AudioManager: setSpeakerphoneOn false 02-22 23:34:43.959 7219 7991 I ACodec : [OMX.Exynos.AVC.Encoder] Now uninitialized 02-22 23:34:43.959 7219 7991 I ACodec : [] Now kWhatShutdownCompleted event : 8312 02-22 23:34:43.959 7219 7988 I MediaCodec: Codec shutdown complete 02-22 23:34:43.964 4964 5272 I ResourceManagerService: removeResourceInfo pid 7219, removed 176640 (width 368 height 480) remained 1234567890, isLowPriority 0, remained hw codec count 0 02-22 23:34:44.089 7219 7735 I DefaultVideoClientObserver: didStop 02-22 23:34:44.090 7219 7765 I DefaultVideoClientController: Destroying video client 02-22 23:34:44.091 7219 7763 I Logging : GlShader: Deleting shader. 02-22 23:34:44.096 7219 7735 I DefaultVideoTileController: Removing video tile with videoId = 0 & attendeeId = null 02-22 23:34:44.097 7219 7219 I MeetingObservers: Received video tile remove event for attendee: 6c0dcbbb-1cd9-c3d7-4dc9-a48eb9803923 02-22 23:34:44.154 4945 12935 I CameraService: disconnect: Disconnected client for camera 0 for PID 7219 02-22 23:34:44.155 4945 12935 I Camera2ClientBase: Camera 0: Opened. Client: com.example (PID 7219, UID 10314) 02-22 23:34:44.158 7219 8040 I CameraManagerGlobal: Camera 0 facing CAMERA_FACING_BACK state now CAMERA_STATE_CLOSED for client com.example API Level 2 02-22 23:34:44.168 7219 7399 I CameraManagerGlobal: Camera 0 facing CAMERA_FACING_BACK state now CAMERA_STATE_OPEN for client com.example API Level 2 02-22 23:34:44.172 7219 7714 E CameraCaptureSession: Session 0: Exception while stopping repeating: 02-22 23:34:44.172 7219 7714 E CameraCaptureSession: android.hardware.camera2.CameraAccessException: CAMERA_ERROR (3): cancelRequest:547: Camera 0: Error clearing streaming request: Function not implemented (-38) 02-22 23:34:44.172 7219 7714 E CameraCaptureSession: at android.hardware.camera2.CameraManager.throwAsPublicException(CameraManager.java:1340) 02-22 23:34:44.172 7219 7714 E CameraCaptureSession: at android.hardware.camera2.impl.ICameraDeviceUserWrapper.cancelRequest(ICameraDeviceUserWrapper.java:99) 02-22 23:34:44.172 7219 7714 E CameraCaptureSession: at android.hardware.camera2.impl.CameraDeviceImpl.stopRepeating(CameraDeviceImpl.java:1259) 02-22 23:34:44.172 7219 7714 E CameraCaptureSession: at android.hardware.camera2.impl.CameraCaptureSessionImpl.close(CameraCaptureSessionImpl.java:578) 02-22 23:34:44.172 7219 7714 E CameraCaptureSession: at android.hardware.camera2.impl.CameraCaptureSessionImpl$2.onDisconnected(CameraCaptureSessionImpl.java:789) 02-22 23:34:44.172 7219 7714 E CameraCaptureSession: at android.hardware.camera2.impl.CameraDeviceImpl$7.run(CameraDeviceImpl.java:245) 02-22 23:34:44.172 7219 7714 E CameraCaptureSession: at android.os.Handler.handleCallback(Handler.java:938) 02-22 23:34:44.172 7219 7714 E CameraCaptureSession: at android.os.Handler.dispatchMessage(Handler.java:99) 02-22 23:34:44.172 7219 7714 E CameraCaptureSession: at android.os.Looper.loop(Looper.java:246) 02-22 23:34:44.172 7219 7714 E CameraCaptureSession: at android.os.HandlerThread.run(HandlerThread.java:67) 02-22 23:34:44.172 7219 7714 E CameraCaptureSession: Caused by: android.os.ServiceSpecificException: cancelRequest:547: Camera 0: Error clearing streaming request: Function not implemented (-38) (code 10) 02-22 23:34:44.172 7219 7714 E CameraCaptureSession: at android.os.Parcel.createExceptionOrNull(Parcel.java:2399) 02-22 23:34:44.172 7219 7714 E CameraCaptureSession: at android.os.Parcel.createException(Parcel.java:2369) 02-22 23:34:44.172 7219 7714 E CameraCaptureSession: at android.os.Parcel.readException(Parcel.java:2352) 02-22 23:34:44.172 7219 7714 E CameraCaptureSession: at android.os.Parcel.readException(Parcel.java:2294) 02-22 23:34:44.172 7219 7714 E CameraCaptureSession: at android.hardware.camera2.ICameraDeviceUser$Stub$Proxy.cancelRequest(ICameraDeviceUser.java:750) 02-22 23:34:44.172 7219 7714 E CameraCaptureSession: at android.hardware.camera2.impl.ICameraDeviceUserWrapper.cancelRequest(ICameraDeviceUserWrapper.java:97) 02-22 23:34:44.172 7219 7714 E CameraCaptureSession: ... 8 more 02-22 23:34:44.172 7219 7714 I DefaultCameraCaptureSource: Camera device disconnected for ID 0 02-22 23:34:44.173 7219 7715 W com.example: Long monitor contention with owner DefaultCameraCaptureSource (7714) at void android.hardware.camera2.impl.CameraDeviceImpl.stopRepeating()(CameraDeviceImpl.java:1270) waiters=0 in void android.hardware.camera2.impl.CameraDeviceImpl.onDeviceError(int, android.hardware.camera2.impl.CaptureResultExtras) for 278ms 02-22 23:34:44.174 7219 7714 E DefaultCameraCaptureSource: Camera capture session failed: android.hardware.camera2.CaptureFailure@44f527b 02-22 23:34:44.175 7219 7714 E DefaultCameraCaptureSource: Camera capture session failed: android.hardware.camera2.CaptureFailure@709c898 02-22 23:34:44.176 7219 7714 E DefaultCameraCaptureSource: Camera capture session failed: android.hardware.camera2.CaptureFailure@7d8e8f1 02-22 23:34:44.178 7219 7714 E DefaultCameraCaptureSource: Camera capture session failed: android.hardware.camera2.CaptureFailure@9baccd6 02-22 23:34:44.178 7219 7714 E DefaultCameraCaptureSource: Camera capture session failed: android.hardware.camera2.CaptureFailure@2769b57 02-22 23:34:44.180 7219 7714 E DefaultCameraCaptureSource: Camera capture session failed: android.hardware.camera2.CaptureFailure@c1ed644 02-22 23:34:44.181 7219 7714 E DefaultCameraCaptureSource: Camera capture session failed: android.hardware.camera2.CaptureFailure@b02232d 02-22 23:34:44.181 4945 12935 I CameraService: wouldEvictLocked: owner=7219, priority-score=0, highestPriorityOwner=7219, highestPriority-score=0 02-22 23:34:44.181 7219 7714 E DefaultCameraCaptureSource: Camera capture session failed: android.hardware.camera2.CaptureFailure@86ee062 02-22 23:34:44.182 4945 12935 I CameraService: addAndEvict: push the client(owner 7219, priorityScore 0, state 2) to mClients 02-22 23:34:44.184 7219 7990 I DefaultCameraCaptureSource: Camera device opened for ID 0 02-22 23:34:44.306 7219 7998 I DefaultVideoClientObserver: didConnect with controlStatus: 0 02-22 23:34:44.308 7219 7998 D DefaultVideoClientObserver: cameraSendIsAvailable: true 02-22 23:34:44.395 7219 7990 I DefaultCameraCaptureSource: Camera capture session configured for session with device ID: 0 02-22 23:34:44.399 7219 7990 I DefaultCameraCaptureSource: Setting target FPS range to [15, 15] 02-22 23:34:44.400 7219 7990 I DefaultCameraCaptureSource: Using optical stabilization. 02-22 23:34:44.400 7219 7990 I DefaultCameraCaptureSource: Using optical stabilization. 02-22 23:34:44.403 7219 7990 I DefaultCameraCaptureSource: Capture request completed with device ID: 0 02-22 23:34:44.682 7219 8000 I Logging : AndroidVideoDecoder: ctor name: OMX.Exynos.avc.dec type: H264 color format: 19 context: null 02-22 23:34:44.682 7219 8000 I Logging : AndroidVideoDecoder: ctor name: OMX.google.h264.decoder type: H264 color format: 19 context: null 02-22 23:34:44.686 7219 8000 I Logging : AndroidVideoDecoder: ctor name: OMX.Exynos.avc.dec type: H264 color format: 19 context: null 02-22 23:34:44.686 7219 8000 I Logging : AndroidVideoDecoder: ctor name: OMX.google.h264.decoder type: H264 color format: 19 context: null 02-22 23:34:44.690 7219 8000 I Logging : AndroidVideoDecoder: ctor name: OMX.Exynos.avc.dec type: H264 color format: 19 context: null 02-22 23:34:44.691 7219 8000 I Logging : AndroidVideoDecoder: ctor name: OMX.google.h264.decoder type: H264 color format: 19 context: null 02-22 23:34:44.698 7219 8000 I Logging : AndroidVideoDecoder: ctor name: OMX.Exynos.avc.dec type: H264 color format: 19 context: null 02-22 23:34:44.698 7219 8000 I Logging : AndroidVideoDecoder: ctor name: OMX.google.h264.decoder type: H264 color format: 19 context: null 02-22 23:34:44.744 7219 7998 D DefaultVideoClientObserver: cameraSendIsAvailable: true 02-22 23:34:44.989 7219 7715 I CameraManagerGlobal: Camera 0 facing CAMERA_FACING_BACK state now CAMERA_STATE_ACTIVE for client com.example API Level 2 02-22 23:34:44.997 4945 12935 I CameraService: handleEvictionsLocked: priorityMap[0] : pid=7219, priorityScore=0, state=2 02-22 23:34:44.997 4945 12935 I CameraService: wouldEvictLocked: owner=15824, priority-score=999, highestPriorityOwner=7219, highestPriority-score=0 02-22 23:34:44.997 4945 12935 I CameraService: wouldEvictLocked: Build eviction list of clients to remove - curOwner=7219, curPriority-score=0, conflicting=true 02-22 23:34:44.998 4945 12935 I CameraService: wouldEvictLocked: owner=15824, priority-score=999, highestPriorityOwner=7219, highestPriority-score=0 02-22 23:34:44.998 4945 12935 I CameraService: wouldEvictLocked: Build eviction list of clients to remove - curOwner=7219, curPriority-score=0, conflicting=true 02-22 23:34:44.998 4945 12935 E CameraService: Conflicts with: Device 0, client package com.example (PID 7219, score 0, state 2) 02-22 23:34:45.036 7219 8017 I DefaultVideoTileController: Adding video tile with videoId = 0, attendeeId = null, pauseState = Unpaused 02-22 23:34:45.037 7219 7219 I MeetingObservers: Received video tile add event for attendee: 43f8cf0d-f481-1f6f-0faa-2d8008b8088c 02-22 23:34:45.043 7219 8130 I Logging : HardwareVideoEncoder: initEncode: 368 x 480. @ 187kbps. Fps: 15 Use surface mode: false 02-22 23:34:45.046 7219 8130 I ACodec : [] Now uninitialized 02-22 23:34:45.048 7219 8163 I ACodec : [] onAllocateComponent 02-22 23:34:45.057 7219 8163 I OMXClient: IOmx service obtained 02-22 23:34:45.075 7219 8163 I ACodec : [OMX.Exynos.AVC.Encoder] Now Loaded 02-22 23:34:45.079 7219 8130 I Logging : HardwareVideoEncoder: Format: {color-format=19, i-frame-interval=20, mime=video/avc, width=368, bitrate-mode=2, bitrate=187000, frame-rate=15, height=480} 02-22 23:34:45.081 7219 8163 I ACodec : app-pid(7219) 02-22 23:34:45.088 7219 8163 I ACodec : app-name : com.example 02-22 23:34:45.095 7219 8163 I ACodec : setupAVCEncoderParameters with [profile: Baseline] [level: Level21] 02-22 23:34:45.096 7219 8163 I ACodec : Enable Perceptual Video Coding 02-22 23:34:45.097 7219 8163 I ACodec : Success set VideoMinQP(5/5/5) VideoMaxQP(50/50/50) 02-22 23:34:45.097 7219 8163 I ACodec : reconfigEncoder4OtherApps 02-22 23:34:45.099 7219 8163 I ACodec : [OMX.Exynos.AVC.Encoder] cannot encode HDR static metadata. Ignoring. 02-22 23:34:45.100 7219 8163 I ACodec : setupVideoEncoder succeeded 02-22 23:34:45.100 7219 8163 I ACodec : [OMX.Exynos.AVC.Encoder] configure, AMessage : AMessage(what = 'conf', target = 13) = { 02-22 23:34:45.100 7219 8163 I ACodec : int32_t color-format = 19 02-22 23:34:45.100 7219 8163 I ACodec : int32_t i-frame-interval = 20 02-22 23:34:45.100 7219 8163 I ACodec : string mime = "video/avc" 02-22 23:34:45.100 7219 8163 I ACodec : int32_t width = 368 02-22 23:34:45.100 7219 8163 I ACodec : int32_t bitrate-mode = 2 02-22 23:34:45.100 7219 8163 I ACodec : int32_t bitrate = 187000 02-22 23:34:45.100 7219 8163 I ACodec : int32_t frame-rate = 15 02-22 23:34:45.100 7219 8163 I ACodec : int32_t height = 480 02-22 23:34:45.100 7219 8163 I ACodec : int32_t flags = 1 02-22 23:34:45.100 7219 8163 I ACodec : int32_t encoder = 1 02-22 23:34:45.100 7219 8163 I ACodec : } 02-22 23:34:45.131 7219 8163 I ACodec : [OMX.Exynos.AVC.Encoder] Now Loaded->Idle 02-22 23:34:45.198 4964 5272 I ResourceManagerService: addMediaInfo pid 7219, add 176640 (width 368 height 480) remained 1234391250, lowPriority 0, allocated hw codec count, 1 02-22 23:34:45.198 4964 5272 I ResourceManagerService: getMediaResourceInfo (PID : 7219, clientID : 532196782496, non-secure-codec/video-codec:[]:1, 368x480 (fps:15) - sw codec : no, encoder : yes) 02-22 23:34:45.199 7219 8162 I MediaCodec: setCodecState state : 0 02-22 23:34:45.200 7219 8163 I ACodec : [OMX.Exynos.AVC.Encoder] Now Idle->Executing 02-22 23:34:45.201 8445 8480 I DrmMediaResourceHelper: resource type: 2,,,isSecured : falseIsEncoder : truegetCodecState : 0getpid : 7219 02-22 23:34:45.208 7219 8130 I Logging : HardwareVideoEncoder: initEncode: 720 x 960. @ 513kbps. Fps: 15 Use surface mode: false 02-22 23:34:45.212 7219 8163 I ACodec : [OMX.Exynos.AVC.Encoder] Now Executing 02-22 23:34:45.214 7219 8130 I ACodec : [] Now uninitialized 02-22 23:34:45.215 7219 8173 I ACodec : [] onAllocateComponent 02-22 23:34:45.217 7219 8173 I OMXClient: IOmx service obtained 02-22 23:34:45.221 7219 8173 I ACodec : [OMX.Exynos.AVC.Encoder] Now Loaded 02-22 23:34:45.224 7219 8130 I Logging : HardwareVideoEncoder: Format: {color-format=19, i-frame-interval=20, mime=video/avc, width=720, bitrate-mode=2, bitrate=513000, frame-rate=15, height=960} 02-22 23:34:45.226 7219 8173 I ACodec : app-pid(7219) 02-22 23:34:45.230 7219 8173 I ACodec : app-name : com.example 02-22 23:34:45.231 7219 8173 I ACodec : setupAVCEncoderParameters with [profile: Baseline] [level: Level31] 02-22 23:34:45.231 7219 8173 I ACodec : Enable Perceptual Video Coding 02-22 23:34:45.232 7219 8173 I ACodec : Success set VideoMinQP(5/5/5) VideoMaxQP(50/50/50) 02-22 23:34:45.232 7219 8173 I ACodec : reconfigEncoder4OtherApps 02-22 23:34:45.233 7219 8173 I ACodec : [OMX.Exynos.AVC.Encoder] cannot encode HDR static metadata. Ignoring. 02-22 23:34:45.233 7219 8173 I ACodec : setupVideoEncoder succeeded 02-22 23:34:45.233 7219 8173 I ACodec : [OMX.Exynos.AVC.Encoder] configure, AMessage : AMessage(what = 'conf', target = 16) = { 02-22 23:34:45.233 7219 8173 I ACodec : int32_t color-format = 19 02-22 23:34:45.233 7219 8173 I ACodec : int32_t i-frame-interval = 20 02-22 23:34:45.233 7219 8173 I ACodec : string mime = "video/avc" 02-22 23:34:45.233 7219 8173 I ACodec : int32_t width = 720 02-22 23:34:45.233 7219 8173 I ACodec : int32_t bitrate-mode = 2 02-22 23:34:45.233 7219 8173 I ACodec : int32_t bitrate = 513000 02-22 23:34:45.233 7219 8173 I ACodec : int32_t frame-rate = 15 02-22 23:34:45.233 7219 8173 I ACodec : int32_t height = 960 02-22 23:34:45.233 7219 8173 I ACodec : int32_t flags = 1 02-22 23:34:45.233 7219 8173 I ACodec : int32_t encoder = 1 02-22 23:34:45.233 7219 8173 I ACodec : } 02-22 23:34:45.262 7219 8173 I ACodec : [OMX.Exynos.AVC.Encoder] Now Loaded->Idle 02-22 23:34:45.321 7219 8173 I ACodec : [OMX.Exynos.AVC.Encoder] Now Idle->Executing 02-22 23:34:45.323 4964 29300 I ResourceManagerService: addMediaInfo pid 7219, add 691200 (width 720 height 960) remained 1233700050, lowPriority 0, allocated hw codec count, 2 02-22 23:34:45.323 4964 29300 I ResourceManagerService: getMediaResourceInfo (PID : 7219, clientID : 532196782496, non-secure-codec/video-codec:[]:1, 368x480 (fps:15) - sw codec : no, encoder : yes) 02-22 23:34:45.323 4964 29300 I ResourceManagerService: getMediaResourceInfo (PID : 7219, clientID : 532196784224, non-secure-codec/video-codec:[]:1, 720x960 (fps:15) - sw codec : no, encoder : yes) 02-22 23:34:45.324 7219 8172 I MediaCodec: setCodecState state : 0 02-22 23:34:45.325 7219 8173 I ACodec : [OMX.Exynos.AVC.Encoder] Now Executing 02-22 23:34:45.327 8445 8480 I DrmMediaResourceHelper: resource type: 2,,,isSecured : falseIsEncoder : truegetCodecState : 0getpid : 7219 02-22 23:34:45.327 8445 8480 I DrmMediaResourceHelper: resource type: 2,,,isSecured : falseIsEncoder : truegetCodecState : 0getpid : 7219 02-22 23:34:45.369 7219 8171 I Logging : HardwareVideoEncoder: Config frame generated. Offset: 0. Size: 24 02-22 23:34:45.372 7219 8171 I Logging : HardwareVideoEncoder: Sync frame generated 02-22 23:34:45.372 7219 8171 I Logging : HardwareVideoEncoder: Prepending config frame of size 24 to output buffer with offset 0, size 5997 02-22 23:34:45.374 7219 8162 I MediaCodec: setCodecState state : 1 02-22 23:34:45.377 8445 8480 I DrmMediaResourceHelper: resource type: 2,,,isSecured : falseIsEncoder : truegetCodecState : 1getpid : 7219 02-22 23:34:45.378 8445 8480 I DrmMediaResourceHelper: resource type: 2,,,isSecured : falseIsEncoder : truegetCodecState : 0getpid : 7219 02-22 23:34:45.403 7219 8182 I Logging : HardwareVideoEncoder: Config frame generated. Offset: 0. Size: 25 02-22 23:34:45.405 7219 8182 I Logging : HardwareVideoEncoder: Sync frame generated 02-22 23:34:45.405 7219 8182 I Logging : HardwareVideoEncoder: Prepending config frame of size 25 to output buffer with offset 0, size 16996 02-22 23:34:45.414 7219 8172 I MediaCodec: setCodecState state : 1 02-22 23:34:45.416 8445 8480 I DrmMediaResourceHelper: resource type: 2,,,isSecured : falseIsEncoder : truegetCodecState : 1getpid : 7219 02-22 23:34:45.416 8445 8480 I DrmMediaResourceHelper: resource type: 2,,,isSecured : falseIsEncoder : truegetCodecState : 1getpid : 7219 02-22 23:34:45.874 7219 8182 I Logging : HardwareVideoEncoder: Releasing MediaCodec on output thread 02-22 23:34:45.877 7219 8173 I ACodec : [OMX.Exynos.AVC.Encoder] Now Executing->Idle 02-22 23:34:45.907 7219 8173 I ACodec : [OMX.Exynos.AVC.Encoder] Now Idle->Loaded 02-22 23:34:45.907 7219 8173 I ACodec : [OMX.Exynos.AVC.Encoder] Now Loaded 02-22 23:34:45.908 7219 8173 I ACodec : [OMX.Exynos.AVC.Encoder] Now kWhatShutdownCompleted event : 8312 02-22 23:34:45.910 7219 8173 I ACodec : [OMX.Exynos.AVC.Encoder] Now uninitialized 02-22 23:34:45.911 7219 8173 I ACodec : [] Now kWhatShutdownCompleted event : 8312 02-22 23:34:45.911 7219 8182 I Logging : HardwareVideoEncoder: Release on output thread done 02-22 23:34:45.912 7219 8172 I MediaCodec: Codec shutdown complete 02-22 23:34:45.912 4964 29300 I ResourceManagerService: removeResourceInfo pid 7219, removed 691200 (width 720 height 960) remained 1234391250, isLowPriority 0, remained hw codec count 1 02-22 23:34:45.912 4964 29300 I ResourceManagerService: getMediaResourceInfo (PID : 7219, clientID : 532196782496, non-secure-codec/video-codec:[]:1, 368x480 (fps:15) - sw codec : no, encoder : yes) 02-22 23:34:45.923 7219 7998 D DefaultVideoClientObserver: cameraSendIsAvailable: true 02-22 23:34:45.970 7219 8171 I Logging : HardwareVideoEncoder: Releasing MediaCodec on output thread 02-22 23:34:45.971 7219 8163 I ACodec : [OMX.Exynos.AVC.Encoder] Now Executing->Idle 02-22 23:34:46.004 7219 8163 I ACodec : [OMX.Exynos.AVC.Encoder] Now Idle->Loaded 02-22 23:34:46.005 7219 8163 I ACodec : [OMX.Exynos.AVC.Encoder] Now Loaded 02-22 23:34:46.005 7219 8163 I ACodec : [OMX.Exynos.AVC.Encoder] Now kWhatShutdownCompleted event : 8312 02-22 23:34:46.008 7219 8171 I Logging : HardwareVideoEncoder: Release on output thread done 02-22 23:34:46.010 7219 8163 I ACodec : [OMX.Exynos.AVC.Encoder] Now uninitialized 02-22 23:34:46.011 7219 8163 I ACodec : [] Now kWhatShutdownCompleted event : 8312 02-22 23:34:46.011 7219 8162 I MediaCodec: Codec shutdown complete 02-22 23:34:46.013 4964 29300 I ResourceManagerService: removeResourceInfo pid 7219, removed 176640 (width 368 height 480) remained 1234567890, isLowPriority 0, remained hw codec count 0 02-22 23:34:46.014 7219 8130 I Logging : HardwareVideoEncoder: initEncode: 368 x 480. @ 187kbps. Fps: 15 Use surface mode: false 02-22 23:34:46.031 7219 8130 I ACodec : [] Now uninitialized 02-22 23:34:46.032 7219 8204 I ACodec : [] onAllocateComponent 02-22 23:34:46.035 7219 8204 I OMXClient: IOmx service obtained 02-22 23:34:46.050 7219 8204 I ACodec : [OMX.Exynos.AVC.Encoder] Now Loaded 02-22 23:34:46.054 7219 8130 I Logging : HardwareVideoEncoder: Format: {color-format=19, i-frame-interval=20, mime=video/avc, width=368, bitrate-mode=2, bitrate=187000, frame-rate=15, height=480} 02-22 23:34:46.058 7219 8204 I ACodec : app-pid(7219) 02-22 23:34:46.061 7219 8204 I ACodec : app-name : com.example 02-22 23:34:46.062 7219 8204 I ACodec : setupAVCEncoderParameters with [profile: Baseline] [level: Level21] 02-22 23:34:46.062 7219 8204 I ACodec : Enable Perceptual Video Coding 02-22 23:34:46.063 7219 8204 I ACodec : Success set VideoMinQP(5/5/5) VideoMaxQP(50/50/50) 02-22 23:34:46.063 7219 8204 I ACodec : reconfigEncoder4OtherApps 02-22 23:34:46.065 7219 8204 I ACodec : [OMX.Exynos.AVC.Encoder] cannot encode HDR static metadata. Ignoring. 02-22 23:34:46.065 7219 8204 I ACodec : setupVideoEncoder succeeded 02-22 23:34:46.065 7219 8204 I ACodec : [OMX.Exynos.AVC.Encoder] configure, AMessage : AMessage(what = 'conf', target = 19) = { 02-22 23:34:46.065 7219 8204 I ACodec : int32_t color-format = 19 02-22 23:34:46.065 7219 8204 I ACodec : int32_t i-frame-interval = 20 02-22 23:34:46.065 7219 8204 I ACodec : string mime = "video/avc" 02-22 23:34:46.065 7219 8204 I ACodec : int32_t width = 368 02-22 23:34:46.065 7219 8204 I ACodec : int32_t bitrate-mode = 2 02-22 23:34:46.065 7219 8204 I ACodec : int32_t bitrate = 187000 02-22 23:34:46.065 7219 8204 I ACodec : int32_t frame-rate = 15 02-22 23:34:46.065 7219 8204 I ACodec : int32_t height = 480 02-22 23:34:46.065 7219 8204 I ACodec : int32_t flags = 1 02-22 23:34:46.065 7219 8204 I ACodec : int32_t encoder = 1 02-22 23:34:46.065 7219 8204 I ACodec : } 02-22 23:34:46.085 7219 8204 I ACodec : [OMX.Exynos.AVC.Encoder] Now Loaded->Idle 02-22 23:34:46.128 4964 29300 I ResourceManagerService: addMediaInfo pid 7219, add 176640 (width 368 height 480) remained 1234391250, lowPriority 0, allocated hw codec count, 1 02-22 23:34:46.128 7219 8204 I ACodec : [OMX.Exynos.AVC.Encoder] Now Idle->Executing 02-22 23:34:46.128 4964 29300 I ResourceManagerService: getMediaResourceInfo (PID : 7219, clientID : 532196784128, non-secure-codec/video-codec:[]:1, 368x480 (fps:15) - sw codec : no, encoder : yes) 02-22 23:34:46.129 7219 8203 I MediaCodec: setCodecState state : 0 02-22 23:34:46.131 8445 8480 I DrmMediaResourceHelper: resource type: 2,,,isSecured : falseIsEncoder : truegetCodecState : 0getpid : 7219 02-22 23:34:46.135 7219 8204 I ACodec : [OMX.Exynos.AVC.Encoder] Now Executing 02-22 23:34:46.136 7219 8130 I Logging : HardwareVideoEncoder: initEncode: 720 x 960. @ 863kbps. Fps: 15 Use surface mode: false 02-22 23:34:46.139 7219 8130 I ACodec : [] Now uninitialized 02-22 23:34:46.140 7219 8214 I ACodec : [] onAllocateComponent 02-22 23:34:46.143 7219 8214 I OMXClient: IOmx service obtained 02-22 23:34:46.148 7219 8214 I ACodec : [OMX.Exynos.AVC.Encoder] Now Loaded 02-22 23:34:46.150 7219 8130 I Logging : HardwareVideoEncoder: Format: {color-format=19, i-frame-interval=20, mime=video/avc, width=720, bitrate-mode=2, bitrate=863000, frame-rate=15, height=960} 02-22 23:34:46.152 7219 8214 I ACodec : app-pid(7219) 02-22 23:34:46.155 7219 8214 I ACodec : app-name : com.example 02-22 23:34:46.156 7219 8214 I ACodec : setupAVCEncoderParameters with [profile: Baseline] [level: Level31] 02-22 23:34:46.156 7219 8214 I ACodec : Enable Perceptual Video Coding 02-22 23:34:46.157 7219 8214 I ACodec : Success set VideoMinQP(5/5/5) VideoMaxQP(50/50/50) 02-22 23:34:46.157 7219 8214 I ACodec : reconfigEncoder4OtherApps 02-22 23:34:46.160 7219 8214 I ACodec : [OMX.Exynos.AVC.Encoder] cannot encode HDR static metadata. Ignoring. 02-22 23:34:46.160 7219 8214 I ACodec : setupVideoEncoder succeeded 02-22 23:34:46.160 7219 8214 I ACodec : [OMX.Exynos.AVC.Encoder] configure, AMessage : AMessage(what = 'conf', target = 22) = { 02-22 23:34:46.160 7219 8214 I ACodec : int32_t color-format = 19 02-22 23:34:46.160 7219 8214 I ACodec : int32_t i-frame-interval = 20 02-22 23:34:46.160 7219 8214 I ACodec : string mime = "video/avc" 02-22 23:34:46.160 7219 8214 I ACodec : int32_t width = 720 02-22 23:34:46.160 7219 8214 I ACodec : int32_t bitrate-mode = 2 02-22 23:34:46.160 7219 8214 I ACodec : int32_t bitrate = 863000 02-22 23:34:46.160 7219 8214 I ACodec : int32_t frame-rate = 15 02-22 23:34:46.160 7219 8214 I ACodec : int32_t height = 960 02-22 23:34:46.160 7219 8214 I ACodec : int32_t flags = 1 02-22 23:34:46.160 7219 8214 I ACodec : int32_t encoder = 1 02-22 23:34:46.160 7219 8214 I ACodec : } 02-22 23:34:46.185 7219 8214 I ACodec : [OMX.Exynos.AVC.Encoder] Now Loaded->Idle 02-22 23:34:46.210 7219 8214 I ACodec : [OMX.Exynos.AVC.Encoder] Now Idle->Executing 02-22 23:34:46.211 4964 5272 I ResourceManagerService: addMediaInfo pid 7219, add 691200 (width 720 height 960) remained 1233700050, lowPriority 0, allocated hw codec count, 2 02-22 23:34:46.211 7219 8214 I ACodec : [OMX.Exynos.AVC.Encoder] Now Executing 02-22 23:34:46.211 4964 5272 I ResourceManagerService: getMediaResourceInfo (PID : 7219, clientID : 532196782592, non-secure-codec/video-codec:[]:1, 720x960 (fps:15) - sw codec : no, encoder : yes) 02-22 23:34:46.211 4964 5272 I ResourceManagerService: getMediaResourceInfo (PID : 7219, clientID : 532196784128, non-secure-codec/video-codec:[]:1, 368x480 (fps:15) - sw codec : no, encoder : yes) 02-22 23:34:46.212 7219 8213 I MediaCodec: setCodecState state : 0 02-22 23:34:46.217 8445 8480 I DrmMediaResourceHelper: resource type: 2,,,isSecured : falseIsEncoder : truegetCodecState : 0getpid : 7219 02-22 23:34:46.217 8445 8480 I DrmMediaResourceHelper: resource type: 2,,,isSecured : falseIsEncoder : truegetCodecState : 0getpid : 7219 02-22 23:34:46.262 7219 8212 I Logging : HardwareVideoEncoder: Config frame generated. Offset: 0. Size: 24 02-22 23:34:46.265 7219 8212 I Logging : HardwareVideoEncoder: Sync frame generated 02-22 23:34:46.266 7219 8212 I Logging : HardwareVideoEncoder: Prepending config frame of size 24 to output buffer with offset 0, size 1298 02-22 23:34:46.268 7219 8203 I MediaCodec: setCodecState state : 1 02-22 23:34:46.270 8445 8480 I DrmMediaResourceHelper: resource type: 2,,,isSecured : falseIsEncoder : truegetCodecState : 0getpid : 7219 02-22 23:34:46.270 8445 8480 I DrmMediaResourceHelper: resource type: 2,,,isSecured : falseIsEncoder : truegetCodecState : 1getpid : 7219 02-22 23:34:46.275 7219 8222 I Logging : HardwareVideoEncoder: Config frame generated. Offset: 0. Size: 25 02-22 23:34:46.279 7219 8222 I Logging : HardwareVideoEncoder: Sync frame generated 02-22 23:34:46.279 7219 8222 I Logging : HardwareVideoEncoder: Prepending config frame of size 25 to output buffer with offset 0, size 5053 02-22 23:34:46.281 7219 8213 I MediaCodec: setCodecState state : 1 02-22 23:34:46.283 8445 8480 I DrmMediaResourceHelper: resource type: 2,,,isSecured : falseIsEncoder : truegetCodecState : 1getpid : 7219 02-22 23:34:46.283 8445 8480 I DrmMediaResourceHelper: resource type: 2,,,isSecured : falseIsEncoder : truegetCodecState : 1getpid : 7219 02-22 23:34:48.017 4945 12935 I CameraService: handleEvictionsLocked: priorityMap[0] : pid=7219, priorityScore=0, state=2 02-22 23:34:48.017 4945 12935 I CameraService: wouldEvictLocked: owner=15824, priority-score=999, highestPriorityOwner=7219, highestPriority-score=0 02-22 23:34:48.017 4945 12935 I CameraService: wouldEvictLocked: Build eviction list of clients to remove - curOwner=7219, curPriority-score=0, conflicting=true 02-22 23:34:48.017 4945 12935 I CameraService: wouldEvictLocked: owner=15824, priority-score=999, highestPriorityOwner=7219, highestPriority-score=0 02-22 23:34:48.017 4945 12935 I CameraService: wouldEvictLocked: Build eviction list of clients to remove - curOwner=7219, curPriority-score=0, conflicting=true 02-22 23:34:48.017 4945 12935 E CameraService: Conflicts with: Device 0, client package com.example (PID 7219, score 0, state 2) 02-22 23:34:51.040 4945 12935 I CameraService: handleEvictionsLocked: priorityMap[0] : pid=7219, priorityScore=0, state=2 02-22 23:34:51.040 4945 12935 I CameraService: wouldEvictLocked: owner=15824, priority-score=999, highestPriorityOwner=7219, highestPriority-score=0 02-22 23:34:51.040 4945 12935 I CameraService: wouldEvictLocked: Build eviction list of clients to remove - curOwner=7219, curPriority-score=0, conflicting=true 02-22 23:34:51.040 4945 12935 I CameraService: wouldEvictLocked: owner=15824, priority-score=999, highestPriorityOwner=7219, highestPriority-score=0 02-22 23:34:51.040 4945 12935 I CameraService: wouldEvictLocked: Build eviction list of clients to remove - curOwner=7219, curPriority-score=0, conflicting=true 02-22 23:34:51.040 4945 12935 E CameraService: Conflicts with: Device 0, client package com.example (PID 7219, score 0, state 2)

Screenshots If applicable, add screenshots to help explain your problem.

Test environment Info (please complete the following information):

Additional context Add any other context about the problem here.

dylonChime commented 2 years ago

Hi @MjdBh,

Thanks for the logs and device info, but I'm not sure I understand the issue. Can you provide more context?

Can you provide a detailed description or your issue?

Also can you provide repro steps for the demo?

ronakBarati commented 2 years ago

Hi, We have implemented a step-by-step chime Android implementation in our code, but when we run the code, this error appears(our device is Samsung note 10+).The app crashed after accessing the camera. To this description, I have attached a file. Could you please check this file and let me know the results? chimeExceoption.txt

dylonChime commented 2 years ago

I'm not able to reproduce this on our demo app, but I did see this line in your logs:

libc++abi: terminating with uncaught exception of type std::bad_cast: std::bad_cast

This is an active issue in the React Native repo with many potential workarounds you could try: https://github.com/facebook/react-native/issues/29377

Do any of the workarounds work for you?

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

linsang21 commented 2 years ago

Close the issue due to no response. Feel free to reopen if problem persists.