{ "id": "153024", "key": "TIMOB-19938", "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": "2015-11-12T20:52:25.000+0000", "created": "2015-11-12T13:06:20.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [ { "id": "14826", "description": "Release 5.1.0-remaining iOS9 features, Android M features", "name": "Release 5.1.0", "archived": false, "released": true, "releaseDate": "2015-11-20" } ], "issuelinks": [], "assignee": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2017-03-31T22:31:41.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": "Run the following sample with trace-level logging:\r\n\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor: 'white'\r\n});\r\n\r\nwin.addEventListener('click', function(e) {\r\n\tTi.UI.createAlertDialog({\r\n\t\ttitle: 'Title',\r\n\t\tmessage: 'Message',\r\n\r\n\t\t// comment the following line and debug lines dissapear\r\n\t\tstyle: Ti.UI.iPhone.AlertDialogStyle.PLAIN_TEXT_INPUT\r\n\t}).show();\r\n});\r\n\r\nwin.open();\r\n{code}\r\n\r\nYou will see the following debug lines when you click on the window:\r\n\r\n{code}\r\n[TRACE] [theme] the behavior of the UICollectionViewFlowLayout is not defined because:\r\n[TRACE] [theme] the item height must be less than the height of the UICollectionView minus the section insets top and bottom values, minus the content insets top and bottom values.\r\n[TRACE] [theme] The relevant UICollectionViewFlowLayout instance is <_UIAlertControllerCollectionViewFlowLayout: 0x7f94836440a0>, and it is attached to ; layer = ; contentOffset: {0, 0}; contentSize: {0, 0}> collection view layout: <_UIAlertControllerCollectionViewFlowLayout: 0x7f94836440a0>.\r\n[DEBUG] 2015-11-12 13:58:33.952 theme[35204:8973690] the behavior of the UICollectionViewFlowLayout is not defined because:\r\n[DEBUG] 2015-11-12 13:58:33.953 theme[35204:8973690] the item height must be less than the height of the UICollectionView minus the section insets top and bottom values, minus the content insets top and bottom values.\r\n[DEBUG] 2015-11-12 13:58:33.953 theme[35204:8973690] The relevant UICollectionViewFlowLayout instance is <_UIAlertControllerCollectionViewFlowLayout: 0x7f94836440a0>, and it is attached to ; layer = ; contentOffset: {0, 0}; contentSize: {0, 0}> collection view layout: <_UIAlertControllerCollectionViewFlowLayout: 0x7f94836440a0>.\r\n[DEBUG] 2015-11-12 13:58:33.953 theme[35204:8973690] Make a symbolic breakpoint at UICollectionViewFlowLayoutBreakForInvalidSizes to catch this in the debugger.\r\n[TRACE] [theme] Make a symbolic breakpoint at UICollectionViewFlowLayoutBreakForInvalidSizes to catch this in the debugger.\r\n{code}\r\n\r\nComment/Remove the {{style}} line and they disappear.\r\n\r\n*NOTE:* As you see for some reason the same lines are printed both at trace and debug level.", "attachment": [], "flagged": false, "summary": "Using Ti.UI.iPhone.AlertDialogStyle.* triggers multiple debug lines", "creator": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "subtasks": [], "reporter": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "environment": "SDK 5.1.0.RC (5.1.0.v20151104190037)", "comment": { "comments": [ { "id": "370131", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Why are there `UICollectionView` logs? We don't even have any API for that in Titanium SDK core.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-11-12T20:20:16.000+0000", "updated": "2015-11-12T20:20:16.000+0000" }, { "id": "370132", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "interesting isn't it? ;)", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2015-11-12T20:22:46.000+0000", "updated": "2015-11-12T20:22:46.000+0000" }, { "id": "370133", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Don't get it on latest master. BUT: I get the warning `3D Touch is not supported on this device.`which results as a bug of TIMOB-19667. Will investigate there and check with 5.1.0.RC again.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-11-12T20:25:01.000+0000", "updated": "2015-11-12T20:25:01.000+0000" }, { "id": "370135", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Cannot reproduce on a fresh project. Tested both latest master and 5_1_X branch.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-11-12T20:52:25.000+0000", "updated": "2015-11-12T20:52:25.000+0000" }, { "id": "370236", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "I can still reproduce this with the latest 5_1_X (5.1.0.v20151113005238) and simply creating ({{ti create -t app -p ios -n dialog --id test.dialog -d .}} an app, copy pasting above code and build to iOS 9 Simulator (Xcode Version 7.1 (7B91b)).", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2015-11-13T19:21:44.000+0000", "updated": "2015-11-13T19:21:44.000+0000" }, { "id": "416603", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Unable to reproduce this issue, tested with the following environment; \r\niPhone 7 (10.2) \r\nMacOS 10.11.6 (15G31) \r\nStudio 4.8.1.201612050850 \r\nTi SDK 6.0.3 GA \r\nAppc NPM 4.2.8 \r\nAppc CLI 6.1.0 \r\nTi CLI 5.0.11 \r\nAlloy 1.9.5 \r\nArrow 1.10.1 \r\nXcode 8.2 (8C38) \r\nNode v4.6.0 \r\nJava 1.7.0_80\r\n\r\nPlease file a new ticket if this problem still persists.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-31T22:31:41.000+0000", "updated": "2017-03-31T22:31:41.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }