livekit / client-sdk-flutter

Flutter Client SDK for LiveKit
https://docs.livekit.io
Apache License 2.0
229 stars 108 forks source link

[bug] Unsupported operation: Infinity or NaN toInt (LocalVideoTrack.monitorStats.<fn>) #514

Closed furkanKotic closed 2 weeks ago

furkanKotic commented 1 month ago

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