Kakao i Connect Live 커뮤니티

릴리즈가 아닌 디버그버전에서만 생기는 문제에 대한 문의입니다

안녕하세요.

디버그버전에서만 유독 방송을 시청하고 메인화면으로 나온 직후 앱이 죽는 문제에 대한 문의입니다.
릴리즈버전에서는 지금도 계속 방송을 들락날락하면서 확인하고있지만(현 시점에서 대략 10번내외정도 되는거같네요) 별다른 문제가 안생겼는데, 디버그버전에서는 방송에 들어간 직후에 바로 나와도 문제가 발생합니다.

좀 더 디테일하게 말씀드리자면,

RemonCast를 이용하는 액티비티로 진입했다가, RemonCast를 이용하지 않는 메인 액티비티로 나오는 타이밍에 아래의 에러로그와 같은 로그를 남기며 앱이 죽습니다. RemonCast를 이용하는 액티비티를 띄워둔 시간과는 무관한것으로 추측되고(시간대별로 확인해봣는데 1초만 들어갔다나와도 죽는걸 확인했습니다) 마켓에 올라가있는 릴리즈버전에선 아직 앱이 죽는현상은 확인되지 않았지만, 디버그버전에선 100%에 가깝게 죽는것으로 확인됩니다.

아래는 에러로그입니다.

2018-12-26 11:51:00.087 16653-16813/? W/System.err: java.lang.IllegalArgumentException: Receiver not registered: org.webrtc.NetworkMonitorAutoDetect@dbfb73f
2018-12-26 11:51:00.087 16653-16813/? W/System.err: at android.app.LoadedApk.forgetReceiverDispatcher(LoadedApk.java:1221)
2018-12-26 11:51:00.087 16653-16813/? W/System.err: at android.app.ContextImpl.unregisterReceiver(ContextImpl.java:1434)
2018-12-26 11:51:00.087 16653-16813/? W/System.err: at android.content.ContextWrapper.unregisterReceiver(ContextWrapper.java:639)
2018-12-26 11:51:00.087 16653-16813/? W/System.err: at org.webrtc.NetworkMonitorAutoDetect.unregisterReceiver(NetworkMonitorAutoDetect.java:751)
2018-12-26 11:51:00.087 16653-16813/? W/System.err: at org.webrtc.NetworkMonitorAutoDetect.destroy(NetworkMonitorAutoDetect.java:729)
2018-12-26 11:51:00.087 16653-16813/? W/System.err: at org.webrtc.NetworkMonitor.stopMonitoring(NetworkMonitor.java:129)
2018-12-26 11:51:00.087 16653-16813/? W/System.err: at org.webrtc.NetworkMonitor.stopMonitoring(NetworkMonitor.java:138)
2018-12-26 11:51:00.087 16653-16813/? E/rtc: #
# Fatal error in: gen/sdk/android/generated_base_jni/jni/…/…/…/…/…/…/…/…/…/usr/local/google/home/sakal/code/webrtc-aar-release/src/sdk/android/src/jni/jni_generator_helper.h, line 85
# last system error: 0
# Check failed: !env->ExceptionCheck()
#

답변 부탁드립니다 감사합니다

답변이 늦어서 죄송합니다^^;
혹시 지금도 그러시는지 확인 가능한가요?

답변이 늦어서 죄송합니다^^;
지금도 여전히 같은문제가 생기고있습니다. 이 질문글을 올렸을때는 디버그버전에서만 생겨서 우선순위에서 밀렸었는데, 얼마전부터 릴리즈버전(마켓버전)에서도 이 문제로 크래시가 나기 시작했습니다.
혹시 뭐가 원인인지 알 수 있을까요…?

안녕하세요 ^^
원인을 찾아가봐야 할듯 합니다.
우선 sdk 버전을 2.2.9 버전으로 맞춰서 확인 부탁드립니다.

네 2.2.9버전으로 업데이트 후 확인해봣는데도 여전히 같은 현상이 나타납니다. 아래는 로그 전문입니다.
(해당되는 부분만 발췌하려했는데 WebRTC 관련 로그랑 안드로이드 자체의 로그랑 섞여서 나와 구분이 힘들어 전체로그를 올립니다 죄송합니다 ㅠㅠ)

2019-02-21 16:43:43.969 15267-15267/kr.co.merryholiday.tripme I/MediaPlayerNative: seekTo (0, 0)
2019-02-21 16:43:43.969 15267-15267/kr.co.merryholiday.tripme E/MediaPlayerNative: Attempt to perform seekTo in wrong state: mPlayer=0x7bb5a25640, mCurrentState=0
2019-02-21 16:43:43.969 15267-15267/kr.co.merryholiday.tripme I/MediaPlayerNative: message received msg=100, ext1=-38, ext2=0
2019-02-21 16:43:43.969 15267-15267/kr.co.merryholiday.tripme E/MediaPlayerNative: error (-38, 0)
2019-02-21 16:43:43.978 15267-15267/kr.co.merryholiday.tripme E/MediaPlayer: Error (-38,0)
2019-02-21 16:43:43.979 15267-15267/kr.co.merryholiday.tripme E/MediaPlayer: Error (-38,0)
2019-02-21 16:43:43.984 15267-15425/kr.co.merryholiday.tripme V/FA: Recording user engagement, ms: 42429
2019-02-21 16:43:43.985 15267-15425/kr.co.merryholiday.tripme V/FA: Connecting to remote service
2019-02-21 16:43:43.986 15267-15267/kr.co.merryholiday.tripme I/MediaPlayer: create HiFiDBObserver
2019-02-21 16:43:43.990 15267-15267/kr.co.merryholiday.tripme I/MediaPlayer: Hi-Fi DAC Setting is changed to OFF
2019-02-21 16:43:43.991 15267-15267/kr.co.merryholiday.tripme I/MediaPlayerNative: start
2019-02-21 16:43:43.991 15267-15267/kr.co.merryholiday.tripme E/MediaPlayerNative: start called in state 0, mPlayer(0x7bb5a25640)
2019-02-21 16:43:43.991 15267-15267/kr.co.merryholiday.tripme I/MediaPlayerNative: message received msg=100, ext1=-38, ext2=0
2019-02-21 16:43:43.991 15267-15267/kr.co.merryholiday.tripme E/MediaPlayerNative: error (-38, 0)
2019-02-21 16:43:44.002 15267-15267/kr.co.merryholiday.tripme E/MediaPlayer: Error (-38,0)
2019-02-21 16:43:44.004 15267-15267/kr.co.merryholiday.tripme D/Editor: hideClipTrayIfNeeded() TextView is focused!! hideClipTray()
2019-02-21 16:43:44.005 15267-15425/kr.co.merryholiday.tripme V/FA: Activity paused, time: 279716677
2019-02-21 16:43:44.009 15267-15425/kr.co.merryholiday.tripme D/FA: Logging event (FE): user_engagement(e), Bundle[{firebase_event_origin(o)=auto, engagement_time_msec(et)=42429, firebase_screen_class(sc)=LiveDetailActivity, firebase_screen_id(si)=-7175328281995591453}]
2019-02-21 16:43:44.052 15267-15425/kr.co.merryholiday.tripme V/FA: Connection attempt already in progress
2019-02-21 16:43:44.058 15267-15425/kr.co.merryholiday.tripme D/FA: Logging event (FE): screen_view(vs), Bundle[{firebase_event_origin(o)=auto, firebase_previous_class(pc)=LiveDetailActivity, firebase_previous_id(pi)=-7175328281995591453, firebase_screen_class(sc)=MainActivity, firebase_screen_id(si)=-7175328281995591454}]
2019-02-21 16:43:44.087 15267-15425/kr.co.merryholiday.tripme V/FA: Connection attempt already in progress
2019-02-21 16:43:44.088 15267-15425/kr.co.merryholiday.tripme V/FA: Connection attempt already in progress
2019-02-21 16:43:44.088 15267-15425/kr.co.merryholiday.tripme V/FA: Activity resumed, time: 279716709
2019-02-21 16:43:44.130 15267-15425/kr.co.merryholiday.tripme D/FA: Connected to remote service
2019-02-21 16:43:44.131 15267-15425/kr.co.merryholiday.tripme V/FA: Processing queued up service tasks: 4
2019-02-21 16:43:44.149 15267-15267/kr.co.merryholiday.tripme I/Timeline: Timeline: Activity_idle id: android.os.BinderProxy@7d323bc time:158177310
2019-02-21 16:43:44.264 15267-15267/kr.co.merryholiday.tripme I/MediaPlayerNative: stop
2019-02-21 16:43:44.265 15267-15267/kr.co.merryholiday.tripme E/MediaPlayerNative: stop called in state 0, mPlayer(0x7bb5a25640)
2019-02-21 16:43:44.265 15267-15267/kr.co.merryholiday.tripme I/MediaPlayerNative: message received msg=100, ext1=-38, ext2=0
2019-02-21 16:43:44.265 15267-15267/kr.co.merryholiday.tripme E/MediaPlayerNative: error (-38, 0)
2019-02-21 16:43:44.266 15267-15267/kr.co.merryholiday.tripme D/REMON: remon soft close is called
2019-02-21 16:43:44.289 15267-15267/kr.co.merryholiday.tripme D/WebSocketClient: WSClient close is done
2019-02-21 16:43:44.289 15267-15430/kr.co.merryholiday.tripme D/PCRTCClient: Closing peer connection.
2019-02-21 16:43:44.289 15267-15267/kr.co.merryholiday.tripme I/EglRenderer: remote_video_viewReleasing.
2019-02-21 16:43:44.291 15267-15426/kr.co.merryholiday.tripme I/GlShader: Deleting shader.
2019-02-21 16:43:44.291 15267-15426/kr.co.merryholiday.tripme E/libEGL: call to OpenGL ES API with no current context (logged once per thread)
2019-02-21 16:43:44.291 15267-15426/kr.co.merryholiday.tripme I/EglRenderer: remote_video_vieweglBase detach and release.
2019-02-21 16:43:44.292 15267-15434/kr.co.merryholiday.tripme I/peerconnection.cc: (line 3711): Session: 6766203333059306712 Old state: kStable New state: kClosed
2019-02-21 16:43:44.293 15267-15434/kr.co.merryholiday.tripme D/PCRTCClient: IceGatheringState: COMPLETE
2019-02-21 16:43:44.293 15267-15434/kr.co.merryholiday.tripme D/PCRTCClient: SignalingState: CLOSED
2019-02-21 16:43:44.293 15267-15433/kr.co.merryholiday.tripme I/webrtcvoiceengine.cc: (line 1986): SetOutputVolume() to 0 for recv stream with ssrc 1113010511
2019-02-21 16:43:44.293 15267-15433/kr.co.merryholiday.tripme I/webrtcvideoengine.cc: (line 1293): SetSink: ssrc:4192545007 nullptr
2019-02-21 16:43:44.294 15267-15433/kr.co.merryholiday.tripme I/channel.cc: (line 564): Channel disabled
2019-02-21 16:43:44.294 15267-15433/kr.co.merryholiday.tripme I/channel.cc: (line 939): Changing video state, send=0
2019-02-21 16:43:44.294 15267-15433/kr.co.merryholiday.tripme I/call.cc: (line 1079): UpdateAggregateNetworkState: aggregate_state=up
2019-02-21 16:43:44.294 15267-15433/kr.co.merryholiday.tripme I/send_side_congestion_controller.cc: (line 334): SignalNetworkState Up
2019-02-21 16:43:44.294 15267-15433/kr.co.merryholiday.tripme I/video_receive_stream.cc: (line 198): ~VideoReceiveStream: {decoders: [{payload_type: 100, payload_name: VP8, codec_params: {}}], rtp: {remote_ssrc: 4192545007, local_ssrc: 1, rtcp_mode: RtcpMode::kCompound, rtcp_xr: {receiver_reference_time_report: off}, remb: on, transport_cc: off, nack: {rtp_history_ms: 1000}, ulpfec_payload_type: -1, red_type: -1, rtx_ssrc: 0, rtx_payload_types: {-1 (pt) -> 100 (apt), }, extensions: []}, renderer: (renderer), render_delay_ms: 10, sync_group: janus, target_delay_ms: 0}
2019-02-21 16:43:44.295 15267-15433/kr.co.merryholiday.tripme I/AndroidVideoDecoder: release
2019-02-21 16:43:44.299 15267-15267/kr.co.merryholiday.tripme I/EglRenderer: remote_video_viewReleasing done.
2019-02-21 16:43:44.299 15267-15426/kr.co.merryholiday.tripme I/EglRenderer: remote_video_viewQuitting render thread.
2019-02-21 16:43:44.300 15267-15267/kr.co.merryholiday.tripme D/AppRTCAudioManager: stop
2019-02-21 16:43:44.300 15267-15267/kr.co.merryholiday.tripme D/AppRTCBluetoothManager: stop: BT state=HEADSET_UNAVAILABLE
2019-02-21 16:43:44.301 15267-15267/kr.co.merryholiday.tripme D/AppRTCBluetoothManager: stopScoAudio: BT state=HEADSET_UNAVAILABLE, SCO is on: false
2019-02-21 16:43:44.301 15267-15267/kr.co.merryholiday.tripme D/AppRTCBluetoothManager: cancelTimer
2019-02-21 16:43:44.301 15267-15267/kr.co.merryholiday.tripme D/AppRTCBluetoothManager: stop done: BT state=UNINITIALIZED
2019-02-21 16:43:44.302 15267-15267/kr.co.merryholiday.tripme D/AudioManager: setMode mode:0 name:kr.co.merryholiday.tripme
2019-02-21 16:43:44.328 15267-15267/kr.co.merryholiday.tripme V/AudioManager: abandonAudioFocus() Request Package = kr.co.merryholiday.tripme
2019-02-21 16:43:44.329 15267-15267/kr.co.merryholiday.tripme D/AppRTCAudioManager: Abandoned audio focus for VOICE_CALL streams
2019-02-21 16:43:44.329 15267-15267/kr.co.merryholiday.tripme D/AppRTCAudioManager: AudioManager stopped
2019-02-21 16:43:44.329 15267-15267/kr.co.merryholiday.tripme I/CameraCapturer: Stop capture
2019-02-21 16:43:44.329 15267-15267/kr.co.merryholiday.tripme I/CameraCapturer: Stop capture: No session open
2019-02-21 16:43:44.329 15267-15267/kr.co.merryholiday.tripme I/CameraCapturer: Stop capture done
2019-02-21 16:43:44.330 15267-15267/kr.co.merryholiday.tripme I/CameraCapturer: dispose
2019-02-21 16:43:44.330 15267-15267/kr.co.merryholiday.tripme I/CameraCapturer: Stop capture
2019-02-21 16:43:44.330 15267-15267/kr.co.merryholiday.tripme I/CameraCapturer: Stop capture: No session open
2019-02-21 16:43:44.330 15267-15267/kr.co.merryholiday.tripme I/CameraCapturer: Stop capture done
2019-02-21 16:43:44.330 15267-15267/kr.co.merryholiday.tripme D/WebSocketClient: WSClient close is done
2019-02-21 16:43:44.330 15267-15500/kr.co.merryholiday.tripme I/AndroidVideoDecoder: Releasing MediaCodec on output thread
2019-02-21 16:43:44.332 15267-15500/kr.co.merryholiday.tripme D/MediaCodec: stop()
2019-02-21 16:43:44.333 15267-15493/kr.co.merryholiday.tripme D/MediaCodec: kWhatStop or kWhatRelease received targetState=2 and mState=6
2019-02-21 16:43:44.334 15267-15494/kr.co.merryholiday.tripme I/ACodec: [OMX.qcom.video.decoder.vp8] Now Executing->Idle
2019-02-21 16:43:44.343 15267-15494/kr.co.merryholiday.tripme I/ACodec: [OMX.qcom.video.decoder.vp8] Now Idle->Loaded
2019-02-21 16:43:44.345 15267-15494/kr.co.merryholiday.tripme I/ACodec: [OMX.qcom.video.decoder.vp8] Now Loaded
2019-02-21 16:43:44.346 15267-15493/kr.co.merryholiday.tripme D/MediaCodec: kWhatStopCompleted received
2019-02-21 16:43:44.346 15267-15493/kr.co.merryholiday.tripme D/SurfaceUtils: disconnecting from surface 0x7ba5a18010, reason disconnectFromSurface
2019-02-21 16:43:44.347 15267-15267/kr.co.merryholiday.tripme D/Editor: hideClipTrayIfNeeded() TextView is focused!! hideClipTray()
2019-02-21 16:43:44.349 15267-15500/kr.co.merryholiday.tripme D/MediaCodec: release()
2019-02-21 16:43:44.349 15267-15493/kr.co.merryholiday.tripme D/MediaCodec: kWhatStop or kWhatRelease received targetState=0 and mState=2
2019-02-21 16:43:44.354 15267-15494/kr.co.merryholiday.tripme I/ACodec: Now uninitialized
2019-02-21 16:43:44.354 15267-15494/kr.co.merryholiday.tripme D/MediaCodec: onReleaseCompleted()
2019-02-21 16:43:44.354 15267-15493/kr.co.merryholiday.tripme D/MediaCodec: kWhatReleaseCompleted received
2019-02-21 16:43:44.356 15267-15500/kr.co.merryholiday.tripme D/MediaCodec: ~MediaCodec()
2019-02-21 16:43:44.357 15267-15500/kr.co.merryholiday.tripme I/AndroidVideoDecoder: Release on output thread done
2019-02-21 16:43:44.359 15267-15433/kr.co.merryholiday.tripme I/SurfaceTextureHelper: stopListening()
2019-02-21 16:43:44.359 15267-15267/kr.co.merryholiday.tripme E/MediaPlayer: Error (-38,0)
2019-02-21 16:43:44.359 15267-15433/kr.co.merryholiday.tripme I/SurfaceTextureHelper: dispose()
2019-02-21 16:43:44.361 15267-15267/kr.co.merryholiday.tripme E/ActivityThread: Activity kr.co.merryholiday.tripme.activities.LiveDetailActivity has leaked IntentReceiver org.webrtc.NetworkMonitorAutoDetect@9c6021c that was originally registered here. Are you missing a call to unregisterReceiver()?
_ android.app.IntentReceiverLeaked: Activity kr.co.merryholiday.tripme.activities.LiveDetailActivity has leaked IntentReceiver org.webrtc.NetworkMonitorAutoDetect@9c6021c that was originally registered here. Are you missing a call to unregisterReceiver()?

_ at android.app.LoadedApk$ReceiverDispatcher.(LoadedApk.java:1412)

_ at android.app.LoadedApk.getReceiverDispatcher(LoadedApk.java:1160)

_ at android.app.ContextImpl.registerReceiverInternal(ContextImpl.java:1406)

_ at android.app.ContextImpl.registerReceiver(ContextImpl.java:1379)

_ at android.app.ContextImpl.registerReceiver(ContextImpl.java:1367)

_ at android.content.ContextWrapper.registerReceiver(ContextWrapper.java:603)

_ at org.webrtc.NetworkMonitorAutoDetect.registerReceiver(NetworkMonitorAutoDetect.java:740)

_ at org.webrtc.NetworkMonitorAutoDetect.(NetworkMonitorAutoDetect.java:658)

_ at org.webrtc.NetworkMonitor.createAutoDetect(NetworkMonitor.java:168)

_ at org.webrtc.NetworkMonitor.startMonitoring(NetworkMonitor.java:91)

_ at org.webrtc.NetworkMonitor.startMonitoring(NetworkMonitor.java:113)_
2019-02-21 16:43:44.368 15267-15433/kr.co.merryholiday.tripme I/videodecoderwrapper.cc: (line 136): release: 0
2019-02-21 16:43:44.369 15267-15433/kr.co.merryholiday.tripme I/video_render_frames.cc: (line 47): WebRTC.Video.DroppedFrames.RenderQueue 3
2019-02-21 16:43:44.370 15267-15433/kr.co.merryholiday.tripme I/receive_statistics_proxy.cc: (line 487): WebRTC.Video.ReceiveStreamLifetimeInSeconds 9
Frames decoded 159
WebRTC.Video.DroppedFrames.Receiver 53
WebRTC.Video.KeyFramesReceivedInPermille 29
WebRTC.Video.InterframeDelay95PercentileInMs 68
2019-02-21 16:43:44.370 15267-15433/kr.co.merryholiday.tripme I/video_quality_observer.cc: (line 121): WebRTC.Video.MeanTimeBetweenFreezesMs 3181
WebRTC.Video.MeanFreezeDurationMs 438
WebRTC.Video.TimeInHdPercentage 0
WebRTC.Video.TimeInBlockyVideoPercentage 0
WebRTC.Video.NumberResolutionDownswitchesPerMinute 0
WebRTC.Video.NumberFreezesPerMinute 16
2019-02-21 16:43:44.370 15267-15433/kr.co.merryholiday.tripme I/channel.cc: (line 133): Destroyed channel: video
2019-02-21 16:43:44.371 15267-15433/kr.co.merryholiday.tripme I/messagequeue.cc: (line 518): Message took 76ms to dispatch. Posted from: DestroyVideoChannel@…/…/…/…/usr/local/google/home/sakal/code/webrtc-aar-release/src/pc/channelmanager.cc:272
2019-02-21 16:43:44.371 15267-15433/kr.co.merryholiday.tripme I/channel.cc: (line 564): Channel disabled
2019-02-21 16:43:44.371 15267-15433/kr.co.merryholiday.tripme I/audio_device_impl.cc: (line 801): StopPlayout
2019-02-21 16:43:44.371 15267-15433/kr.co.merryholiday.tripme I/audio_device_template.h: (line 194): Playing
2019-02-21 16:43:44.371 15267-15433/kr.co.merryholiday.tripme I/audio_device_template.h: (line 188): StopPlayout
2019-02-21 16:43:44.371 15267-15433/kr.co.merryholiday.tripme I/audio_track_jni.cc: (line 145): StopPlayout
2019-02-21 16:43:44.372 15267-15433/kr.co.merryholiday.tripme I/WebRtcAudioTrack: stopPlayout
2019-02-21 16:43:44.372 15267-15433/kr.co.merryholiday.tripme I/WebRtcAudioTrack: underrun count: 1
2019-02-21 16:43:44.372 15267-15433/kr.co.merryholiday.tripme I/WebRtcAudioTrack: stopThread
2019-02-21 16:43:44.373 15267-15433/kr.co.merryholiday.tripme I/WebRtcAudioTrack: Stopping the AudioTrackThread…
2019-02-21 16:43:44.386 15267-15459/kr.co.merryholiday.tripme I/System.out: WebSocket Client disconnected!
2019-02-21 16:43:44.423 15267-15471/kr.co.merryholiday.tripme I/WebRtcAudioTrack: Calling AudioTrack.stop…
2019-02-21 16:43:44.423 15267-15471/kr.co.merryholiday.tripme D/AudioTrack: stop() called with 476640 frames delivered
2019-02-21 16:43:44.426 15267-15471/kr.co.merryholiday.tripme I/WebRtcAudioTrack: AudioTrack.stop is done.
2019-02-21 16:43:44.427 15267-15433/kr.co.merryholiday.tripme I/WebRtcAudioTrack: AudioTrackThread has now been stopped.
2019-02-21 16:43:44.428 15267-15433/kr.co.merryholiday.tripme I/WebRtcAudioTrack: releaseAudioResources
2019-02-21 16:43:44.431 15267-15433/kr.co.merryholiday.tripme V/AudioTrack: ~AudioTrack, releasing session id 3505 from 15267 on behalf of 15267
2019-02-21 16:43:44.431 15267-15433/kr.co.merryholiday.tripme I/audio_device_buffer.cc: (line 137): StopPlayout
2019-02-21 16:43:44.432 15267-15433/kr.co.merryholiday.tripme I/audio_device_buffer.cc: (line 143): total playout time: 9953
2019-02-21 16:43:44.432 15267-15433/kr.co.merryholiday.tripme I/audio_device_impl.cc: (line 805): output: 0
2019-02-21 16:43:44.432 15267-15433/kr.co.merryholiday.tripme I/channel.cc: (line 808): Changing voice state, recv=0 send=0
2019-02-21 16:43:44.433 15267-15433/kr.co.merryholiday.tripme I/webrtcvoiceengine.cc: (line 1924): RemoveRecvStream: 1113010511
2019-02-21 16:43:44.434 15267-15433/kr.co.merryholiday.tripme I/call.cc: (line 1079): UpdateAggregateNetworkState: aggregate_state=down
2019-02-21 16:43:44.434 15267-15433/kr.co.merryholiday.tripme I/send_side_congestion_controller.cc: (line 334): SignalNetworkState Down
2019-02-21 16:43:44.434 15267-15433/kr.co.merryholiday.tripme I/audio_receive_stream.cc: (line 135): ~AudioReceiveStream: 1113010511
2019-02-21 16:43:44.435 15267-15433/kr.co.merryholiday.tripme I/channel.cc: (line 133): Destroyed channel: audio
2019-02-21 16:43:44.435 15267-15433/kr.co.merryholiday.tripme I/messagequeue.cc: (line 518): Message took 64ms to dispatch. Posted from: DestroyVoiceChannel@…/…/…/…/usr/local/google/home/sakal/code/webrtc-aar-release/src/pc/channelmanager.cc:204
2019-02-21 16:43:44.436 15267-15432/kr.co.merryholiday.tripme I/opensslstreamadapter.cc: (line 917): Cleanup
2019-02-21 16:43:44.438 15267-15432/kr.co.merryholiday.tripme I/NetworkMonitor: Stop monitoring with native observer 531713568000
2019-02-21 16:43:44.439 15267-15432/kr.co.merryholiday.tripme I/NetworkMonitorAutoDetect: Unregister network callback
2019-02-21 16:43:44.445 15267-15432/kr.co.merryholiday.tripme W/System.err: java.lang.IllegalArgumentException: Receiver not registered: org.webrtc.NetworkMonitorAutoDetect@9c6021c
2019-02-21 16:43:44.446 15267-15432/kr.co.merryholiday.tripme W/System.err: at android.app.LoadedApk.forgetReceiverDispatcher(LoadedApk.java:1221)
2019-02-21 16:43:44.446 15267-15432/kr.co.merryholiday.tripme W/System.err: at android.app.ContextImpl.unregisterReceiver(ContextImpl.java:1434)
2019-02-21 16:43:44.446 15267-15432/kr.co.merryholiday.tripme W/System.err: at android.content.ContextWrapper.unregisterReceiver(ContextWrapper.java:639)
2019-02-21 16:43:44.447 15267-15432/kr.co.merryholiday.tripme W/System.err: at org.webrtc.NetworkMonitorAutoDetect.unregisterReceiver(NetworkMonitorAutoDetect.java:751)
2019-02-21 16:43:44.447 15267-15432/kr.co.merryholiday.tripme W/System.err: at org.webrtc.NetworkMonitorAutoDetect.destroy(NetworkMonitorAutoDetect.java:729)
2019-02-21 16:43:44.447 15267-15432/kr.co.merryholiday.tripme W/System.err: at org.webrtc.NetworkMonitor.stopMonitoring(NetworkMonitor.java:129)
2019-02-21 16:43:44.447 15267-15432/kr.co.merryholiday.tripme W/System.err: at org.webrtc.NetworkMonitor.stopMonitoring(NetworkMonitor.java:138)
2019-02-21 16:43:44.447 15267-15432/kr.co.merryholiday.tripme E/rtc: #
_ # Fatal error in: gen/sdk/android/generated_base_jni/jni/…/…/…/…/…/…/…/…/…/usr/local/google/home/sakal/code/webrtc-aar-release/src/sdk/android/src/jni/jni_generator_helper.h, line 85_
_ # last system error: 0_
_ # Check failed: !env->ExceptionCheck()_
_ # _
2019-02-21 16:43:44.450 15267-15432/kr.co.merryholiday.tripme A/libc: Fatal signal 6 (SIGABRT), code -6 in tid 15432 (network_thread )
2019-02-21 16:43:49.519 15267-15463/kr.co.merryholiday.tripme W/paced_sender.cc: (line 265): Elapsed time (5005 ms) longer than expected, limiting to 2000 ms

빨간색으로 표시된 로그를 강조표시해두었습니다.
제 경험이 부족해서 질문의 질이 떨어지는점 사과드리겠습니다 ㅠㅠ

안녕하세요^^

먼저 두가지를 확인 해보면 좋을듯합니다.

  1. remon SDK 가 제대로 종료된 후에 activity를 종료하고 있는지
  2. remonCast의 callback 안에서 ui를 처리한다면, UIThread로 감싸고 있는지

확인후 답변 부탁드립니다.

빠른답변 감사합니다 ^^

말씀하신 두가지 확인해봣는데, 둘 다 말씀하신것처럼 처리하고있습니다.
1번같은 경우는 방송을 종료하는 프로세스에서 종료시키고 예외처리로 onDestroy()에서도 RemonCast를 null체크 후에 close시키고 있습니다.
2번도 확인해봣는데 callback안에서 스레드나 로그 외에 UI 관련 처리는 모두 runOnUiThread() 안에서 처리하고있습니다.

추가로 말씀을 드리자면…방송자의 경우와 시청자의 경우 둘다 RemonCast 객체의 종료처리(close() 호출) 자체는 동일하게 처리되어 있습니다.

확인 후 답변부탁드립니다.

음… 예전에 디버그 버전에서는 문제가 있고,
마켓 버전에서는 괜찮다고 해주셨는데.

뭔가 원인을 일으키는 소스가 추가되고.
해당버전 이후로 문제가 발생하는것으로 추정해도 될까요?
그 두개의 버전 차이중에 어떤 코드가 새로 들어갔는지 알면 도움이 될 듯합니다.

이전에 질문글을 올린 후부터 지금까지 RemonCast를 사용하는 액티비티에는 변경된 점이 없습니다.
저희 코드와는 무관하게 현상이 일어나는것으로 확인돼고 있어요.

릴리즈버전과 디버그버전 둘 다에서 해당 현상이 생기기도 하고 어느순간엔 또 해당 현상이 안나타나기도 하고 그럽니다. 그리고 디바이스의 종류와 상관없이 해당 오류가 나타나는걸로 확인됏구요…
방송을 시청한 시간에 따라 달라지나 확인해봣는데, 시간이랑도 연관성이 없어보입니다.
1~5초 시청 후 종료시에도 불규칙적으로 현상이 나타나요.

그나마 해당 현상에 대해 찾은 단서라면,
어느 특정 시기에 유독 해당현상이 많이 보인다는 정도입니다…
어느날엔 현상이 잘 안나타나고 어느날엔 정말 칼같이 크래시가 나기도 하는식으로요.

그렇군요.
귀중한 단서들 감사합니다…

해결방안을 연구해보고
방문을 하던지, 연락 드리겠습니다.

바로 해결 해 드리지 못해 죄송합니다^^;

아닙니다. 저야말로 골치아픈문제를 떠넘긴거같아 마음이 불편하네요ㅠㅠ
빠른해결이 되길 빌며, 답변 기다리고 있겠습니다. 감사합니다^^

글로는 의사소통이 힘들 것 같아
전화 드리겠습니다 ^^

네^^ 그럼 연락 기다리고있겠습니다 !