{ "id": "152648", "key": "TIMOB-19866", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "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": "2015-11-04T22:22:37.000+0000", "created": "2015-11-04T13:50:44.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-21T18:38:00.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": "When you have no {{preview}} property set for the preview context then the app will crash or - what I saw in the 3D touch app - it will freeze showing the blur effect.\r\n\r\nOf course the developer should know it needs a preview, but now we have peek/pop events its easy to make the assumption you could set the preview from the peek-event. So it would be a better dev experience if we provide better feedback then this crash.\r\n\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor: \"white\"\r\n});\r\n\r\nvar button = Ti.UI.createButton({\r\n\tpreviewContext: Ti.UI.iOS.createPreviewContext({\r\n\t\t// preview: Ti.UI.createView({backgroundColor: 'green'})\r\n\t}),\r\n\ttitle: \"Open Window!\",\r\n\tbackgroundColor: \"#A6171C\",\r\n\twidth: 200,\r\n\theight: 50,\r\n\ttintColor: \"#fff\"\r\n});\r\n\r\nwin.add(button);\r\nwin.open();\r\n{code}\r\n\r\n*log*\r\n\r\n{code}\r\n[ERROR] The application has crashed with an uncaught exception 'NSInvalidArgumentException'.\r\n[ERROR] Reason:\r\n[ERROR] *** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[0]\r\n[ERROR] Stack trace:\r\n[ERROR]\r\n[ERROR] 0 CoreFoundation 0x0000000183a58f48 + 124\r\n[ERROR] 1 libobjc.A.dylib 0x0000000198f03f80 objc_exception_throw + 56\r\n[ERROR] 2 CoreFoundation 0x00000001839477c8 + 324\r\n[ERROR] 3 CoreFoundation 0x0000000183947660 + 64\r\n[ERROR] 4 theme 0x000000010008c7dc theme + 460764\r\n[ERROR] 5 UIKit 0x0000000189373d7c + 248\r\n[ERROR] 6 UIKit 0x0000000189628d4c + 224\r\n[ERROR] 7 UIKit 0x0000000189629848 + 136\r\n[ERROR] 8 UIKit 0x000000018962a8c0 + 100\r\n[ERROR] 9 UIKit 0x0000000189567330 + 164\r\n[ERROR] 10 UIKit 0x0000000189190b5c + 172\r\n[ERROR] 11 UIKit 0x000000018901e85c + 784\r\n[ERROR] 12 UIKit 0x000000018956870c + 72\r\n[ERROR] 13 UIKit 0x0000000188fdd8b8 + 372\r\n[ERROR] 14 UIKit 0x0000000188fda63c + 2404\r\n[ERROR] 15 UIKit 0x000000018901c6cc + 1132\r\n[ERROR] 16 UIKit 0x000000018901bcc8 + 764\r\n[ERROR] 17 UIKit 0x0000000188fec4a4 + 248\r\n[ERROR] 18 UIKit 0x0000000188fea76c + 5528\r\n[ERROR] 19 CoreFoundation 0x0000000183a10544 + 24\r\n[ERROR] 20 CoreFoundation 0x0000000183a0ffd8 + 540\r\n[ERROR] 21 CoreFoundation 0x0000000183a0dcd8 + 724\r\n[ERROR] 22 CoreFoundation 0x000000018393cca0 CFRunLoopRunSpecific + 384\r\n[ERROR] 23 GraphicsServices 0x000000018eec0088 GSEventRunModal + 180\r\n[ERROR] 24 UIKit 0x0000000189054ffc UIApplicationMain + 204\r\n[ERROR] 25 theme 0x0000000100020de8 theme + 19944\r\n[ERROR] 26 libdyld.dylib 0x00000001997468b8 + 4\r\n[ERROR] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[0]'\r\n[ERROR] *** First throw call stack:\r\n[ERROR] (0x183a58f48 0x198f03f80 0x1839477c8 0x183947660 0x10008c7dc 0x189373d7c 0x189628d4c 0x189629848 0x18962a8c0 0x189567330 0x189190b5c 0x18901e85c 0x18956870c 0x188fdd8b8 0x188fda63c 0x18901c6cc 0x18901bcc8 0x188fec4a4 0x188fea76c 0x183a10544 0x183a0ffd8 0x183a0dcd8 0x18393cca0 0x18eec0088 0x189054ffc 0x100020de8 0x1997468b8)\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: PreviewContext with no previews crashes or freezes app", "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 (custom build with peek&pop events)", "comment": { "comments": [ { "id": "369019", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/7403", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-11-04T21:50:30.000+0000", "updated": "2015-11-04T21:50:30.000+0000" }, { "id": "369022", "author": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FT approved , merging. Thank Hans. ", "updateAuthor": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-11-04T22:21:49.000+0000", "updated": "2015-11-04T22:21:49.000+0000" }, { "id": "414296", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fixed.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-21T18:38:00.000+0000", "updated": "2017-03-21T18:38:00.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }