awslabs / amazon-kinesis-video-streams-webrtc-sdk-android

Android SDK for interfacing with Amazon Kinesis Video Streams Signaling Service.
Apache License 2.0
59 stars 39 forks source link

Issue in switching between channels #99

Closed 56-smw93 closed 3 months ago

56-smw93 commented 1 year ago

In Android following the step on this sample project, when switching between the channels, on 3 - 5 attempts the apps crashing.

from webRTC we are getting this constant log after changing the channel for the first time, and post that after every consequent switch the log frequency increased

adding the logs here

23:16:30.807 16636 om.secure56.app      com.secure56.app           I  createIfNeeded: Recreate new EGLImage since dataspace changed
23:16:30.829 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:30.852 16636 om.secure56.app      com.secure56.app           I  createIfNeeded: Recreate new EGLImage since dataspace changed
23:16:30.869 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:30.909 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:30.947 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:30.988 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:31.028 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:31.070 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:31.110 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:31.150 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:31.191 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:31.232 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:31.259 16636 OplusFeedbackInfo    com.secure56.app           I  0xb400006ea32f5a00 OMX.qcom.video.decoder.avc 1920x1088 inputFps=25 outputFps=25 renderFps=25, discardFps=0
23:16:31.260 16636 libc                 com.secure56.app           W  Access denied finding property "vendor.oplus.media.vpp.stutter"
23:16:31.271 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:31.311 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:31.319 16636 OplusFeedbackInfo    com.secure56.app           D  output video size width 1920, height 1088
23:16:31.319 16636 OplusFeedbackInfo    com.secure56.app           I  0xb400006ea47fec00 OMX.qcom.video.decoder.avc 1920x1088 inputFps=29 outputFps=28 renderFps=22, discardFps=6
23:16:31.319 16636 libc                 com.secure56.app           W  Access denied finding property "vendor.oplus.media.vpp.stutter"
23:16:31.336 16636 MQTT TIMER           com.secure56.app           E  timer onTick CONTINUE_PLAYBACK
23:16:31.336 16636 MQTT                 com.secure56.app           E  continuePlaybackTimer onTick millisUntilFinished 293983
23:16:31.351 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:31.390 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:31.431 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:31.471 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:31.498 16636 MQTT TIMER           com.secure56.app           E  timer onTick REQUEST_PLAYBACK
23:16:31.510 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:31.551 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:31.591 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:31.630 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:31.670 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:31.710 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:31.750 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:31.790 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:31.830 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:31.871 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:31.910 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:31.950 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:32.008 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:32.030 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:32.072 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:32.112 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:32.152 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:32.191 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:32.226 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:32.260 16636 OplusFeedbackInfo    com.secure56.app           I  0xb400006ea32f5a00 OMX.qcom.video.decoder.avc 1920x1088 inputFps=25 outputFps=26 renderFps=26, discardFps=0
23:16:32.260 16636 libc                 com.secure56.app           W  Access denied finding property "vendor.oplus.media.vpp.stutter"
23:16:32.267 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:32.307 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:32.319 16636 OplusFeedbackInfo    com.secure56.app           I  0xb400006ea47fec00 OMX.qcom.video.decoder.avc 1920x1088 inputFps=24 outputFps=24 renderFps=24, discardFps=0
23:16:32.320 16636 libc                 com.secure56.app           W  Access denied finding property "vendor.oplus.media.vpp.stutter"
23:16:32.337 16636 MQTT TIMER           com.secure56.app           E  timer onTick CONTINUE_PLAYBACK
23:16:32.337 16636 MQTT                 com.secure56.app           E  continuePlaybackTimer onTick millisUntilFinished 292982
23:16:32.347 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:32.395 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:32.428 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:32.468 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:32.499 16636 MQTT TIMER           com.secure56.app           E  timer onTick REQUEST_PLAYBACK
23:16:32.510 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:32.549 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:32.588 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:32.630 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:32.670 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:32.710 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:32.750 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:32.789 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:32.831 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:32.845 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Duration: 4007 ms. Frames received: 57. Dropped: 0. Rendered: 57. Render fps: 14.2. Average render time: 2867 us. Average swapBuffer time: 1424 us.
23:16:32.871 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:32.910 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:32.950 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:33.000 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:33.031 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:33.072 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:33.111 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:33.152 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:33.193 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:33.238 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:33.261 16636 OplusFeedbackInfo    com.secure56.app           I  0xb400006ea32f5a00 OMX.qcom.video.decoder.avc 1920x1088 inputFps=25 outputFps=24 renderFps=24, discardFps=0
23:16:33.261 16636 libc                 com.secure56.app           W  Access denied finding property "vendor.oplus.media.vpp.stutter"
23:16:33.276 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:33.315 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:33.320 16636 OplusFeedbackInfo    com.secure56.app           I  0xb400006ea47fec00 OMX.qcom.video.decoder.avc 1920x1088 inputFps=24 outputFps=24 renderFps=24, discardFps=0
23:16:33.320 16636 libc                 com.secure56.app           W  Access denied finding property "vendor.oplus.media.vpp.stutter"
23:16:33.337 16636 MQTT                 com.secure56.app           E  continuePlaybackTimer onTick millisUntilFinished 291982
23:16:33.337 16636 MQTT TIMER           com.secure56.app           E  timer onTick CONTINUE_PLAYBACK
23:16:33.355 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:33.396 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:33.437 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:33.478 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:33.500 16636 MQTT TIMER           com.secure56.app           E  timer onTick REQUEST_PLAYBACK
23:16:33.518 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:33.559 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:33.597 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:33.637 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:33.680 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:33.720 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:33.760 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:33.801 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:33.842 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:33.883 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:33.922 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:33.960 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:34.005 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:34.042 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:34.083 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:34.123 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:34.163 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:34.204 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:34.244 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:34.261 16636 OplusFeedbackInfo    com.secure56.app           I  0xb400006ea32f5a00 OMX.qcom.video.decoder.avc 1920x1088 inputFps=24 outputFps=25 renderFps=25, discardFps=0
23:16:34.261 16636 libc                 com.secure56.app           W  Access denied finding property "vendor.oplus.media.vpp.stutter"
23:16:34.286 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:34.320 16636 OplusFeedbackInfo    com.secure56.app           I  0xb400006ea47fec00 OMX.qcom.video.decoder.avc 1920x1088 inputFps=25 outputFps=25 renderFps=25, discardFps=0
23:16:34.320 16636 libc                 com.secure56.app           W  Access denied finding property "vendor.oplus.media.vpp.stutter"
23:16:34.325 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:34.338 16636 MQTT                 com.secure56.app           E  continuePlaybackTimer onTick millisUntilFinished 290981
23:16:34.339 16636 MQTT TIMER           com.secure56.app           E  timer onTick CONTINUE_PLAYBACK
23:16:34.365 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:34.407 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:34.445 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:34.486 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:34.500 16636 MQTT TIMER           com.secure56.app           E  timer onTick REQUEST_PLAYBACK
23:16:34.527 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:34.567 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:34.608 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:34.648 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:34.688 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:34.727 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:34.769 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:34.808 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:34.849 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:34.889 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:34.936 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:34.970 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:35.013 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:35.052 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:35.093 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:35.136 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:35.172 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:35.213 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:35.251 16636 org.webrtc.Logging   com.secure56.app           I  EglRenderer: Dropping frame - Not initialized or already released.
23:16:35.262 16636 OplusFeedbackInfo    com.secure56.app           I  0xb400006ea32f5a00 OMX.qcom.video.decoder.avc 1920x1088 inputFps=25 outputFps=25 renderFps=25, discardFps=0

Process I am following for switching channels

- clearing signalling params and variables
- disconecting peerConnection (WebSocketClient) 
- deinitialising views and destroying the instance namely (surfaceViewRenderer and EGLBase)
- recreating the views (surfaceViewRenderer and EGLBase)
- Creating all param needed for signalling
- creating peerConnection
- adding sink to view the streaming
niyatim23 commented 3 months ago

Are you switching channels as a master or a viewer? Are you doing this manually or through code?

niyatim23 commented 3 months ago

Closing due to inactivity. Feel free to reopen if the issue persists