Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

"Downloaded Tiles" count fixed at zero #5305

Closed

Description

@mapsam

The recent addition of extra data columns to the offline packs 7329a40 doesn't seem to be counting the tiles, and stays at 0.

Platform: OS X
Mapbox SDK version: master

Steps to trigger behavior

  1. Download an offline map pack
  2. 👀

Expected behavior

I would expect the number to be greater than zero.

Actual behavior

Says 0 tiles downloaded, which doesn't seem right considering there's a calculated size of tiles.

screen shot 2016-06-09 at 3 44 43 pm

cc @1ec5

Activity

  1. 1ec5 commented on Jun 9, 2016

    @1ec5
    Contributor

    Closing and reopening the window updates the cell. I’m not sure why it’s failing to update, but the bug definitely lies in the UI rather than the underlying offline storage implementation.

  2. added
    macOS
    on Jun 9, 2016
  3. 1ec5 commented on Jun 9, 2016

    @1ec5
    Contributor

    Actually, if that were the case, selecting the row would update the cell. (I thought it was a Cocoa Bindings issue, but it isn’t.) With a breakpoint in -[MGLOfflinePack offlineRegionStatusDidChange:], I can see that mbgl::OfflineRegionStatuses passed into mbgl::OfflineRegionObserver::statusChanged() during download have completedTileCount at 0 even after completedTileSize begins to increase:

    completedTileCount

    The reason closing and reopening the window causes the cell to get populated is that mbgl::DefaultFileSource::getOfflineRegionStatus() comes back with an mbgl::OfflineRegionStatus that does have completedTileCount set.

    /cc @jfirebaugh

  4. added
    Core
    and removed
    macOS
    on Jun 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Corebugoffline

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions