Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Crash during offline side loading #626

@anonali

Description

@anonali

In the existing example app, in the offline_regions.dart file, I have created additional list items and corresponding data fields.

When I go to download more than a few regions simultaneously, the app crashes and upon reloading on the same device, the app fails to load.

When I go to download a couple of regions at a time and wait for the download to complete, the download does complete, however, when I exit the screen (i.e. go to the home page) and then come back to the offline_regions page, the page is completely blank (except for the app bar).

This is the output from the terminal:

#1 OfflineRegionDefinition._latLngBoundsFromList
package:mapbox_gl/src/offline_region.dart:55
#2 new OfflineRegionDefinition.fromMap
package:mapbox_gl/src/offline_region.dart:37
#3 new OfflineRegion.fromMap
package:mapbox_gl/src/offline_region.dart:86
#4 getListOfRegions.
package:mapbox_gl/src/global.dart:44
#5 MappedListIterable.elementAt (dart:_internal/iterable.dart:411:31)
#6 ListIterator.moveNext (dart:_internal/iterable.dart:340:26)
#7 new _GrowableList._ofEfficientLengthIterable (dart:core-patch/growable_array.dart:188:27)
#8 new _GrowableList.of (dart:core-patch/growable_array.dart:150:28)
#9 new List.of (dart:core-patch/array_patch.dart:50:28)
#10 ListIterable.toList (dart:_internal/iterable.dart:211:44)
#11 getListOfRegions
package:mapbox_gl/src/global.dart:44

#12 _OfflineRegionsBodyState._updateListOfRegions package:mapbox_gl_example/offline_regions.dart:526

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions