{ "id": "155810", "key": "TIMOB-20588", "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": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2016-11-28T22:14:13.000+0000", "created": "2016-03-17T21:58:53.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [ { "id": "16997", "name": "Release 5.2.0", "archived": false, "released": true, "releaseDate": "2016-02-23" }, { "id": "17706", "name": "Release 5.4.0", "archived": false, "released": true, "releaseDate": "2016-08-11" } ], "issuelinks": [ { "id": "51299", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "159266", "key": "TIMOB-23139", "fields": { "summary": "iOS: iOS Simulator console logs not displayed frequently", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "51220", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "159266", "key": "TIMOB-23139", "fields": { "summary": "iOS: iOS Simulator console logs not displayed frequently", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "51166", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "155249", "key": "TIMOB-20494", "fields": { "summary": "Console stops working with HL", "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" } }, "priority": { "name": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2016-11-28T22:14:13.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "The first Ti.API.info message will not be displayed every time the app is launched. Its inconsistent and will be displayed sometimes when the app is cleaned and launched but very rarely. If Ti.API.info is called after being compiled, everything is logged as expected. This issue only persists if running through studio , all works as expected through Xcode\r\n\r\n{code:javascript}\r\nTi.API.info(\"Wont be displayed\");\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: 'white',\r\n exitOnClose: true,\r\n fullscreen: false,\r\n layout: 'vertical',\r\n title: 'Label Demo'\r\n});\r\n\r\nvar label1 = Ti.UI.createLabel({\r\n color: '#900',\r\n font: { fontSize:12 },\r\n text: 'A simple label',\r\n textAlign: Ti.UI.TEXT_ALIGNMENT_CENTER,\r\n top: 30,\r\n width: Ti.UI.SIZE, height: Ti.UI.SIZE\r\n});\r\n\r\nlabel1.addEventListener(\"click\",function(e){\r\n\tTi.API.info(\"Will be Displayed\");\r\n});\r\n\r\nwin.add(label1);\r\nwin.open();\r\n{code}", "attachment": [ { "id": "59988", "filename": "bug.gif", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-08-06T00:05:26.000+0000", "size": 9085079, "mimeType": "image/gif" } ], "flagged": false, "summary": "iOS: Log messages are not always displayed on compile time", "creator": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 126, "state": "closed", "name": "2018 Sprint 05 SDK", "startDate": "2018-02-25T19:38:08.926Z", "endDate": "2018-03-11T18:38:00.000Z", "completeDate": "2018-03-11T22:06:01.520Z", "originBoardId": 100 } ], "comment": { "comments": [ { "id": "380180", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Guess this is main-thread related. If you set {{#define TI_USE_KROLL_THREAD}} in the defines.h, does that change something in behavior?", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-03-20T12:02:55.000+0000", "updated": "2016-03-20T12:02:55.000+0000" }, { "id": "380260", "author": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This only happens when running through studio, I tried adding the run on main thread to the XML however to no effect. it also works if you invoke a proxy so if you get the property of an object and pass it in to the log. Then it will get executed on compile time otherwise not. ", "updateAuthor": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-03-21T16:36:50.000+0000", "updated": "2016-03-21T16:36:50.000+0000" }, { "id": "380418", "author": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR pending : https://github.com/appcelerator/titanium_mobile/pull/7875. \r\n\r\nMaybe we should back port this. If its okay with you [~cng] ?", "updateAuthor": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-03-22T19:05:00.000+0000", "updated": "2016-03-22T19:05:00.000+0000" }, { "id": "380462", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "we don't have to back port this. let's discuss during planning.", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-03-23T03:02:53.000+0000", "updated": "2016-03-23T03:02:53.000+0000" }, { "id": "392568", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Reopening ticket. I can consistently reproduce this issue if you do the following:\r\n\r\n# Create a classic app with the above code: {{appc new --classic}}\r\n# Install to simulator; you *may* see the \"Wont be displayed\" message after the app is launched on the simulator\r\n# Kill the running project process, {{control + c}}, and clean your project: {{appc ti clean}}\r\n# Install the same project to simulator\r\n# The first log will not appear when the app launches on simulator; see bug.gif\r\n\r\nTested on:\r\n\r\nAppc CLI NPM: 4.2.7\r\nAppc CLI Core: 5.4.0-40\r\nArrow: 1.8.2\r\nSDK: 5.4.0.v20160804185318\r\nNode: v4.4.7\r\nOS: Mac OS X (10.11.6)\r\nXcode: 7.3.1\r\nDevice: iphone simulator 6 (9.3)", "updateAuthor": { "name": "jlongton", "key": "jlongton", "displayName": "Josh Longton", "active": true, "timeZone": "Europe/London" }, "created": "2016-08-06T00:05:07.000+0000", "updated": "2016-08-16T18:16:42.000+0000" }, { "id": "393302", "author": { "name": "jlongton", "key": "jlongton", "displayName": "Josh Longton", "active": true, "timeZone": "Europe/London" }, "body": "I am seeing this error inconsistently on the 10 Betas, steps I used:\r\n\r\n# Create a classic app\r\n# Clear the app.js then add {{var adView = Ti.UI.iOS.createAdView();}} and {{Ti.API.warn(\"########### Here\");}}\r\n# Install to simulator/device, inconsistently no logs will be shown.\r\n# Clean the project: Project > Clean\r\n# Install the same project to simulator/device.\r\n# Inconsistently no logs will be shown.\r\n\r\nTested on:\r\n{noformat}\r\nAppc CLI NPM: 4.2.7\r\nAppc CLI Core: 5.4.0.GA\r\nSDK: 5.5.0.v20160815115302\r\nStudio: 4.7.0.201607250649\r\nNode: v4.4.4\r\nOS: Mac OS X (10.11.6)\r\nXcode: 8 beta 6\r\nDevice: iPhone simulator 6s (10.0), iPhone 6 (10.0)\r\n{noformat}\r\n", "updateAuthor": { "name": "jlongton", "key": "jlongton", "displayName": "Josh Longton", "active": true, "timeZone": "Europe/London" }, "created": "2016-08-16T18:13:17.000+0000", "updated": "2016-08-16T18:17:04.000+0000" }, { "id": "393813", "author": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Im having trouble reproducing this issue now, tried with 5.3.0.GA and 5.4.X. However when i was able to reproduce it would happen only with studio regardless if app-thinking or main-thread is enabled. However, would work through x-code so its most likley a CLI issue. Im using xcode 7.3 to test and xcode 8.0 beta 3, both on 8.2 and 9.3 device ", "updateAuthor": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-08-22T18:07:56.000+0000", "updated": "2016-08-22T18:08:39.000+0000" }, { "id": "401935", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "This issue should not be reproducible anymore, having our logger changed for this and other use-cases in 6.0.0.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-11-28T22:14:13.000+0000", "updated": "2016-11-28T22:14:13.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }