Skip to content

Frequent ANR reports for fr.free.nrw.commons.explore.map.ExploreMapFragment.moveCameraToPosition #6276

Open
@RitikaPahwa4444

Description

@RitikaPahwa4444

Summary

11 ANR reports for fr.free.nrw.commons.explore.map.ExploreMapFragment.moveCameraToPosition. Input dispatching timed out.

Steps to reproduce

Found on the Play Console. Anyone able to reproduce this?

Expected behaviour

No ANR :)

Actual behaviour

ANR

Device name

Very frequent on Samsung devices

Android version

Android 14

Commons app version

5.2.0

Device logs

Logs from the main thread:

 at java.util.ArrayList.indexOfRange (ArrayList.java:305)
  at java.util.ArrayList.indexOf (ArrayList.java:293)
  at java.util.ArrayList.contains (ArrayList.java:282)
  at android.animation.AnimationHandler.addAnimationFrameCallback (AnimationHandler.java:295)
  at android.animation.ValueAnimator.addAnimationCallback (ValueAnimator.java:1603)
  at android.animation.ValueAnimator.start (ValueAnimator.java:1143)
  at android.animation.ValueAnimator.start (ValueAnimator.java:1173)
  at org.osmdroid.views.MapController.animateTo (MapController.java:170)
  at org.osmdroid.views.MapController.animateTo (MapController.java:137)
  at org.osmdroid.views.MapController.animateTo (MapController.java:183)
  at org.osmdroid.views.MapController.animateTo (MapController.java:129)
  at fr.free.nrw.commons.explore.map.ExploreMapFragment.moveCameraToPosition (ExploreMapFragment.java:893)
  at fr.free.nrw.commons.explore.map.ExploreMapFragment.getMapCenter (ExploreMapFragment.java:934)
  at fr.free.nrw.commons.explore.map.ExploreMapFragment.getLastMapFocus (ExploreMapFragment.java:910)
  at fr.free.nrw.commons.explore.map.ExploreMapFragment$2.onScroll (ExploreMapFragment.java:262)
  at org.osmdroid.views.MapView.setExpectedCenter (MapView.java:1838)
  at org.osmdroid.views.MapView.setExpectedCenter (MapView.java:1848)
  at org.osmdroid.views.MapController$MapAnimatorListener.onAnimationUpdate (MapController.java:535)
  at android.animation.Animator$AnimatorCaller.lambda$static$4 (Animator.java:858)
  at android.animation.Animator$AnimatorCaller$$ExternalSyntheticLambda6.call (unavailable:4)
  at android.animation.Animator.callOnList (Animator.java:669)
  at android.animation.ValueAnimator.animateValue (ValueAnimator.java:1645)
  at android.animation.ValueAnimator.setCurrentFraction (ValueAnimator.java:771)
  at android.animation.ValueAnimator.setCurrentPlayTime (ValueAnimator.java:734)
  at android.animation.ValueAnimator.start (ValueAnimator.java:1154)
  at android.animation.ValueAnimator.start (ValueAnimator.java:1173)
  at org.osmdroid.views.MapController.animateTo (MapController.java:170)
  at org.osmdroid.views.MapController.animateTo (MapController.java:137)
  at org.osmdroid.views.MapController.animateTo (MapController.java:183)
  at org.osmdroid.views.MapController.animateTo (MapController.java:129)
  at fr.free.nrw.commons.explore.map.ExploreMapFragment.moveCameraToPosition (ExploreMapFragment.java:893)
  at fr.free.nrw.commons.explore.map.ExploreMapFragment.getMapCenter (ExploreMapFragment.java:934)
  at fr.free.nrw.commons.explore.map.ExploreMapFragment.getLastMapFocus (ExploreMapFragment.java:910)
  at fr.free.nrw.commons.explore.map.ExploreMapFragment$2.onScroll (ExploreMapFragment.java:254)
  at org.osmdroid.views.MapView.setExpectedCenter (MapView.java:1838)
  at org.osmdroid.views.MapView.setExpectedCenter (MapView.java:1848)
  at org.osmdroid.views.MapController$MapAnimatorListener.onAnimationUpdate (MapController.java:535)
  at android.animation.Animator$AnimatorCaller.lambda$static$4 (Animator.java:858)
  at android.animation.Animator$AnimatorCaller$$ExternalSyntheticLambda6.call (unavailable:4)
  at android.animation.Animator.callOnList (Animator.java:669)
  at android.animation.ValueAnimator.animateValue (ValueAnimator.java:1645)
  at android.animation.ValueAnimator.animateBasedOnTime (ValueAnimator.java:1405)
  at android.animation.ValueAnimator.doAnimationFrame (ValueAnimator.java:1563)
  at android.animation.AnimationHandler.doAnimationFrame (AnimationHandler.java:344)
  at android.animation.AnimationHandler.-$$Nest$mdoAnimationFrame (unavailable)
  at android.animation.AnimationHandler$1.doFrame (AnimationHandler.java:86)
  at android.view.Choreographer$CallbackRecord.run (Choreographer.java:1688)
  at android.view.Choreographer$CallbackRecord.run (Choreographer.java:1699)
  at android.view.Choreographer.doCallbacks (Choreographer.java:1154)
  at android.view.Choreographer.doFrame (Choreographer.java:1070)
  at android.view.Choreographer$FrameDisplayEventReceiver.run (Choreographer.java:1647)
  at android.os.Handler.handleCallback (Handler.java:958)
  at android.os.Handler.dispatchMessage (Handler.java:99)
  at android.os.Looper.loopOnce (Looper.java:230)
  at android.os.Looper.loop (Looper.java:319)
  at android.app.ActivityThread.main (ActivityThread.java:9063)
  at java.lang.reflect.Method.invoke (Native method)
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:588)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1103)

I can add from the other threads if required.

Screen-shots

No response

Would you like to work on the issue?

Prefer not

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions