java.lang.IllegalArgumentException: invalid pixelY coordinate 1024: -406.73785414891347

GitHub | Lineflyer | 6 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Invalid Argument Exception

    GitHub | 6 months ago | Lineflyer
    java.lang.IllegalArgumentException: invalid pixelY coordinate 1024: -406.73785414891347
  2. 0

    GitHub comment 5903#239876789

    GitHub | 6 months ago | Lineflyer
    java.lang.IllegalArgumentException: invalid pixelY coordinate 384: -144.0

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      invalid pixelY coordinate 1024: -406.73785414891347

      at org.mapsforge.core.util.MercatorProjection.pixelYToLatitude()
    2. org.mapsforge.core
      MercatorProjection.fromPixels
      1. org.mapsforge.core.util.MercatorProjection.pixelYToLatitude(MercatorProjection.java:409)
      2. org.mapsforge.core.util.MercatorProjection.fromPixels(MercatorProjection.java:91)
      2 frames
    3. cgeo.geocaching.maps
      NewMap$DisplayHandler.handleMessage
      1. cgeo.geocaching.maps.mapsforge.v6.MfMapView.getLatitudeSpan(MfMapView.java:46)
      2. cgeo.geocaching.maps.mapsforge.v6.MfMapView.getViewport(MfMapView.java:34)
      3. cgeo.geocaching.maps.mapsforge.v6.caches.AbstractCachesOverlay.getVisibleItemsCount(AbstractCachesOverlay.java:54)
      4. cgeo.geocaching.maps.mapsforge.v6.caches.CachesBundle.getVisibleItemsCount(CachesBundle.java:156)
      5. cgeo.geocaching.maps.mapsforge.v6.NewMap.countVisibleCaches(NewMap.java:872)
      6. cgeo.geocaching.maps.mapsforge.v6.NewMap.calculateSubtitle(NewMap.java:852)
      7. cgeo.geocaching.maps.mapsforge.v6.NewMap.setSubtitle(NewMap.java:832)
      8. cgeo.geocaching.maps.mapsforge.v6.NewMap.access$300(NewMap.java:99)
      9. cgeo.geocaching.maps.mapsforge.v6.NewMap$DisplayHandler.handleMessage(NewMap.java:795)
      9 frames
    4. Android Platform
      ActivityThread.main
      1. android.os.Handler.dispatchMessage(Handler.java:102)
      2. android.os.Looper.loop(Looper.java:145)
      3. android.app.ActivityThread.main(ActivityThread.java:6117)
      3 frames
    5. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:372)
      2 frames
    6. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1399)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1194)
      2 frames