What is the bug?
When you zoom in and out really fast it cause the app to crash. Tested on Android and IOS
[ERROR:flutter/runtime/dart_vm_initializer.cc(40)] Unhandled Exception: Unsupported operation: Infinity or NaN toInt
#0 double.toInt (dart:core-patch/double.dart)
#1 double.floor (dart:core-patch/double.dart:201:34)
#2 _floor (package:flutter_map/src/layer/tile_layer/tile_range.dart:36:25)
#3 new DiscreteTileRange.fromPixelBounds (package:flutter_map/src/layer/tile_layer/tile_range.dart:61:9)
#4 TileRangeCalculator.calculate (package:flutter_map/src/layer/tile_layer/tile_range_calculator.dart:31:30)
#5 _TileLayerState._onTileUpdateEvent (package:flutter_map/src/layer/tile_layer/tile_layer.dart:632:51)
#6 _RootZone.runUnaryGuarded (dart:async/zone.dart:963:10)
#7 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:381:11)
#8 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:312:7)
#9 _SinkTransformerStreamSubscription._add (dart:async/stream_transformers.dart:67:11)
#10 _EventSinkWrapper.add (dart:async/stream_transform<…>
flutter: 'package:flutter_map/src/geo/latlng_bounds.dart': Failed assertion: line 78 pos 16: 'north <= maxLatitude': The north latitude can't be bigger than 90.0: NaN
flutter:
#0 _AssertionError._doThrowNew (dart:core-patch/errors_patch.dart:67:4)
#1 _AssertionError._throwNew (dart:core-patch/errors_patch.dart:49:5)
#2 new LatLngBounds.worldSafe (package:flutter_map/src/geo/latlng_bounds.dart:78:16)
#3 MapCamera._computeVisibleBounds (package:flutter_map/src/map/camera/camera.dart:71:25)
#4 MapCamera.visibleBounds (package:flutter_map/src/map/camera/camera.dart:61:49)
How can we reproduce it?
Just zoom in and out really fast and it will eventuelly crash
Do you have a potential solution?
No response
What is the bug?
When you zoom in and out really fast it cause the app to crash. Tested on Android and IOS
How can we reproduce it?
Just zoom in and out really fast and it will eventuelly crash
Do you have a potential solution?
No response