mapbox / mapbox/mapbox-maps-android

Crash when apply filters on large amount of data

Open
#2,644 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

auto-triaged bug :beetle:
Dominant language
Kotlin
Stars
578
Forks
161
PR merge metrics
No merged PRs in 30d

Description

Environment

  • Android OS version: 16
  • Devices affected: Pixel 9
  • Maps SDK Version: 11.11.0

Observed behavior and steps to reproduce

The map view charges when I apply the second line in the expression below. When I am zoomed in on a street level then everything works.
But when I zoom out to a large area then it crashes. If the second line is commented out then it does not crash.

Expression.Companion.all(
Expression.Companion.gte(get(DETECTED_AT), Expression.Companion.literal(1)),
Expression.Companion.eq(get(PARCEL_ROAD_HASH), Expression.Companion.literal(roadHash.roadClassHash.toLong())),
)

Expected behavior

It should be possible to apply filters on the map and zoom out without is crashing.

Notes / preliminary analysis

We do have a large amount of data points. When the map is zoomed out then all the data is visible.

Additional links and references

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue in the Android sample or app using the reported Kotlin expression, Maps SDK 11.11.0, a Pixel 9 or equivalent, and a large zoomed-out area. Compare behavior with and without the second filter line; done means applying the filter and zooming out no longer crashes with the reported large dataset.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.