Michael-M-aher / location_picker_flutter_map

A Flutter package that provides Place search and Location picker for flutter maps with alot of cusomizations using Open Street Map.
MIT License
23 stars 48 forks source link

Exception caught by image resource service #32

Closed musayerlwa closed 9 months ago

musayerlwa commented 10 months ago

I keep getting this error when I try to open the map screen: ════════ Exception caught by image resource service ════════════════════════════ Exception: Buffer parameter must not be null ════════════════════════════════════════════════════════════════════════════════

CesarSP99 commented 10 months ago

I have the same issue, I'm getting a mix of that error:

======== Exception caught by image resource service ================================================
The following _Exception was thrown resolving an image codec:
Exception: Buffer parameter must not be null

When the exception was thrown, this was the stack: 
#0      _futurize (dart:ui/painting.dart:6950:5)
#1      ImageDescriptor.encoded (dart:ui/painting.dart:6764:12)
#2      instantiateImageCodecWithSize (dart:ui/painting.dart:2307:60)
#3      PaintingBinding.instantiateImageCodecWithSize (package:flutter/src/painting/binding.dart:182:15)
#4      _CNTPImageProvider._loadAsync (package:flutter_map_cancellable_tile_provider/flutter_map_cancellable_tile_provider.dart:146:22)
<asynchronous suspension>
URL: https://tile.openstreetmap.org/18/47407/101967.png
Fallback URL: null
Current provider: _CNTPImageProvider()
====================================================================================================

And this one:

E/flutter (17139): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Null check operator used on a null value
E/flutter (17139): #0      _FlutterLocationPickerState.onLocationChanged.<anonymous closure> (package:location_picker_flutter_map/src/location_picker.dart:413:25)
E/flutter (17139): <asynchronous suspension>
E/flutter (17139): 
JoseAndresHV commented 10 months ago

I have the same issue as well

Michael-M-aher commented 9 months ago

Fixed ✅