App Crashing right after ending the call in android
Here’s the crash log
2021-02-23 17:08:24.450 28047-28047/? W/adbd: timeout expired while flushing socket, closing
2021-02-23 17:08:24.662 1629-2695/? D/JobScheduler.Temperature: get temperature=37.809
2021-02-23 17:08:24.450 28047-28047/? I/chatty: uid=2000(shell) /apex/com.android.adbd/bin/adbd identical 1 line
2021-02-23 17:08:24.663 28047-28047/? W/adbd: timeout expired while flushing socket, closing
2021-02-23 17:08:24.668 32729-401/com.urspace I/ReactNativeJS: CallScreen render Called
2021-02-23 17:08:24.693 1131-1511/? E/HWComposer: getDisplayedContentSample: getDisplayedContentSample failed for display 19260944289885569: Unsupported (8)
2021-02-23 17:08:25.256 1629-2606/? D/system_server: OrmsNativeProxyInner set notification pid=1629, uid=1000, msg_src=1000, msg_type=0, param1=-1, param2=-1, param3=-1, param4= !
2021-02-23 17:08:25.256 1629-2606/? D/ORMS_CORE: Set notification: src: 1000, type: 0, p1: -1, p2: -1, p3: -1, p4:
2021-02-23 17:08:25.256 1629-2606/? D/system_server: OrmsNativeProxyInner set scene action pid=1629, uid=1000, scene=, action=ORMS_ACTION_TOUCH_BOOST, timeout=150
2021-02-23 17:08:25.256 1629-2606/? D/ORMS_CORE: Set scene action identity: inputflinger scene: , action: ORMS_ACTION_TOUCH_BOOST, timeout: 150, handle: 362543248
2021-02-23 17:08:25.258 32729-32729/com.urspace D/ViewRootImpl: enqueueInputEventMotionEvent { action=ACTION_DOWN, actionButton=0, id[0]=0, x[0]=753.0, y[0]=2285.0, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=301610014, downTime=301610014, deviceId=4, source=0x1002, displayId=0 }
2021-02-23 17:08:25.258 32729-32729/com.urspace D/ViewRootImpl[MainActivity]: processMotionEvent MotionEvent { action=ACTION_DOWN, actionButton=0, id[0]=0, x[0]=753.0, y[0]=2285.0, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=301610014, downTime=301610014, deviceId=4, source=0x1002, displayId=0 }
2021-02-23 17:08:25.259 3474-3927/? D/Launcher.Quickstep-ColorInputManager: onInputEvent → ACTION_DOWN, rawX = 753.0 ,rawY = 2285.0
2021-02-23 17:08:25.260 3474-3474/? D/Launcher.Quickstep-OrientationTouchTransformer: original: 753.0, 2285.0 new: 753.0, 2285.0 rect: RectF(360.0, 2346.0, 720.0, 2400.0) rotation: 0 forceTransform: false contains: false
2021-02-23 17:08:25.260 3474-3474/? D/Launcher.Quickstep-TouchInteractionService: onInputEvent: (x,y) = (753.0,2285.0), navmode = NO_BUTTON, offsetState = false, displayRotation = 0
2021-02-23 17:08:25.260 3474-3474/? D/Launcher.Quickstep-OrientationTouchTransformer: touchInValidSwipeRegions:, x = 753.0, y = 2285.0, rect = null
2021-02-23 17:08:25.263 3474-3474/? D/Launcher.Quickstep-TouchInteractionService: Consumer = TYPE_NO_OP
2021-02-23 17:08:25.263 32729-32729/com.urspace D/ViewRootImpl[MainActivity]: dispatchPointerEvent handled=true, event=MotionEvent { action=ACTION_DOWN, actionButton=0, id[0]=0, x[0]=753.0, y[0]=2285.0, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=301610014, downTime=301610014, deviceId=4, source=0x1002, displayId=0 }
2021-02-23 17:08:25.392 1629-2606/? D/system_server: OrmsNativeProxyInner set notification pid=1629, uid=1000, msg_src=1000, msg_type=1, param1=-1, param2=-1, param3=-1, param4= !
2021-02-23 17:08:25.392 1629-2606/? D/ORMS_CORE: Set notification: src: 1000, type: 1, p1: -1, p2: -1, p3: -1, p4:
2021-02-23 17:08:25.394 32729-32729/com.urspace D/ViewRootImpl[MainActivity]: processMotionEvent MotionEvent { action=ACTION_UP, actionButton=0, id[0]=0, x[0]=753.0, y[0]=2285.0, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=301610149, downTime=301610014, deviceId=4, source=0x1002, displayId=0 }
2021-02-23 17:08:25.396 32729-32729/com.urspace D/ViewRootImpl[MainActivity]: dispatchPointerEvent handled=true, event=MotionEvent { action=ACTION_UP, actionButton=0, id[0]=0, x[0]=753.0, y[0]=2285.0, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=301610149, downTime=301610014, deviceId=4, source=0x1002, displayId=0 }
2021-02-23 17:08:25.429 32729-401/com.urspace I/ReactNativeJS: CallScreen render Called
2021-02-23 17:08:25.459 32729-401/com.urspace I/ReactNativeJS: null, ‘InitialCallScreen’
2021-02-23 17:08:25.461 32729-401/com.urspace I/ReactNativeJS: Members
2021-02-23 17:08:25.468 32729-401/com.urspace I/ReactNativeJS: CallScreen render Called
2021-02-23 17:08:25.477 32729-401/com.urspace I/ReactNativeJS: null, ‘Members’
2021-02-23 17:08:25.504 32729-32729/com.urspace I/oplus.android.OplusFrameworkFactoryImpl: get feature:IOplusScreenModeFeature
2021-02-23 17:08:25.504 32729-32729/com.urspace I/oplus.android.OplusFrameworkFactoryImpl: getOplusScreenModeFeature
2021-02-23 17:08:25.505 32729-32729/com.urspace I/oplus.android.OplusFrameworkFactoryImpl: get feature:IOplusScreenModeFeature
2021-02-23 17:08:25.505 32729-32729/com.urspace I/oplus.android.OplusFrameworkFactoryImpl: getOplusScreenModeFeature
2021-02-23 17:08:25.505 32729-32729/com.urspace I/oplus.android.OplusFrameworkFactoryImpl: get feature:IOplusScreenModeFeature
2021-02-23 17:08:25.505 32729-32729/com.urspace I/oplus.android.OplusFrameworkFactoryImpl: getOplusScreenModeFeature
2021-02-23 17:08:25.505 32729-32729/com.urspace I/oplus.android.OplusFrameworkFactoryImpl: get feature:IOplusScreenModeFeature
2021-02-23 17:08:25.505 32729-32729/com.urspace I/oplus.android.OplusFrameworkFactoryImpl: getOplusScreenModeFeature
2021-02-23 17:08:25.505 32729-32729/com.urspace I/oplus.android.OplusFrameworkFactoryImpl: get feature:IOplusScreenModeFeature
2021-02-23 17:08:25.505 32729-32729/com.urspace I/oplus.android.OplusFrameworkFactoryImpl: getOplusScreenModeFeature
2021-02-23 17:08:25.505 32729-32729/com.urspace I/oplus.android.OplusFrameworkFactoryImpl: get feature:IOplusScreenModeFeature
2021-02-23 17:08:25.505 32729-32729/com.urspace I/oplus.android.OplusFrameworkFactoryImpl: getOplusScreenModeFeature
2021-02-23 17:08:25.844 32729-1894/com.urspace I/ReactNativeJS: ‘CCLOG : Native received : : [object Object]’, undefined
2021-02-23 17:08:25.847 28047-28047/? W/adbd: timeout expired while flushing socket, closing
2021-02-23 17:08:25.855 32729-1894/com.urspace I/ReactNativeJS: 'CCLOG : CallingComponent : onRemoteTrackRemoved … ', { _events: { ‘track.stopped’: [Function] },
_maxListeners: undefined,
addEventListener: [Function],
off: [Function],
removeEventListener: [Function],
containers: [],
conference: null,
audioLevel: 0.00009155552842799158,
type: ‘audio’,
track:
{ _enabled: true,
id: ‘7a8b89bf-5833-4430-9d49-8a2a4a17ad03’,
kind: ‘audio’,
label: ‘7a8b89bf-5833-4430-9d49-8a2a4a17ad03’,
muted: false,
readonly: true,
remote: false,
readyState: ‘ended’ },
videoType: null,
handlers: {},
disposed: false,
_streamInactiveHandler: [Function],
stream:
{ active: true,
_tracks:
[ { _enabled: true,
id: ‘7a8b89bf-5833-4430-9d49-8a2a4a17ad03’,
kind: ‘audio’,
label: ‘7a8b89bf-5833-4430-9d49-8a2a4a17ad03’,
muted: false,
readonly: true,
remote: false,
readyState: ‘ended’ } ],
id: ‘eb073ace-3dc7-4330-9254-892af6168fed’,
_reactTag: ‘eb073ace-3dc7-4330-9254-892af6168fed’ },
storedMSID: ‘eb073ace-3dc7-4330-9254-892af6168fed 7a8b89bf-5833-4430-9d49-8a2a4a17ad03’,
_setEffectInProgress: false,
rtcId: 1,
sourceId: undefined,
sourceType: undefined,
resolution: undefined,
deviceId: undefined,
_prevSetMuted: { _40: 0, _65: 1, _55: undefined, _72: null },
_facingMode: undefined,
_trackEnded: false,
_hasSentData: false,
_testDataSent: true,
_realDeviceId: undefined,
_trackMutedTS: 0,
_onDeviceListWillChange: [Function],
muteHandler: [Function: bound ],
audioLevelHandler: [Function: bound ],
_stopStreamInProgress: false }
2021-02-23 17:08:25.855 32729-1895/com.urspace E/CCLOG: EVENT_END_CALL_SESSION
2021-02-23 17:08:25.855 32729-1895/com.urspace E/CCLOG: onHangUp clicked
2021-02-23 17:08:25.855 32729-1895/com.urspace E/CCLOG: Local User = [object Object]
2021-02-23 17:08:25.856 32729-1895/com.urspace E/CCLOG: Audio dispoce error finally
2021-02-23 17:08:25.857 32729-1894/com.urspace I/ReactNativeJS: 'CCLOG : CallingComponent : selectParticipants ids ', [Function]
2021-02-23 17:08:25.857 32729-1898/com.urspace I/org.webrtc.Logging: WebRtcAudioRecordExternal: stopRecording
2021-02-23 17:08:25.858 32729-1898/com.urspace I/org.webrtc.Logging: WebRtcAudioRecordExternal: stopThread
2021-02-23 17:08:25.859 32729-1894/com.urspace I/ReactNativeJS: ‘this.mainVideoSpeaker’, { name: ‘4urlive331 hameed Zaheer’,
avatar: ‘https://storage.4urspace.com/user-uploads/thumb_image-c56447a2-1d53-4553-826d-69b95cb23285_27_9_2020_19_49_0_27_9_2020_14_19_14.jpg’,
status: ‘active’,
isVideoMuted: false,
isAudioMuted: false,
isLocalUser: true,
audioTrack:
{ _events: { ‘track.stopped’: [Function] },
_maxListeners: undefined,
addEventListener: [Function],
off: [Function],
removeEventListener: [Function],
containers: [],
conference: null,
audioLevel: 0.00009155552842799158,
type: ‘audio’,
track:
{ _enabled: true,
id: ‘7a8b89bf-5833-4430-9d49-8a2a4a17ad03’,
kind: ‘audio’,
label: ‘7a8b89bf-5833-4430-9d49-8a2a4a17ad03’,
muted: false,
readonly: true,
remote: false,
readyState: ‘ended’ },
videoType: null,
handlers: {},
disposed: false,
_streamInactiveHandler: [Function],
stream:
{ active: true,
_tracks:
[ { _enabled: true,
id: ‘7a8b89bf-5833-4430-9d49-8a2a4a17ad03’,
kind: ‘audio’,
label: ‘7a8b89bf-5833-4430-9d49-8a2a4a17ad03’,
muted: false,
readonly: true,
remote: false,
readyState: ‘ended’ } ],
id: ‘eb073ace-3dc7-4330-9254-892af6168fed’,
_reactTag: ‘eb073ace-3dc7-4330-9254-892af6168fed’ },
storedMSID: ‘eb073ace-3dc7-4330-9254-892af6168fed 7a8b89bf-5833-4430-9d49-8a2a4a17ad03’,
_setEffectInProgress: false,
rtcId: 1,
sourceId: undefined,
sourceType: undefined,
resolution: undefined,
deviceId: undefined,
_prevSetMuted: { _40: 0, _65: 1, _55: undefined, _72: null },
_facingMode: undefined,
_trackEnded: false,
_hasSentData: false,
_testDataSent: true,
_realDeviceId: undefined,
_trackMutedTS: 0,
_onDeviceListWillChange: [Function],
muteHandler: [Function: bound ],
audioLevelHandler: [Function: bound ],
_stopStreamInProgress: false },
id: ‘94a347e4’,
uid: ‘6661’,
joinedAT: ‘1614080289954’ }
2021-02-23 17:08:25.863 32729-2292/com.urspace D/AudioRecord: stop(3171): mActive:1
2021-02-23 17:08:25.863 32729-2292/com.urspace D/AudioRecord: mAudioRecord->stop()
2021-02-23 17:08:25.869 32729-1894/com.urspace I/ReactNativeJS: ‘CCLOG : CallEvent received : : [object Object]’, undefined
2021-02-23 17:08:25.876 32729-1894/com.urspace I/ReactNativeJS: 'CCLOG : CallingComponent : onRemoteTrackRemoved … ', { _events: {},
_maxListeners: undefined,
addEventListener: [Function],
off: [Function],
removeEventListener: [Function],
containers: [],
conference:
{ eventEmitter:
{ _events:
{ ‘conference.trackMuteChanged’:
[ [Function],
[Function: bound value],
[Function],
[Function],
[Function: v],
[Function: v] ],
‘conference.userJoined’: [ [Function], [Function: bound value], [Function] ],
‘conference.userLeft’: [ [Function], [Function: bound value], [Function] ],
‘conference.endpoint_message_received’: [ [Function] ],
‘conference.p2pStatus’: [ [Function] ],
‘conference.trackAdded’:
[ [Function: bound value],
[Function],
[Function],
[Function: v],
[Function: v] ],
‘conference.trackRemoved’: [ [Function] ],
‘conference.lastNEndpointsChanged’: [ [Function] ],
‘conference.audioLevelsChanged’: [Function: bound value],
‘conference.connectionInterrupted’: [Function],
‘conference.server_region_changed’: [Function],
‘conference.propertiesChanged’: [Function],
‘cq.local_stats_updated’: [ [Function] ],
‘cq.remote_stats_updated’: [ [Function] ],
‘conference.dominantSpeaker’: [ [Function: bound value], [Function] ],
‘conference.displayNameChanged’: [Function: bound value],
‘conference.joined’: [Function],
‘conference.participant_conn_status_changed’: [Function],
‘conference.recorderStateChanged’: [Function] },
_maxListeners: undefined },
options:
{ name: ‘1614080280e4770c6f296e8665064b0945632aad9eb7cdd12d’,
config:
{ openBridgeChannel: ‘websocket’,
enableNoisyMicDetection: true,
channelLastN: 10,
websocketKeepAlive: -1,
testing: { octo: { probability: 1 } },
e2eping: { pingInterval: -1 },
deploymentInfo: { userRegion: ‘us’ },
enableTalkWhileMuted: true },
connection:
{ appID: null,
token: null,
options:
{ hosts:
{ domain: ‘rtc-us.cometchat.io’,
muc: ‘conference.rtc-us.cometchat.io’,
focus: ‘focus.rtc-us.cometchat.io’ },
serviceUrl: ‘wss://xmpp.rtc-us.cometchat.io/xmpp-websocket’,
bosh: ‘https://xmpp.rtc-us.cometchat.io/http-bind’,
clientNode: ‘http://jitsi.org/jitsimeet’ },
xmpp:
{ eventEmitter:
{ _events:
{ ‘connection.connectionFailed’: [ [Function], [Function: value] ],
‘connection.connectionDisconnected’: [Function],
‘connection.connectionEstablished’: [Function],
‘xmpp.speaker_stats_received’: [Function: bound value] },
_maxListeners: undefined },
on: [Function: value],
addEventListener: [Function: value],
off: [Function: value],
removeEventListener: [Function: value],
connection:
{ eventEmitter:
{ _events: { CONN_STATUS_CHANGED: [ [Function: bound value], [Function: bound value] ] },
_maxListeners: undefined },
on: [Function: value],
addEventListener: [Function: value],
off: [Function: value],
removeEventListener: [Function: value],
_options: { enableWebsocketResume: true, websocketKeepAlive: 240000 },
_resumeRetryN: 0,
_stropheConn:
{ service: ‘wss://xmpp.rtc-us.cometchat.io/xmpp-websocket’,
options: {},
2021-02-23 17:08:25.876 32729-1894/com.urspace I/ReactNativeJS: _proto: { _conn: [Circular], strip: ‘wrapper’, socket: null },
jid: 'lujjkixli8yfsrbp@rtc-us.c
2021-02-23 17:08:25.876 32729-1894/com.urspace I/ReactNativeJS: 'CCLOG : CallingComponent : selectParticipants ids ', [Function]
2021-02-23 17:08:25.877 32729-1894/com.urspace I/ReactNativeJS: ‘this.mainVideoSpeaker’, { name: ‘4urlive331 hameed Zaheer’,
avatar: ‘https://storage.4urspace.com/user-uploads/thumb_image-c56447a2-1d53-4553-826d-69b95cb23285_27_9_2020_19_49_0_27_9_2020_14_19_14.jpg’,
status: ‘active’,
isVideoMuted: false,
isAudioMuted: false,
isLocalUser: true,
audioTrack:
{ _events: { ‘track.stopped’: [Function] },
_maxListeners: undefined,
addEventListener: [Function],
off: [Function],
removeEventListener: [Function],
containers: [],
conference: null,
audioLevel: 0.00009155552842799158,
type: ‘audio’,
track:
{ _enabled: true,
id: ‘7a8b89bf-5833-4430-9d49-8a2a4a17ad03’,
kind: ‘audio’,
label: ‘7a8b89bf-5833-4430-9d49-8a2a4a17ad03’,
muted: false,
readonly: true,
remote: false,
readyState: ‘ended’ },
videoType: null,
handlers: {},
disposed: false,
_streamInactiveHandler: [Function],
stream:
{ active: true,
_tracks:
[ { _enabled: true,
id: ‘7a8b89bf-5833-4430-9d49-8a2a4a17ad03’,
kind: ‘audio’,
label: ‘7a8b89bf-5833-4430-9d49-8a2a4a17ad03’,
muted: false,
readonly: true,
remote: false,
readyState: ‘ended’ } ],
id: ‘eb073ace-3dc7-4330-9254-892af6168fed’,
_reactTag: ‘eb073ace-3dc7-4330-9254-892af6168fed’ },
storedMSID: ‘eb073ace-3dc7-4330-9254-892af6168fed 7a8b89bf-5833-4430-9d49-8a2a4a17ad03’,
_setEffectInProgress: false,
rtcId: 1,
sourceId: undefined,
sourceType: undefined,
resolution: undefined,
deviceId: undefined,
_prevSetMuted: { _40: 0, _65: 1, _55: undefined, _72: null },
_facingMode: undefined,
_trackEnded: false,
_hasSentData: false,
_testDataSent: true,
_realDeviceId: undefined,
_trackMutedTS: 0,
_onDeviceListWillChange: [Function],
muteHandler: [Function: bound ],
audioLevelHandler: [Function: bound ],
_stopStreamInProgress: false },
id: ‘94a347e4’,
uid: ‘6661’,
joinedAT: ‘1614080289954’ }
2021-02-23 17:08:25.880 32729-1895/com.urspace E/CCLOG: Local User = [object Object]
2021-02-23 17:08:25.880 32729-1895/com.urspace E/CCLOG: Audio dispoce error finally
2021-02-23 17:08:25.884 1629-4666/? I/system_server: oneway function results will be dropped but finished with status OK and parcel size 4
2021-02-23 17:08:25.884 32729-1894/com.urspace E/ReactNativeJS: TypeError: null is not an object (evaluating ‘this.socket.send’)
2021-02-23 17:08:25.884 10057-10057/? D/audio_hw_primary: in_standby: enter: stream (0xe7a83280) usecase(34: audio-record-voip)
--------- beginning of crash
2021-02-23 17:08:25.890 32729-1895/com.urspace E/AndroidRuntime: FATAL EXCEPTION: mqt_native_modules
Process: com.urspace, PID: 32729
com.facebook.react.common.JavascriptException: TypeError: null is not an object (evaluating ‘this.socket.send’), stack:
_onIdle@442:58817
_onIdle@442:38511
flush@442:25821
_send@442:59805
send@442:25755
requestAcknowledgement@442:665424
@442:671802
@391:500
value@50:1280
value@37:3685
@37:841
value@37:2939
value@37:813
value@-1
at com.facebook.react.modules.core.ExceptionsManagerModule.reportException(ExceptionsManagerModule.java:71)
at java.lang.reflect.Method.invoke(Native Method)
at com.facebook.react.bridge.JavaMethodWrapper.invoke(JavaMethodWrapper.java:371)
at com.facebook.react.bridge.JavaModuleWrapper.invoke(JavaModuleWrapper.java:150)
at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:26)
at android.os.Looper.loop(Looper.java:254)
at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(MessageQueueThreadImpl.java:225)
at java.lang.Thread.run(Thread.java:923)
2021-02-23 17:08:25.906 10057-10057/? D/audio_hw_primary: stop_input_stream: enter: usecase(34: audio-record-voip)
2021-02-23 17:08:25.906 10057-10057/? D/audio_hw_primary: disable_audio_route: reset and update mixer path: audio-record-voip
2021-02-23 17:08:25.908 10057-10057/? D/sound_trigger_hw: handle_audio_ec_ref_enabled: Enter
2021-02-23 17:08:25.908 10057-10057/? D/sound_trigger_hw: handle_audio_ec_ref_enabled: Exit audio ec ref=0