New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stopped Working #10

Closed
biplovbhandari opened this Issue Jan 19, 2015 · 2 comments

Comments

Projects
None yet
3 participants
@biplovbhandari

biplovbhandari commented Jan 19, 2015

When after looking the info for a particular brick kiln and zooming out. At about 10,000 km scale , the application stopped working. We can specify the max Bound for the map and also the minimum and maximum zoom level.

@nirabpudasaini

This comment has been minimized.

Show comment
Hide comment
@nirabpudasaini

nirabpudasaini Jan 19, 2015

Collaborator

The app crashes on high zoom levels , the zoom button is disabled but user can still pinch out to zoom. There are errors in Clusterer helper functions, here is the stack trace.

01-19 11:13:02.917 4006-4050/map.kll.org.brickkilnnew E/AndroidRuntime﹕ FATAL EXCEPTION: AsyncTask #2
Process: map.kll.org.brickkilnnew, PID: 4006
java.lang.RuntimeException: An error occured while executing doInBackground()
at android.os.AsyncTask$3.done(AsyncTask.java:300)
at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:355)
at java.util.concurrent.FutureTask.setException(FutureTask.java:222)
at java.util.concurrent.FutureTask.run(FutureTask.java:242)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:841)
Caused by: java.lang.IllegalArgumentException: invalid pixelY coordinate 1536: -190.02277934669792
at org.mapsforge.core.util.MercatorProjection.pixelYToLatitude(MercatorProjection.java:448)
at org.mapsforge.map.util.MapViewProjection.fromPixels(MapViewProjection.java:61)
at map.kll.org.brickkilnnew.cluster.ClusterManager.getCurBounds(ClusterManager.java:251)
at map.kll.org.brickkilnnew.cluster.ClusterManager.isItemInViewport(ClusterManager.java:234)
at map.kll.org.brickkilnnew.cluster.ClusterManager.addItem(ClusterManager.java:172)
at map.kll.org.brickkilnnew.cluster.ClusterManager.addLeftItems(ClusterManager.java:271)
at map.kll.org.brickkilnnew.cluster.ClusterManager$ClusterTask.doInBackground(ClusterManager.java:339)
at map.kll.org.brickkilnnew.cluster.ClusterManager$ClusterTask.doInBackground(ClusterManager.java:321)
at android.os.AsyncTask$2.call(AsyncTask.java:288)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
            at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
            at java.lang.Thread.run(Thread.java:841)

Collaborator

nirabpudasaini commented Jan 19, 2015

The app crashes on high zoom levels , the zoom button is disabled but user can still pinch out to zoom. There are errors in Clusterer helper functions, here is the stack trace.

01-19 11:13:02.917 4006-4050/map.kll.org.brickkilnnew E/AndroidRuntime﹕ FATAL EXCEPTION: AsyncTask #2
Process: map.kll.org.brickkilnnew, PID: 4006
java.lang.RuntimeException: An error occured while executing doInBackground()
at android.os.AsyncTask$3.done(AsyncTask.java:300)
at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:355)
at java.util.concurrent.FutureTask.setException(FutureTask.java:222)
at java.util.concurrent.FutureTask.run(FutureTask.java:242)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:841)
Caused by: java.lang.IllegalArgumentException: invalid pixelY coordinate 1536: -190.02277934669792
at org.mapsforge.core.util.MercatorProjection.pixelYToLatitude(MercatorProjection.java:448)
at org.mapsforge.map.util.MapViewProjection.fromPixels(MapViewProjection.java:61)
at map.kll.org.brickkilnnew.cluster.ClusterManager.getCurBounds(ClusterManager.java:251)
at map.kll.org.brickkilnnew.cluster.ClusterManager.isItemInViewport(ClusterManager.java:234)
at map.kll.org.brickkilnnew.cluster.ClusterManager.addItem(ClusterManager.java:172)
at map.kll.org.brickkilnnew.cluster.ClusterManager.addLeftItems(ClusterManager.java:271)
at map.kll.org.brickkilnnew.cluster.ClusterManager$ClusterTask.doInBackground(ClusterManager.java:339)
at map.kll.org.brickkilnnew.cluster.ClusterManager$ClusterTask.doInBackground(ClusterManager.java:321)
at android.os.AsyncTask$2.call(AsyncTask.java:288)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
            at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
            at java.lang.Thread.run(Thread.java:841)

@nirabpudasaini nirabpudasaini self-assigned this Jan 27, 2015

@Pujan789556

This comment has been minimized.

Show comment
Hide comment
@Pujan789556

Pujan789556 Jan 28, 2015

Owner

Resolved by Nirab

Owner

Pujan789556 commented Jan 28, 2015

Resolved by Nirab

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment