Skip to content

Unhandled exception when fast scroll map very far away #580

@andreystavitsky

Description

@andreystavitsky

Fast scrolling map really far sometimes cause following unhandled exception:
"type '(HttpException) => Null' is not a subtype of type '(dynamic) => dynamic'"

Call stack:

Response.fromStream (e:\Projects\_Flutter\.pub-cache\hosted\pub.dartlang.org\http-0.12.0+4\lib\src\response.dart:64)
<asynchronous gap> (Unknown Source:0)
BaseClient._sendUnstreamed (e:\Projects\_Flutter\.pub-cache\hosted\pub.dartlang.org\http-0.12.0+4\lib\src\base_client.dart:176)
<asynchronous gap> (Unknown Source:0)
BaseClient.get (e:\Projects\_Flutter\.pub-cache\hosted\pub.dartlang.org\http-0.12.0+4\lib\src\base_client.dart:35)
get.<anonymous closure> (e:\Projects\_Flutter\.pub-cache\hosted\pub.dartlang.org\http-0.12.0+4\lib\http.dart:46)
_Closure.call (dart:core-patch/function.dart:0)
_withClient (e:\Projects\_Flutter\.pub-cache\hosted\pub.dartlang.org\http-0.12.0+4\lib\http.dart:166)
get (e:\Projects\_Flutter\.pub-cache\hosted\pub.dartlang.org\http-0.12.0+4\lib\http.dart:46)
WebHelper._defaultHttpGetter (e:\Projects\_Flutter\.pub-cache\hosted\pub.dartlang.org\flutter_cache_manager-1.1.3\lib\src\web_helper.dart:86)
WebHelper._defaultHttpGetter (e:\Projects\_Flutter\.pub-cache\hosted\pub.dartlang.org\flutter_cache_manager-1.1.3\lib\src\web_helper.dart:0)
_Closure.call (dart:core-patch/function.dart:0)
WebHelper._fileFetcher (e:\Projects\_Flutter\.pub-cache\hosted\pub.dartlang.org\flutter_cache_manager-1.1.3\lib\src\web_helper.dart:0)
WebHelper._downloadRemoteFile (e:\Projects\_Flutter\.pub-cache\hosted\pub.dartlang.org\flutter_cache_manager-1.1.3\lib\src\web_helper.dart:69)
<asynchronous gap> (Unknown Source:0)
WebHelper.downloadFile.<anonymous closure> (e:\Projects\_Flutter\.pub-cache\hosted\pub.dartlang.org\flutter_cache_manager-1.1.3\lib\src\web_helper.dart:36)
_Closure.call (dart:core-patch/function.dart:0)
WebHelper.downloadFile (e:\Projects\_Flutter\.pub-cache\hosted\pub.dartlang.org\flutter_cache_manager-1.1.3\lib\src\web_helper.dart:43)
BaseCacheManager.getSingleFile (e:\Projects\_Flutter\.pub-cache\hosted\pub.dartlang.org\flutter_cache_manager-1.1.3\lib\src\cache_manager.dart:96)
<asynchronous gap> (Unknown Source:0)
CachedNetworkImageProvider._loadAsync (e:\Projects\_Flutter\.pub-cache\hosted\pub.dartlang.org\cached_network_image-2.0.0\lib\src\cached_network_image_provider.dart:59)
CachedNetworkImageProvider.load (e:\Projects\_Flutter\.pub-cache\hosted\pub.dartlang.org\cached_network_image-2.0.0\lib\src\cached_network_image_provider.dart:45)
ImageProvider.resolve.<anonymous closure>.<anonymous closure>.<anonymous closure> (e:\Projects\_Flutter\packages\flutter\lib\src\painting\image_provider.dart:327)
_Closure.call (dart:core-patch/function.dart:0)
ImageCache.putIfAbsent (e:\Projects\_Flutter\packages\flutter\lib\src\painting\image_cache.dart:160)
ImageProvider.resolve.<anonymous closure>.<anonymous closure> (e:\Projects\_Flutter\packages\flutter\lib\src\painting\image_provider.dart:325)
_Closure.call (dart:core-patch/function.dart:0)
SynchronousFuture.then (e:\Projects\_Flutter\packages\flutter\lib\src\foundation\synchronous_future.dart:38)
ImageProvider.resolve.<anonymous closure> (e:\Projects\_Flutter\packages\flutter\lib\src\painting\image_provider.dart:323)
_rootRun (dart:async/zone.dart:1126)
_rootRun (dart:async/zone.dart:0)
_CustomZone.run (dart:async/zone.dart:1023)
_CustomZone.runGuarded (dart:async/zone.dart:925)
ImageProvider.resolve (e:\Projects\_Flutter\packages\flutter\lib\src\painting\image_provider.dart:315)
new Tile (e:\Projects\_Flutter\.pub-cache\hosted\pub.dartlang.org\flutter_map-0.9.0\lib\src\layer\tile_layer.dart:933)
_TileLayerState._addTile (e:\Projects\_Flutter\.pub-cache\hosted\pub.dartlang.org\flutter_map-0.9.0\lib\src\layer\tile_layer.dart:808)
_TileLayerState._update (e:\Projects\_Flutter\.pub-cache\hosted\pub.dartlang.org\flutter_map-0.9.0\lib\src\layer\tile_layer.dart:762)
_TileLayerState._update (e:\Projects\_Flutter\.pub-cache\hosted\pub.dartlang.org\flutter_map-0.9.0\lib\src\layer\tile_layer.dart:0)
_rootRunUnary (dart:async/zone.dart:1134)
_rootRunUnary (dart:async/zone.dart:0)

flutter_map 0.9.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions