client-sdk-flutter
client-sdk-flutter copied to clipboard
[bug] Unsupported operation: Infinity or NaN toInt (LocalVideoTrack.monitorStats.<fn>)
Describe the bug
I'm getting this error during broadcasting.
On Android:
Fatal Exception: io.flutter.plugins.firebase.crashlytics.FlutterError: Unsupported operation: Infinity or NaN toInt
at double.toInt(dart:core)
at LocalVideoTrack.monitorStats.<fn>(video.dart:90)
at _LinkedHashMapMixin.forEach(dart:collection)
at LocalVideoTrack.monitorStats(video.dart:88)
at Track.startMonitor.<fn>(track.dart:167)
On IOS:
Fatal Exception: FlutterError
0 ??? 0x0 double.toInt (dart:core)
1 ??? 0x0 LocalVideoTrack.monitorStats.<fn> + 90 (video.dart:90)
2 ??? 0x0 _LinkedHashMapMixin.forEach (dart:collection)
3 ??? 0x0 LocalVideoTrack.monitorStats + 88 (video.dart:88)
4 ??? 0x0 Track.startMonitor.<fn> + 167 (track.dart:167)
To Reproduce Opening a broadcast is enough.
Platform information
- Flutter version: 3.19.6
- Plugin version: 2.1.3
- Flutter target OS: Android/iOS real device/simulator