aws / amazon-chime-sdk-js

A JavaScript client library for integrating multi-party communications powered by the Amazon Chime service.
Apache License 2.0
709 stars 477 forks source link

Unhandled error when using ServerSideNetworkAdaption.BandwidthProbingAndRemoteVideoQualityAdaption on iOS #2801

Closed JoeGrn closed 7 months ago

JoeGrn commented 10 months ago

What happened and what did you expect to happen?

Recently bumped to version 3.18.2 from 3.13.0 to use setServerSideNetworkAdaption.

When setting a VideoPriorityDownlinkPolicy before joining a chime meeting on an iOS device if setServerSideNetworkAdaption is set to ServerSideNetworkAdaption.BandwidthProbingAndRemoteVideoQualityAdaption intermittently an unhandled error is thrown inside a UTF8 decoding method.

Have you reviewed our existing documentation?

Reproduction steps

Amazon Chime SDK for JavaScript version

3.18.2

What browsers are you seeing the problem on?

Chrome

Browser version

119.0.6045.109

Meeting and Attendee ID Information.

No response

Browser console logs

TypeError: null is not an object (evaluating 'np.length')

JoeGrn commented 10 months ago

When on iOS removing policy.chooseRemoteVideoSources(preferences.build()); fixes the issue.

Combination of iOS devices using tile priority preferences when ServerSideNetworkAdaption is set throwing an intermittent error.

hensmi-amazon commented 7 months ago

I am currently unable to reproduce this.

Does this reproduce on non iOS chrome? Does it reproduce in iOS safari or a desktop browser? What is preferences when you see the failure? Do you have any additional logs or a meeting ID?

JoeGrn commented 7 months ago

I've recently left the company using the chime SDK in the manner. We removed a custom video downlink policy to fix this if I remember correctly it was prioritising the screen share stream under poor network conditions.

Sorry getting more information would now be difficult. Happy to close this.

@BenRamsden for visibility at jugo in case you see this issue again.

hensmi-amazon commented 7 months ago

Gotcha, that's fair. It can be reopened if necessary.