{"action":"created","issue":{"url":"https://api.github.com/repos/osmdroid/osmdroid/issues/82","repository_url":"https://api.github.com/repos/osmdroid/osmdroid","labels_url":"https://api.github.com/repos/osmdroid/osmdroid/issues/82/labels{/name}","comments_url":"https://api.github.com/repos/osmdroid/osmdroid/issues/82/comments","events_url":"https://api.github.com/repos/osmdroid/osmdroid/issues/82/events","html_url":"https://github.com/osmdroid/osmdroid/issues/82","id":50299332,"number":82,"title":"OsmAndroid Overlay : «WIN DEATH» Crash when using canvas.drawCircle()","user":{"login":"fabier","id":3998212,"avatar_url":"https://avatars.githubusercontent.com/u/3998212?v=3","gravatar_id":"","url":"https://api.github.com/users/fabier","html_url":"https://github.com/fabier","followers_url":"https://api.github.com/users/fabier/followers","following_url":"https://api.github.com/users/fabier/following{/other_user}","gists_url":"https://api.github.com/users/fabier/gists{/gist_id}","starred_url":"https://api.github.com/users/fabier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabier/subscriptions","organizations_url":"https://api.github.com/users/fabier/orgs","repos_url":"https://api.github.com/users/fabier/repos","events_url":"https://api.github.com/users/fabier/events{/privacy}","received_events_url":"https://api.github.com/users/fabier/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2014-11-27T14:56:07Z","updated_at":"2016-06-30T13:15:17Z","closed_at":null,"body":"I've got a very weird bug on my application that displays a map with a blue circle on top of the map.\r\n\r\nI have :\r\n\r\n…\r\npublic class MapOverlay extends Overlay {\r\n    …\r\n    private Paint innerPaint;\r\n    …\r\n    public MapOverlay(Context context) {\r\n        …\r\n        this.innerPaint = new Paint();\r\n        this.innerPaint.setColor(Color.argb(0x80, 0x43, 0x24, 0xa0));\r\n        this.innerPaint.setStrokeWidth(2.0f);\r\n        this.innerPaint.setStyle(Style.FILL);\r\n        …\r\n    }\r\n    …\r\n    @Override\r\n    public void draw(Canvas canvas, MapView mapView, boolean shadow) {\r\n    if (!shadow && mapView.getZoomLevel() == 18) {\r\n        canvas.drawCircle(-19279750, -11004483, 8.0f, innerPaint);\r\n    }\r\n    …\r\n}\r\nThis code fails (if you go to this location at level 18 on your map).\r\n\r\nBut if you change the last line to :\r\n\r\ncanvas.drawCircle(-19279750, -11004482, 8.0f, innerPaint);\r\ncanvas.drawCircle(-19279750, -11004484, 8.0f, innerPaint);\r\ncanvas.drawCircle(-19279749, -11004483, 8.0f, innerPaint);\r\ncanvas.drawCircle(-19279751, -11004483, 8.0f, innerPaint);\r\nor a lot of other combinaisons, this code will work properly.\r\n\r\nWhat is happening ?\r\n\r\nIn logs, I can see the following line:\r\n\r\n15:07:39.120: I/WindowState(2330): WIN DEATH: Window{4274b490 u0 com.xyz.xyz/com.xyz.xyz.xyz}\r\nLast info, I can also reproduce this bug when using the pair : x=-19279797, y=-11004415\r\n\r\nIs there a rule to those pairs of values ???\r\n\r\nhttps://stackoverflow.com/questions/27173115/why-is-my-android-crashing-when-i-do-canvas-drawcanvas-19279750-11004483\r\n\r\nThanks !"},"comment":{"url":"https://api.github.com/repos/osmdroid/osmdroid/issues/comments/229654245","html_url":"https://github.com/osmdroid/osmdroid/issues/82#issuecomment-229654245","issue_url":"https://api.github.com/repos/osmdroid/osmdroid/issues/82","id":229654245,"user":{"login":"fabier","id":3998212,"avatar_url":"https://avatars.githubusercontent.com/u/3998212?v=3","gravatar_id":"","url":"https://api.github.com/users/fabier","html_url":"https://github.com/fabier","followers_url":"https://api.github.com/users/fabier/followers","following_url":"https://api.github.com/users/fabier/following{/other_user}","gists_url":"https://api.github.com/users/fabier/gists{/gist_id}","starred_url":"https://api.github.com/users/fabier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabier/subscriptions","organizations_url":"https://api.github.com/users/fabier/orgs","repos_url":"https://api.github.com/users/fabier/repos","events_url":"https://api.github.com/users/fabier/events{/privacy}","received_events_url":"https://api.github.com/users/fabier/received_events","type":"User","site_admin":false},"created_at":"2016-06-30T13:15:17Z","updated_at":"2016-06-30T13:15:17Z","body":"Maybe this could help : OSMDroid version used is 4.2-SNAPSHOT\r\nIt seems there is no reference to Projection or TileProvider in the source code that has a bug, so maybe something changed between 4.2 and current version (5.2) ?\r\nMaybe the default projection has changed?\r\nCan you have a look ?"}}
{"actor":{"display_login":"fabier"}}