{ "id": "118971", "key": "TIMOB-15273", "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": "8", "description": "", "name": "Needs more info" }, "resolutiondate": "2013-10-17T20:24:40.000+0000", "created": "2013-08-23T20:28:40.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "triage" ], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-16T20:46:44.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": "h3. Steps to Reproduce\r\n1. create 'location' event listener\r\n2. Add Ti.API.debug output code to event listener\r\n3. Run application several times to observe debug output results\r\n\r\nh3. Actual Result\r\nIn a non-deterministic way, some runs result in debug output to the console, while others produce no output at all in the console, even from Ti.API.debug unrelated to the 'location' event listener, resulting in a totally blank console window. On a 'good' run I would expect to see output even before the first location event first triggers.\r\n\r\nFor a while I was convinced certain debug statements were causing the issue, but then I noticed conflicting results going back and forth between code revisions, until finally I started back to back runs on the same code and observed the reported behaviour. I have recently updated Titanium studio and the SDK, and while the issue arose around about that time, that was also about when I began writing the 'location' event code so I cannot say with certainty that the updates are part of the issue.\r\n\r\nI have attached my index.js source file from my current project since it may be easier for you to reproduce by starting with it.\r\n\r\nObviously productivity hits rock bottom without reliable debug output, hence severity 'blocker'\r\n\r\nh3. Expected Result\r\nDebug output should display in the console.", "attachment": [ { "id": "41834", "filename": ".log", "author": { "name": "gogocat", "key": "gogocat", "displayName": "Pete Rowley", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-08-23T20:31:29.000+0000", "size": 7241114, "mimeType": "application/octet-stream; charset=ISO-8859-1" }, { "id": "41854", "filename": "alloy.js", "author": { "name": "gogocat", "key": "gogocat", "displayName": "Pete Rowley", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-08-24T01:39:04.000+0000", "size": 1103, "mimeType": "application/x-javascript" }, { "id": "41835", "filename": "diagnostic5935284193902147469.log", "author": { "name": "gogocat", "key": "gogocat", "displayName": "Pete Rowley", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-08-23T20:31:33.000+0000", "size": 12642, "mimeType": "application/octet-stream; charset=ISO-8859-1" }, { "id": "41836", "filename": "index.js", "author": { "name": "gogocat", "key": "gogocat", "displayName": "Pete Rowley", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-08-23T20:31:35.000+0000", "size": 17906, "mimeType": "application/octet-stream; charset=ISO-8859-1" }, { "id": "41838", "filename": "index.tss", "author": { "name": "gogocat", "key": "gogocat", "displayName": "Pete Rowley", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-08-23T20:31:37.000+0000", "size": 912, "mimeType": "application/octet-stream; charset=ISO-8859-1" }, { "id": "41837", "filename": "index.xml", "author": { "name": "gogocat", "key": "gogocat", "displayName": "Pete Rowley", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-08-23T20:31:36.000+0000", "size": 1476, "mimeType": "application/octet-stream; charset=ISO-8859-1" } ], "flagged": false, "summary": "Android: Debug output race condition results in no output", "creator": { "name": "gogocat", "key": "gogocat", "displayName": "Pete Rowley", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "Titanium Studio 3.1.2", "comment": { "comments": [ { "id": "267963", "author": { "name": "gogocat", "key": "gogocat", "displayName": "Pete Rowley", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Note there is a bug in the code: the line\n\nvar R = 6371; // km\n\nshould be moved to before function accurateDistance. This does not effect the errant behavior reported.", "updateAuthor": { "name": "gogocat", "key": "gogocat", "displayName": "Pete Rowley", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-08-23T21:52:13.000+0000", "updated": "2013-08-23T21:52:13.000+0000" }, { "id": "268026", "author": { "name": "gogocat", "key": "gogocat", "displayName": "Pete Rowley", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Added alloy.js ", "updateAuthor": { "name": "gogocat", "key": "gogocat", "displayName": "Pete Rowley", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-08-24T01:39:04.000+0000", "updated": "2013-08-24T01:39:04.000+0000" }, { "id": "271770", "author": { "name": "gogocat", "key": "gogocat", "displayName": "Pete Rowley", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Apologies that I did not mention platform, but I have been developing on IOS. However, this bug manifests using the iphone simulator as well as while debugging the device.", "updateAuthor": { "name": "gogocat", "key": "gogocat", "displayName": "Pete Rowley", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-09-18T16:57:54.000+0000", "updated": "2013-09-18T16:57:54.000+0000" }, { "id": "271771", "author": { "name": "gogocat", "key": "gogocat", "displayName": "Pete Rowley", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Since reporting this bug I have noticed a *flash* of output to the console before it disappears and no longer displays anything.", "updateAuthor": { "name": "gogocat", "key": "gogocat", "displayName": "Pete Rowley", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-09-18T16:59:45.000+0000", "updated": "2013-09-18T16:59:45.000+0000" }, { "id": "272155", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~shossain] Can you please test this in 3.1.3.GA?", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-09-20T18:04:39.000+0000", "updated": "2013-09-20T18:04:39.000+0000" }, { "id": "275484", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Please let us know if this still continues to be an issue.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-17T20:24:40.000+0000", "updated": "2013-10-17T20:24:40.000+0000" }, { "id": "412947", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the information that was requested was never provided.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-16T20:46:44.000+0000", "updated": "2017-03-16T20:46:44.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }