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.

assertion failure in ~CachingHTTPFileSource #686

Closed

Activity

  1. mikemorris commented on Dec 3, 2014

    @mikemorris
    Contributor

    Huh, interesting. Is there any way either uv_thread_self() or thread_id could have changed between the initial CachingHTTPFileSource::setLoop and app shutdown?

  2. jfirebaugh commented on Dec 3, 2014

    @jfirebaugh
    ContributorAuthor

    CachingHTTPFileSource is created on the main thread, but then setLoop is called by Map::prepare on the rendering thread, and that resets thread_id.

  3. mikemorris commented on Dec 3, 2014

    @mikemorris
    Contributor

    Doh, that makes sense. That assert should probably never be expected to pass and should be removed then?

  4. donpark commented on Dec 4, 2014

    @donpark

    Following assert in caching_http_file_source.cpp also fails when app is awaked from background (with map visible, switch to another app, switch back), maybe because thread ID set in setLoop when it was previously in foreground doesn't match the new thread ID.

    std::unique_ptr<Request> CachingHTTPFileSource::request(ResourceType type, const std::string &url) {
        assert(thread_id == std::this_thread::get_id());
    
  5. self-assigned this
    on Dec 4, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions