Open S-Man42 opened 2 years ago
I have this exception in the emulator.
E/flutter (15029): [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: type 'double' is not a subtype of type 'Map<String, dynamic>'
E/flutter (15029): #0 restoreJsonMapViewData (package:gc_wizard/persistence/map_view/json_provider.dart:99:30)
E/flutter (15029): #1 MapViewPersistenceAdapter.setJsonMapViewData (package:gc_wizard/widgets/tools/coords/map_view/mapview_persistence_adapter.dart:259:22)
E/flutter (15029): #2 GCWMapViewState._buildEditButtons.
But I haven't gotten the app to crash in the emulator yet.
looks interesting
on web Error: MissingPluginException(No implementation found for method checkPermissionStatus on channel flutter.baseflow.com/permissions/methods) but no crash
It must have something to do with the MapLines. See following memory graph:
No idea... do not find it...
Can I get the exact detailed step-by-step scenario to reproduce this issue, please ?
Well it's quite easy:
Version A: Create many points and lines inbetween (e.g. Toggle "Lines" Button and simply paint new points by long press onto the map). I mean really many many lines
Version B: Instead creating the lines manually, you can take the the sample file added above -> Rename the .ZIP to .KML and import it to the Map ("Open" button).
As already said: The crash maybe CANNOT reproduced on an emulator (or web), only on a physical device.
Reproducable vids:
Can anybody still reproduce this?
The MapView is crashing when it contains many lines after some zooming/panning actions.
Adding several points: Zoom/Pan, everything's fine. Adding some lines between the points: Zoom/Pan: Memory increases, map lags, and finally the app closes. (See memory graphs attached below)
Maybe not reproducable on emulator, maybe needs a physical device for debugging. (Enable debugging and USB options; for seeing graph use Chrome devtools: https://docs.flutter.dev/development/tools/devtools/overview)