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.

[android] [bug] UserLocationView Compass Mode and Map Rotation + Accuracy Path too big #4186

Closed

Description

@mayardb

Hello Mapbox team!

While implementing #4137 and #4136, I find two major bugs:

  • The test sample is crashing when using a high zoom and the accuracy is not precise:
03-03 15:52:10.747 20439-20439/com.mapbox.mapboxsdk.testapp W/OpenGLRenderer: Path too large to be rendered into a texture
03-03 15:52:10.747 20439-20439/com.mapbox.mapboxsdk.testapp W/OpenGLRenderer: Path too large to be rendered into a texture
03-03 15:52:11.357 20439-20439/com.mapbox.mapboxsdk.testapp A/libc: Fatal signal 11 (SIGSEGV) at 0x00000058 (code=1), thread 20439 (pboxsdk.testapp)

Don't know if it is related, but that's the way I always reproduce this crash.

  • When Map is not facing the North, UserLocationView is not rightly orientated.

I am using Google Maps as reference:
maps location

Then, without moving the phone, but changing the map orientation (see the compass view)
Mapbox User Tracking Mode sample pointing the north:
mapbox north

Mapbox User Tracking Mode sample pointing the east:
mapbox east

Mapbox User Tracking Mode sample pointing the south:
mapbox south

Mapbox User Tracking Mode sample pointing the west:
mapbox west

Activity

  1. added
    Android
    on Mar 3, 2016
  2. tobrun commented on Mar 3, 2016

    @tobrun
    Member

    @mayardb thank you for writing this up and adding screenshots. This is super helpful. If I understand correctly this is the last bug to be resolved to get #4137 in? I will try looking at this in the next days.

  3. mayardb commented on Mar 3, 2016

    @mayardb
    ContributorAuthor

    I think #4137 is over as it covers all the needed functionality. But while I can rotate the map and display the bearing drawable at the same time, #4137 highlights this orientation bug.

    Concerning the accuracy crash, we have been thinking about two things:

    1. We could use the best estimate Algorithm that is recommended by Google: http://developer.android.com/guide/topics/location/strategies.html#BestEstimate. It will grant use not to display inaccurate location if a more precise location was known few seconds ago
    2. If the location is too inaccurate, we could display the stale drawable. (but I have not investigated to know what means "too inaccurate")
  4. tobrun commented on Mar 3, 2016

    @tobrun
    Member

    @mayardb yeah, I wanted to take a look at improving the accuracy circle for some time now in #3078, now that we can zoom even further the problem has only gotten worse until the point it even crashes. FWIW I would like to rewrite UserLocationView from scratch since it has multiple problems with it.

    Thank you for sharing that link, that is great information to have! But I wanted to point out that we try to limit our interaction with location improvements as much as possible. Since, in my opinion, should be optimised by Mapzen LOST (the framework we use to get location updates).

  5. modified the milestone: android-v4.1.0 on Mar 18, 2016
  6. tobrun commented on Jun 21, 2016

    @tobrun
    Member

    Closing for now as non-actionable, the best estimate is something I will take with me for when we decouple from Mapzen LOST.

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

    Androidbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions