{ "id": "63299", "key": "TIMOB-2667", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "11240", "name": "Release 1.6.0 M07", "archived": true, "released": true, "releaseDate": "2011-01-31" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:59:45.000+0000", "created": "2011-04-15T03:26:25.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "defect", "release-1.5.2", "release-1.6.0", "reported-1.5.1" ], "versions": [], "issuelinks": [], "assignee": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:59:45.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "{html}

On the emulators I have tried (1.5.1 on APIs 2.2, 2.1, and 1.6)\nthe following code is causing a crash:

\n
\nvar window = Titanium.UI.createWindow({fullscreen: false});\n \nvar imageMap = Titanium.UI.createImageView({\n    image: \"http://maps.google.com/maps/api/staticmap?center=11.5558762589,104.921697935&zoom=13&size=250x70&maptype=roadmap&markers=color:green|11.5558762589,104.921697935&sensor=false\",\n    height: 90,\n    width: 200,\n    borderColor: \"#FFF\"\n});\n\nwindow.add(imageMap);\nwindow.open();\n
\n

Paste in an app.js file to recreate the error. Image seems to\nload up fine in the browser.

{html}", "attachment": [ { "id": "18189", "filename": "trace.txt", "created": "2011-04-15T03:26:25.000+0000", "size": 98349, "mimeType": "text/plain" } ], "flagged": false, "summary": "Problem displaying image from Google Maps API (Android)", "creator": { "name": "kevinwhinnery", "key": "kevinwhinnery", "displayName": "kevinwhinnery", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "kwhinnery", "key": "kwhinnery", "displayName": "Kevin Whinnery", "active": true, "timeZone": "America/Chicago" }, "environment": null, "comment": { "comments": [ { "id": "129138", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [eadb8ad1b68d46534890494700a80fe4b2bccc09])\n[#2667 state:fixed-in-qa] There is an issue\nsomewhere in the Android network stack that is sending a null URI\nto the cache request. All we can do is work around this and not\ncrash when given bad data. \nhttps://github.com/appcelerator/titanium_mobile/commit/eadb8ad1b68d...

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:26:26.000+0000", "updated": "2011-04-15T03:26:26.000+0000" }, { "id": "129139", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [f65c52c40591b337a7a5fdb04023ccafc086944f])\n[#2667 state:fixed-in-qa] There is an issue\nsomewhere in the Android network stack that is sending a null URI\nto the cache request. All we can do is work around this and not\ncrash when given bad data. \nhttps://github.com/appcelerator/titanium_mobile/commit/f65c52c40591...

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:26:26.000+0000", "updated": "2011-04-15T03:26:26.000+0000" }, { "id": "129140", "author": { "name": "abraham", "key": "abraham", "displayName": "Abraham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

So what exactly does this mean? What is the fix?

{html}", "updateAuthor": { "name": "abraham", "key": "abraham", "displayName": "Abraham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:26:26.000+0000", "updated": "2011-04-15T03:26:26.000+0000" }, { "id": "129141", "author": { "name": "jayme", "key": "jayme", "displayName": "Jayme", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Guys I've seen several posts related to this saying this is\nfixed, can we get an update as to when this will be available?\nHaving an android app blow up when I load images for my users and\nother business objects is a big problem with getting Titanium\nadoption going at my employer.

{html}", "updateAuthor": { "name": "jayme", "key": "jayme", "displayName": "Jayme", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:26:27.000+0000", "updated": "2011-04-15T03:26:27.000+0000" }, { "id": "129142", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

It's available in both the 1.5.2 and 1.6.0 CI builds. Look in\nthe guides section for Continuous Integration.

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:26:27.000+0000", "updated": "2011-04-15T03:26:27.000+0000" }, { "id": "129143", "author": { "name": "jayme", "key": "jayme", "displayName": "Jayme", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

I asked about this issue during this morning's Webinar that your\ncompany did and was told to look at the daily builds, so I will\ncertainly do that. Thanks for the response and all your hard work!\nYou guys really have an amazing product.

{html}", "updateAuthor": { "name": "jayme", "key": "jayme", "displayName": "Jayme", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:26:27.000+0000", "updated": "2011-04-15T03:26:27.000+0000" }, { "id": "129144", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

this renders the map in [INFO] Titanium SDK version: 1.5.2 (01/10/11\n08:22 682e79e) droid 1 (2.2.1) and 2.2 sim, but when using Titanium\nSDK version: 1.6.0 (01/10/11 08:25 3452f06), it failed to render\n(white square) adb logcat shows:

\n

D/KrollContext( 365): (kroll$3) [5492,8708] Running evaluated\nscript: app://folder/2667.js
\nI/ActivityManager( 60): Starting activity: Intent {\ncmp=com.appcelerator.QAtests/org.appcelerator.titanium.TiActivity\n(has extras) }
\nI/ActivityManager( 60): Displayed activity\ncom.appcelerator.QAtests/org.appcelerator.titanium.TiActivity: 427\nms (total 427 ms)
\nD/dalvikvm( 365): GC_FOR_MALLOC freed 6747 objects / 386072 bytes\nin 161ms
\nW/System.err( 365): java.net.URISyntaxException: Illegal character\nin query at index 132: \nhttp://maps.google.com/maps/api/staticmap?center=11.5558762589,104....
\nW/System.err( 365): at\njava.net.URI$Helper.validateQuery(URI.java:458)
\nW/System.err( 365): at\njava.net.URI$Helper.parseURI(URI.java:360)
\nW/System.err( 365): at\njava.net.URI$Helper.access$100(URI.java:302)
\nW/System.err( 365): at java.net.URI.(URI.java:87)
\nW/System.err( 365): at\nti.modules.titanium.ui.widget.TiUIImageView.setImage(TiUIImageView.java:486)
\nW/System.err( 365): at\nti.modules.titanium.ui.widget.TiUIImageView.processProperties(TiUIImageView.java:563)
\nW/System.err( 365): at\norg.appcelerator.kroll.KrollProxy.setModelListener(KrollProxy.java:462)
\nW/System.err( 365): at\norg.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:371)
\nW/System.err( 365): at\norg.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:364)
\nW/System.err( 365): at\norg.appcelerator.titanium.proxy.TiViewProxy.getView(TiViewProxy.java:348)
\nW/System.err( 365): at\norg.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:377)
\nW/System.err( 365): at\nti.modules.titanium.ui.WindowProxy.handleMessage(WindowProxy.java:64)
\nW/System.err( 365): at\nandroid.os.Handler.dispatchMessage(Handler.java:95)
\nW/System.err( 365): at android.os.Looper.loop(Looper.java:123)
\nW/System.err( 365): at\nandroid.app.ActivityThread.main(ActivityThread.java:4627)
\nW/System.err( 365): at java.lang.reflect.Method.invokeNative(Native\nMethod)
\nW/System.err( 365): at\njava.lang.reflect.Method.invoke(Method.java:521)
\nW/System.err( 365): at\ncom.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
\nW/System.err( 365): at\ncom.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
\nW/System.err( 365): at dalvik.system.NativeStart.main(Native\nMethod)
\nW/TiAnalyticsSvc( 365): (Thread-10) [1060,9768] Stopping Analytics\nService
\nD/dalvikvm( 295): GC_EXPLICIT freed 782 objects / 55696 bytes in\n71ms
\nD/dalvikvm( 306): GC_EXPLICIT freed 2027 objects / 144232 bytes in\n88ms
\nD/dalvikvm( 116): GC_EXPLICIT freed 197 objects / 10472 bytes in\n74ms
\nD/SntpClient( 60): request time failed: java.net.SocketException:\nAddress family not supported by protocol

{html}", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:26:27.000+0000", "updated": "2011-04-15T03:26:27.000+0000" }, { "id": "129145", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Moving to M07 so I can look at it.

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:26:28.000+0000", "updated": "2011-04-15T03:26:28.000+0000" }, { "id": "129146", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

As per Don, the issue I reported above (illegal char) is due to\nthe change in the way we handle \"magic url's\" replacing \"|\" with\n\"%7C\" in the url and all is well.

\n

closing against nexus s (4.3.1) and [INFO] Titanium SDK version: 1.6.0 (01/24/11\n08:14 e1cb22a)

{html}", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:26:28.000+0000", "updated": "2011-04-15T03:26:28.000+0000" }, { "id": "130827", "author": { "name": "nderzhak", "key": "nderzhak", "displayName": "Nikolai Derzhak", "active": true, "timeZone": "America/Phoenix" }, "body": "rollback wrong update", "updateAuthor": { "name": "nderzhak", "key": "nderzhak", "displayName": "Nikolai Derzhak", "active": true, "timeZone": "America/Phoenix" }, "created": "2011-04-15T07:55:12.000+0000", "updated": "2011-04-15T07:55:12.000+0000" } ], "maxResults": 10, "total": 10, "startAt": 0 } } }