{ "id": "62864", "key": "TIMOB-2232", "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": [], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:58:29.000+0000", "created": "2011-04-15T03:14:18.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "defect", "ios", "iphone" ], "versions": [], "issuelinks": [], "assignee": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:58:29.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}

After finishing a XHR request at the current nightly build of\n1.4.2, the iPhone Activity Indicator does not stop to spin. The\nerror did not occur in a nightly build from the 24th of September.\nThe big issue is that the user thinks that there is still traffic\nand gets nervous about his/her phone bill.

\n

Please see here:
\n\nhttp://developer.appcelerator.com/question/65381/iphones-activity-i...

\n

Thanks for an urgent fix!

{html}", "attachment": [], "flagged": false, "summary": "iPhones Activity Indicator continues spinning ", "creator": { "name": "sebastiank", "key": "sebastiank", "displayName": "SebastianK", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "sebastiank", "key": "sebastiank", "displayName": "SebastianK", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "127890", "author": { "name": "crisredfi", "key": "crisredfi", "displayName": "crisredfi", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

hi, we are having the same problem.

\n

I tried to make it stop by the comand .close() after the XHR\ncode, but it's not always working at all.

\n

please it's urgent...

\n

thanks!!

{html}", "updateAuthor": { "name": "crisredfi", "key": "crisredfi", "displayName": "crisredfi", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:14:18.000+0000", "updated": "2011-04-15T03:14:18.000+0000" }, { "id": "127891", "author": { "name": "sebastiank", "key": "sebastiank", "displayName": "SebastianK", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Here is my test case to reproduce the infinitely spinning\nactivity indicator. I tried to make the test case as simple as\npossible and the bug still occurs. I tested unter Titanium Mobile\nNightly Build of 1.4.2 from beginning November. The bug appears\nunder iPhone Simulator and on an iPhone 3G with iOS 4.1. I also\ntried to set a timeout value or to close the xhr object but nothing\nhelped:

\n
\n    Ti.API.info(\"fire XHR call\");\n    var url=\"http://www.google.com\"; //place any url here\n    var params={}; \n    var xhr = Titanium.Network.createHTTPClient();\n    xhr.onreadystatechange = function()\n    {\n        if(this.readyState==4)\n        {\n            Ti.API.info(\"XHR call returns: \"+this.responseText);\n        }\n    }\n    xhr.onerror = function(){Ti.API.info(\"an error did occur\");};\n    xhr.open(\"GET\", url);\n    xhr.send(params);\n
\n

As you will see, the connection works fine, but the activity\nindicator continous spinning even after receiving of the data.

{html}", "updateAuthor": { "name": "sebastiank", "key": "sebastiank", "displayName": "SebastianK", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:14:19.000+0000", "updated": "2011-04-15T03:14:19.000+0000" }, { "id": "127892", "author": { "name": "kevinwhinnery", "key": "kevinwhinnery", "displayName": "kevinwhinnery", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{html}

Sebastian,

\n

I pasted your code into a project running our\nlatest build on iOS 4.2 and everything seems to work as\nexpected (call returns, outputs to console, and activity indicator\nin the status bar disappears. Maybe the the issue is related to\nyour current combination of Titanium SDK and iOS SDK?

{html}", "updateAuthor": { "name": "kevinwhinnery", "key": "kevinwhinnery", "displayName": "kevinwhinnery", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:14:19.000+0000", "updated": "2011-04-15T03:14:19.000+0000" }, { "id": "127893", "author": { "name": "sebastiank", "key": "sebastiank", "displayName": "SebastianK", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Kevin,

\n

it works now after an update to the latest nightly build of\n1.4.3 - thanks!

\n

Sebastian

{html}", "updateAuthor": { "name": "sebastiank", "key": "sebastiank", "displayName": "SebastianK", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:14:19.000+0000", "updated": "2011-04-15T03:14:19.000+0000" }, { "id": "127894", "author": { "name": "kevinwhinnery", "key": "kevinwhinnery", "displayName": "kevinwhinnery", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{html}

cool - closing

{html}", "updateAuthor": { "name": "kevinwhinnery", "key": "kevinwhinnery", "displayName": "kevinwhinnery", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:14:19.000+0000", "updated": "2011-04-15T03:14:19.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }