millicast / millicast-sdk

SDK for building a realtime broadcaster using the Millicast platform.
Other
37 stars 28 forks source link

React-Native: Unhandled promise rejection [RangeError: Maximum call stack size exceeded (native stack depth)] #205

Open DannyBiezen opened 1 year ago

DannyBiezen commented 1 year ago

Version affected "@millicast/sdk": "^0.1.35", "react-native-webrtc": "^106.0.0-beta.7",

Describe the bug I followed the guide at https://docs.dolby.io/streaming-apis/docs/rn. I've been able to get a Millicast stream running but am seeing an error (Unhandled promise rejection [RangeError: Maximum call stack size exceeded (native stack depth)]) in my logs. image

To Reproduce Follow the guide at https://docs.dolby.io/streaming-apis/docs/rn

Expected behavior To not have unhandled exceptions in my logs

Environment (please complete the following information):

olbapbetan commented 1 year ago

Hello @DannyBiezen,

Thanks for letting us know that you are facing issues with the JS SDK.

We have already built a sample app that shows the integration of the JS SDK with React Native, you can check it out here: https://github.com/millicast/streaming-sdk-react-native-getting-started

Regarding what you mentioned, I recommend you update the versions of both JS SDK and React Native webRTC.

The error you are experiment might be caused by some packages (versions, dependencies) that are not compatible together or even an incorrect usage of a React Native component.

Please let me know if these comments were helpful.

Kind regards, Pablo.

adivincenzo commented 1 year ago

@DannyBiezen have you been able to resolve this at all? I've been seeing the same error in my application.

adback03 commented 1 year ago

Also seeing this using latest versions:

"@millicast/sdk": "^0.1.39",
"react-native-webrtc": "^106.0.0-beta.8",
olbapbetan commented 1 year ago

Hello @adback03,

Be sure to use a non-beta version of react-native-webrtc, since those are known to cause several issues.

For instance, in the project I mentioned in the prior message, we used:

"react-native-webrtc": "^106.0.0"

As it may be seen here: https://github.com/millicast/streaming-sdk-react-native-getting-started/blob/main/package.json

I am afraid that without further information we can not give more help.

Kind regards, Pablo.