{ "id": "138189", "key": "AC-704", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2014-12-12T18:13:50.000+0000", "created": "2014-10-16T11:48:28.000+0000", "labels": [ "TCSupportTriage", "android", "mapView", "mapv2", "titanium" ], "versions": [], "issuelinks": [], "assignee": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "updated": "2016-03-02T05:55:03.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14544", "name": "Alloy", "description": "Please enter tickets related to the Alloy here." }, { "id": "14550", "name": "Appcelerator Modules", "description": "Please enter tickets related to Modules here." } ], "description": "h2. Problem\r\n\r\nI have a MapView in my Android Titanium app. \r\nAfter a certain time the map tiles don't load anymore, resulting in a blurry map, or, if I switch to sattellite view, to an empy grid. Sometimes the issue appears as soon as the map is loaded, sometimes it takes a little longer and the map works fine for an amount of time.\r\nI already tried to change API keys. I think that the issue could be related to this: [https://code.google.com/p/gmaps-api-issues/issues/detail?id=7188],\r\neven it is reported only for Android v4.1.2\r\n\r\nTo exclude that the issue could be related to other parts of the app, I tried to make a test app with just a map in the index and the issue was still present.\r\n\r\nh2. Test case\r\n\r\n{code:lang=javascript|title=index.js}\r\nvar Map = require('ti.map');\r\n\r\n$.index.open();\r\n{code}\r\n\r\n{code:lang=xml|title=index.xml}\r\n\r\n\t\r\n\t\t \r\n \r\n\t\r\n\r\n{code}\r\n\r\nh2. Logs\r\n\r\n{code:lang=none|title=console}\r\n\r\n[ERROR] : REQUEST: ERROR\r\n[ERROR] : REQUEST: java.lang.ArrayIndexOutOfBoundsException: length=1; index=1\r\n[ERROR] : REQUEST: \tat org.appcelerator.titanium.util.TiResponseCache.get(TiResponseCache.java:276)\r\n[ERROR] : REQUEST: \tat com.android.okhttp.internal.http.OkResponseCacheAdapter.get(OkResponseCacheAdapter.java:38)\r\n[ERROR] : REQUEST: \tat com.android.okhttp.internal.http.HttpEngine.initResponseSource(HttpEngine.java:224)\r\n[ERROR] : REQUEST: \tat com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:185)\r\n[ERROR] : REQUEST: \tat com.android.okhttp.internal.http.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:345)\r\n[ERROR] : REQUEST: \tat com.android.okhttp.internal.http.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:89)\r\n[ERROR] : REQUEST: \tat com.android.okhttp.internal.http.HttpURLConnectionImpl.getOutputStream(HttpURLConnectionImpl.java:197)\r\n[ERROR] : REQUEST: \tat com.android.okhttp.internal.http.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:254)\r\n[ERROR] : REQUEST: \tat com.google.maps.api.android.lib6.b.l.run(Unknown Source)\r\n[ERROR] : REQUEST: \tat java.lang.Thread.run(Thread.java:841)\r\n\r\n{code}\r\n\r\nh2. Discussions\r\n\r\nQ&A question [http://developer.appcelerator.com/question/178445]\r\n\r\n", "attachment": [ { "id": "51994", "filename": "screen1.png", "author": { "name": "veronika", "key": "veronika", "displayName": "Veronika Milic", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-10-16T12:02:49.000+0000", "size": 504241, "mimeType": "image/png" } ], "flagged": false, "summary": "Android Map not loading correctly - java.lang.ArrayIndexOutOfBoundsException error", "creator": { "name": "veronika", "key": "veronika", "displayName": "Veronika Milic", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "veronika", "key": "veronika", "displayName": "Veronika Milic", "active": true, "timeZone": "Europe/Berlin" }, "environment": "CLI version 3.4.0\r\nTitanium SDK version 3.4.0.GA and 3.3.0.GA\r\nAndroid 4.4.4, 4.3\r\nOSX 10.9 \r\nTitanium Studio Version: 3.4.0", "comment": { "comments": [ { "id": "328610", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "body": "same here on a Nexus 4 (4.4.4), Map 2.1.6, SDK 3.4.0 GA\r\nlots of:\r\n{quote}\r\n[DEBUG] REQUEST: Connection opened to:https://clients4.google.com/glm/mmap/api\r\n[DEBUG] REQUEST: Open Connection\r\n[DEBUG] REQUEST: DRD(19): 62|147\r\n[DEBUG] REQUEST: Close\r\n[DEBUG] REQUEST: Error processing: com.google.maps.api.android.lib6.b.d@4355d018 not retrying\r\n[DEBUG] REQUEST: Retrying: com.google.maps.api.android.lib6.c.au@4280cee0\r\n[ERROR] REQUEST: ERROR\r\n[ERROR] REQUEST: java.lang.ArrayIndexOutOfBoundsException: length=1; index=1\r\n[ERROR] REQUEST: at org.appcelerator.titanium.util.TiResponseCache.get(TiResponseCache.java:276)\r\n[ERROR] REQUEST: at com.android.okhttp.internal.http.OkResponseCacheAdapter.get(OkResponseCacheAdapter.java:38)\r\n[ERROR] REQUEST: at com.android.okhttp.internal.http.HttpEngine.initResponseSource(HttpEngine.java:224)\r\n[ERROR] REQUEST: at com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:185)\r\n[ERROR] REQUEST: at com.android.okhttp.internal.http.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:345)\r\n[ERROR] REQUEST: at com.android.okhttp.internal.http.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:89)\r\n[ERROR] REQUEST: at com.android.okhttp.internal.http.HttpURLConnectionImpl.getOutputStream(HttpURLConnectionImpl.java:197)\r\n[ERROR] REQUEST: at com.android.okhttp.internal.http.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:254)\r\n[ERROR] REQUEST: at com.google.maps.api.android.lib6.b.l.run(Unknown Source)\r\n[ERROR] REQUEST: at java.lang.Thread.run(Thread.java:841)\r\n{quote}\r\n\r\nits not blurry but slow", "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-10-20T17:00:10.000+0000", "updated": "2014-10-20T17:00:10.000+0000" }, { "id": "328616", "author": { "name": "daantje", "key": "daantje", "displayName": "Daantje Eeltink", "active": true, "timeZone": "Europe/Berlin" }, "body": "I've got the same problem, it just appeared out of nothing. Did not upgrade/update any sdk or device. My app worked fine, did one complete test, restarted my app and the errors appeared. Using Nexus 5 (4.4.4), Map 2.1.6, SDK 3.4.0 GA (OSX 10.10)", "updateAuthor": { "name": "daantje", "key": "daantje", "displayName": "Daantje Eeltink", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-10-20T17:14:17.000+0000", "updated": "2014-10-20T17:15:21.000+0000" }, { "id": "328988", "author": { "name": "lcapra", "key": "lcapra", "displayName": "luca capra", "active": true, "timeZone": "Europe/Rome" }, "body": "Happens to me too on Samsung S3 4.1.2, Xperia Z 4.4.4", "updateAuthor": { "name": "lcapra", "key": "lcapra", "displayName": "luca capra", "active": true, "timeZone": "Europe/Rome" }, "created": "2014-10-22T12:03:39.000+0000", "updated": "2014-10-22T12:03:39.000+0000" }, { "id": "329448", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "body": "Play services (and the Store app) were updated the other day. Might this be the source of this error? My version is 6.1.83", "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-10-24T23:29:33.000+0000", "updated": "2014-10-24T23:29:33.000+0000" }, { "id": "329460", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "body": "The new version 2.2.1 https://github.com/appcelerator/titanium_mobile/tree/master/support/module/packaged\r\nfixed the issue for me\r\n", "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-10-25T08:31:18.000+0000", "updated": "2014-10-27T17:14:09.000+0000" }, { "id": "329503", "author": { "name": "veronika", "key": "veronika", "displayName": "Veronika Milic", "active": true, "timeZone": "Europe/Berlin" }, "body": "Tried the new module, but it seems even worse - the issue appears almost immediately.", "updateAuthor": { "name": "veronika", "key": "veronika", "displayName": "Veronika Milic", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-10-27T08:12:15.000+0000", "updated": "2014-10-27T08:12:15.000+0000" }, { "id": "329559", "author": { "name": "GohTF", "key": "gohtf", "displayName": "Goh TF", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I having the same problem. Tried the new Ti.Map module 2.2.1 with Ti.SDK3.3.0, the same problem still happen.", "updateAuthor": { "name": "GohTF", "key": "gohtf", "displayName": "Goh TF", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-10-27T18:04:25.000+0000", "updated": "2014-10-27T18:04:25.000+0000" }, { "id": "329724", "author": { "name": "lcapra", "key": "lcapra", "displayName": "luca capra", "active": true, "timeZone": "Europe/Rome" }, "body": "I've tried v2.2.1but still have the issue. \r\nSeems a caching issue as cleaning the app cache allow to load fresh map imagery that looks good. \r\nAt a certain point, after zooming in my case, the images around the view are not loaded anymore and keep showing an overzoomed image from previous zoom level\r\n\r\nHow to reproduce\r\n1 clean app cache\r\n2 zoom an area\r\n3 move the view nearby and immediately press a zoom control (before image load)\r\n4 the image \"stop\" loading and the zoomed one is shown\r\n\r\nAfter this point seems the images are not loaded anymore for that area\r\n\r\n", "updateAuthor": { "name": "lcapra", "key": "lcapra", "displayName": "luca capra", "active": true, "timeZone": "Europe/Rome" }, "created": "2014-10-28T09:52:34.000+0000", "updated": "2014-10-28T10:00:58.000+0000" }, { "id": "330785", "author": { "name": "netoramalho", "key": "netoramalho", "displayName": "Netto Ramalho", "active": true, "timeZone": "America/Sao_Paulo" }, "updateAuthor": { "name": "netoramalho", "key": "netoramalho", "displayName": "Netto Ramalho", "active": true, "timeZone": "America/Sao_Paulo" }, "created": "2014-11-05T02:51:32.000+0000", "updated": "2014-11-05T02:51:32.000+0000" }, { "id": "332198", "author": { "name": "shodan_uk", "key": "shodan_uk", "displayName": "Terry Morgan", "active": true, "timeZone": "Europe/London" }, "body": "I'm also see the exact same issue intermittently on the follow device / OS combinations:\r\n\r\n* Samsung S5 +Android 4.4.2\r\n* Genymotion + Android 4.4.2", "updateAuthor": { "name": "shodan_uk", "key": "shodan_uk", "displayName": "Terry Morgan", "active": true, "timeZone": "Europe/London" }, "created": "2014-11-14T15:58:52.000+0000", "updated": "2014-11-14T15:58:52.000+0000" }, { "id": "336189", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2014-12-12T18:13:50.000+0000", "updated": "2014-12-12T18:13:50.000+0000" } ], "maxResults": 12, "total": 12, "startAt": 0 } } }