Closed stephen-mojo closed 6 months ago
Thank you for reporting your issue and providing comprehensive details. We'll investigate on our end.
After investigating, the error is likely coming form the SDK itself. This will be addressed in the next SDK release. For the time being, and if you are able to, you could switch to an earlier version of the SDK, until a new version is made available.
Thank you for your quick response!
Do you have a recommendation on how far back to downgrade to? I have seen this issue on v1.10.0 and v1.11.0.
@stephen-mojo we've not seen the same error behavior with this demo when using 1.10.0, 1.90, and 1.8.0.
I am able to reproduce the issue in the IVS sample application using 1.10.0. I have a parallel ticket open with AWS support where I have provided logcat logs as well as screen recordings of the issue. If these would be helpful for you, let me know how I can send the data over to you.
I am also able to reproduce this issue in our own application when trying 1.9.0 as well as 1.8.0.
Closing for now as you are already engaged with AWS support.
---------------------------------------------------------------------------------------------- Issue: ---------------------------------------------------------------------------------------------- The demo application becomes unresponsive and freezes with an ANR if a live stream session is ended externally.
---------------------------------------------------------------------------------------------- IVS Version ---------------------------------------------------------------------------------------------- 1.11.0
---------------------------------------------------------------------------------------------- Repro Steps - Case #1 - Stream key reset on IVS web dashboard: ----------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------- Repro Steps - Case #2 - Stream ended externally due to max bit rate being exceeded: ----------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------- Expected Results for Both Cases: ---------------------------------------------------------------------------------------------- The settings screen is closed. The user returns to the broadcast screen.
---------------------------------------------------------------------------------------------- Actual Results: ---------------------------------------------------------------------------------------------- Pressing the close button on the settings screen freezes the application and results in an ANR. Before the ANR occurs, the
BroadcastSession.Listener.onError()
method is triggered with:And the reason for the ANR is:
---------------------------------------------------------------------------------------------- Notes: ---------------------------------------------------------------------------------------------- It happens on multiple devices including a Pixel 6a and a Samsung Galaxy S22 Ultra.
I was able to reproduce this issue in both of the official IVS sample applications (IVS Demo Repository #1 & IVS Demo Repository #2).
This issue also occurs in my own application that uses the IVS SDK.
Even after the stream has ended due to the error, it looks like there are
BroadcastSession.Listener.onAudioStats()
calls as if the stream is still alive and sticking around. Is there some sort of cleanup that needs to be done in theBroadcastSession.Listener.onError()
method to stop the app from freezing up?---------------------------------------------------------------------------------------------- Logcat Logs ----------------------------------------------------------------------------------------------