inaturalist / iNaturalistReactNative

Cross-platform version of the iNat mobile app
MIT License
70 stars 25 forks source link

Cannot read property 'length' of undefined crash #2205

Closed albullington closed 1 month ago

albullington commented 1 month ago

Describe the bug We're seeing a few users impacted by the following error in Grafana: Cannot read property 'length' of undefined. This is happening in the getKeyForPixelExpansive function while fetching UTF position.

Expected behavior We shouldn't be taking the length of an undefined object; the user should not experience a crash.

Screenshots If applicable, add screenshots to help explain your problem.

Context (please complete the following information):

jtklein commented 1 month ago

If it helps, I think I have encountered this myself on Explore, by

  1. zooming all the way into the map,
  2. then "Redo search in map" so that only one observation is in the map area,
  3. then pressing this observation.

Although not always reproducibly.