Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash during offline side loading #626

Closed
anonali opened this issue Apr 28, 2021 · 1 comment
Closed

Crash during offline side loading #626

anonali opened this issue Apr 28, 2021 · 1 comment
Labels

Comments

@anonali
Copy link

anonali commented Apr 28, 2021

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
@stale
Copy link

stale bot commented Jan 14, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jan 14, 2022
@stale stale bot closed this as completed Jan 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant