-
Notifications
You must be signed in to change notification settings - Fork 986
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
CacheManager error : "Wrong owner. Perhaps a late disconnect" #1316
Comments
what tile source is this? |
I tried with
OSM Mapnik
OSM HikeBike
4uMaps.eu
OSM OpenTopo
Same error for every tile source..
…On Sat, Apr 13, 2019 at 4:57 PM spyhunter99 ***@***.***> wrote:
what tile source is this?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1316 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AsVMoOyv4mHsb0iZLIChvo5nNPAcS-2Rks5vgfBzgaJpZM4cuEiv>
.
|
The complete error is this.. I/OsmDroid: Http redirect for MapTile: /12/2145/1462 HTTP response: Found to url https://tiles.wmflabs.org/hikebike/12/2145/1462.png And it happens for all the tiles to download.. |
no idea, maybe it's related to http user agent header? |
@PaoloDozio Regarding HikeBikeMap, what I can say is that the "http://{a|b|c}.tiles." doesn't seem to work anymore, and that it's redirected to "https://tiles." Could you try again with a custom made tile source: final OnlineTileSourceBase myHIKEBIKEMAP = new XYTileSource("MyHikeBikeMap",
0, 18, 256, ".png", new String[] { "https://tiles.wmflabs.org/hikebike/"}); I don't know, maybe something is lost in the redirection. Why would it work in "live" but not in "cache" mode? There seems to be little differences:
Btw, do you use the default |
I have the download error if I do this
mMapOSM.setTileSource(TileSourceFactory.USGS_TOPO);
mOSMCacheManager = new CacheManager(mMapOSM);
.....
// Change the tile source
mMapOSM.setTileSource(TileSourceFactory.HIKEBIKEMAP);
....
mOSMCacheManager.downloadAreaAsync(.....)
If I do this, it works
mMapOSM.setTileSource(TileSourceFactory.HIKEBIKEMAP);
mOSMCacheManager = new CacheManager(mMapOSM);
mOSMCacheManager.downloadAreaAsync(.....);
but when I do this, it crashes
mMapOSM.setTileSource(TileSourceFactory.MAPNIK);
mOSMCacheManager = new CacheManager(mMapOSM);
mOSMCacheManager.downloadAreaAsync(.....);
The Execption message is "This online tile source doesn't support bulk download"
If think the problem was due to when I change the tile source, I need
to recreate the CacheManager object.
I thought that the tileSource was get from the map and not during the
creation of the ChaceManager Object...
…On Sat, Apr 13, 2019 at 7:32 PM monsieurtanuki ***@***.***> wrote:
@PaoloDozio Regarding HikeBikeMap, what I can say is that the "http://{a|b|c}.tiles." doesn't seem to work anymore, and that it's redirected to "https://tiles."
On my smartphone, the old http URLs work OK when accessed through the web or through the demo app "in live mode" (didn't try in cache mode, as the demo app sample doesn't let us change the tile source for the cache)
Could you try again with a custom made tile source:
final OnlineTileSourceBase myHIKEBIKEMAP = new XYTileSource("MyHikeBikeMap",
0, 18, 256, ".png", new String[] { "https://tiles.wmflabs.org/hikebike/"});
I don't know, maybe something is lost in the redirection.
Why would it work in "live" but not in "cache" mode? There seems to be little differences:
in "live" mode, we manage a semaphore in order to limit the concurrent access to the tile source
in "cache" mode we don't use the semaphore, but we download the tiles one by one
Btw, do you use the default TileDownloader for the CacheManager: you don't use CacheManager.setTileDownloader, do you?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
@PaoloDozio For MAPNIK, OSM admin guys recently asked us to forbid the bulk downloads (#1286). Their servers were too heavily impacted. That's why you get the explicit message "This online tile source doesn't support bulk download". I noticed a small slightly unrelated bug in Assuming that your tests are correct (meaning "if you don't change the
|
…rt check timing Impacted class: * `CacheManager`: the "supports bulk download?" check is now performed only for download actions
Ok, thanks you..
In my App I have only one instance of cache manager and I create it after
creating the OSM map instance..
Then the user can change the tile provider, but the instance of cache
manager remain the same..
The strange thing is that when the user change the tile provider, the
number of tiles to download changes correctly, but when I start to
download, every tile download is in error..
I changed my code moving the creation of the instance of cache manager
after selecting the new tile provider..
Maybe only adding the function SetTileProvider also for the instance of the
cache manager should solve my issue.. or leave as it is.. the change of my
code makes sense..
Thanks for your fast support..
…On Sun, 14 Apr 2019, 17:23 monsieurtanuki, ***@***.***> wrote:
@PaoloDozio <https://github.com/PaoloDozio> For MAPNIK, OSM admin guys
recently asked us to forbid the bulk downloads (#1286
<#1286>). Their servers were
too heavily impacted. That's why you get the explicit message "This online
tile source doesn't support bulk download".
I noticed a small slightly unrelated bug in CacheManager; I'm about to PR.
Assuming that your tests are correct (meaning "if you don't change the
MapView's tile source after you create the CacheManager then everything
is fine") and if we go a bit beyond, we should put in the todo-list:
- either change a bit the wiki or change the CacheManager concept
- change the demo app samples dedicated to CacheManager tests, so that
we can test with different sources
- apply the same restrictions for the bulk download and the live
download regarding the number of concurrent processes
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1316 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AsVMoGB2BAiWCKFoyKNS5hL1or8FUcMJks5vg0fZgaJpZM4cuEiv>
.
|
…rt check timing (#1317) Impacted class: * `CacheManager`: the "supports bulk download?" check is now performed only for download actions
Issue Type
[ ] Question
[X] Bug
[ ] Improvement
[ ] Build system related
[ ] Performance
[ ] Documentation
Description and/or steps/code to reproduce the problem
I used in the previous version the CacheManager, but now, when I try to download the tiles with the function
mOSMCacheManager.downloadAreaAsync
I receive this message
W/OsmDroid: Problem downloading MapTile: /z/y/x HTTP response:
I/System.out: Wrong owner. Perhaps a late disconnect
I don't understand where I wrong...
Environment
If it's a bug, version(s) of android this affects:
All
Version of osmdroid the issue relates to:
Tested on 6.1.0 and 6.0.3
The text was updated successfully, but these errors were encountered: