You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Warning database has been locked for 0:00:10.000000. #752
When loading several TileLayerOptions at the same time, using the default CachedNetworkTileProvider I get the warning "Warning database has been locked for 0:00:10.000000." I suspect this is caused by cached_network_image or rather flutter_cache_manager. Loading only a few layers at the same time does not produce this problem.
Anyone had this and able to provide a solution/workaround (except not loading several layers...)
CachedNetworkTileProvider uses Flutter's CachedNetworkImageProvider and if they use sqlite as default cache manager then it could happen because images' bytes aren't batched in one transaction since they don't know about each other since images returns from internet at different time.
Activity
maRci002 commentedon Sep 23, 2020
CachedNetworkTileProvideruses Flutter'sCachedNetworkImageProviderand if they use sqlite as default cache manager then it could happen because images' bytes aren't batched in one transaction since they don't know about each other since images returns from internet at different time.Try to add some layers a little later, like this:
However if you move around map this can still happen and above solution may not solve the above warning.
Swepilot commentedon Sep 24, 2020
Thanks again, very supportive as always. Yeah, it happens when moving the map around. I'll see what I can do to improve this.