{ "id": "174326", "key": "AC-6424", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": null, "resolutiondate": null, "created": "2019-10-30T08:04:02.000+0000", "labels": [ "IOS,", "TextField", "hintText" ], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2019-11-06T16:10:00.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "Because of the new dark mode in xCode 11 i wanted to set the hintTextColor for all my TextField's\r\nbut setting:\r\n{code}\r\n\"TextField[platform=ios]\": {\r\n\thintTextColor: 'gray'\r\n}\r\n{code}\r\nin app.tss\r\nCrashes the app in IOS when some of the TextField's do not have hintText.\r\n{code}\r\n[ERROR] : Script Error {\r\n[ERROR] : column = 37;\r\n[ERROR] : line = 302;\r\n[ERROR] : message = \"NSConcreteAttributedString initWithString:: nil value\";\r\n[ERROR] : nativeStack = \"3 Foundation 0x00007fff2574efcd -[NSConcreteAttributedString initWithString:attributes:] + 27\\n4 Crosspaddev0x0000000102c666ca -[TiUITextField setHintTextColor_:] + 330\\n5 TitaniumKit0x00000001038d729a DoProxyDelegateReadValuesWithKeysFromProxy + 607\\n6 TitaniumKit0x00000001038ba593 -[TiViewProxy firePropertyChanges] + 92\\n7 TitaniumKit0x00000001038b8bef -[TiViewProxy view] + 249\\n8 Crosspaddev0x0000000102c46302 -[TiUITextWidgetProxy setKeyboardToolbar:] + 3874\\n9 Foundation 0x00007fff2563e130 -[NSObject(NSKeyValueCoding) setValue:forKey:] + 325\\n10 TitaniumKit0x00000001038d9e89 -[TiProxy setValuesForKeysWithDictionary:] + 1886\\n11 CoreFoundation 0x00007fff23bb138c __invoking___ + 140\\n12 CoreFoundation 0x00007fff23bae49f -[NSInvocation invoke] + 319\\n13 TitaniumKit0x00000001038d62c3 -[KrollMethod call:] + 1385\\n14 TitaniumKit0x00000001038d54f7 __KrollCallAsFunction_block_invoke + 30\\n15 TitaniumKit0x00000001038d5311 KrollCallAsFunction + 425\\n16 JavaScriptCore 0x00007fff269a38ec _ZN3JSC16JSCallbackObjectINS_20JSDestructibleObjectEE4callEPNS_9ExecStateE + 524\\n17 JavaScriptCore 0x00007fff26e77ffd _ZN3JSC5LLInt9setUpCallEPNS_9ExecStateENS_22CodeSpecializationKindENS_7JSValueEPNS_17LLIntCallLinkInfoE + 365\\n18 JavaScriptCore 0x00007fff2696aa05 llint_entry + 93212\\n19 ??? 0x00005a0c8f469cf3 0x0 + 99009989876979\\n20 JavaScriptCore 0x00007fff2696aa13 llint_entry + 93226\\n21 JavaScriptCore 0x00007fff2696aa13 llint_entry + 93226\\n22 JavaScriptCore 0x00007fff2696aa13 llint_entry + 93226\";\r\n[ERROR] : \r\n{code}\r\n ", "attachment": [], "flagged": false, "summary": "Setting TextField - hintTextColor in app.tss crashes app", "creator": { "name": "thomas.neerup@eg.dk", "key": "thomas.neerup@eg.dk", "displayName": "Thomas Neerup", "active": true, "timeZone": "Europe/Copenhagen" }, "subtasks": [], "reporter": { "name": "thomas.neerup@eg.dk", "key": "thomas.neerup@eg.dk", "displayName": "Thomas Neerup", "active": true, "timeZone": "Europe/Copenhagen" }, "environment": "IOS ", "comment": { "comments": [ { "id": "452399", "author": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "body": "Hi! I tried to reproduce but got error in general when setting it to {{grey}}. However, it worked fine when setting it to {{#666}}. Can you confirm this?", "updateAuthor": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "created": "2019-10-31T12:52:09.000+0000", "updated": "2019-10-31T12:52:09.000+0000" }, { "id": "452400", "author": { "name": "thomas.neerup@eg.dk", "key": "thomas.neerup@eg.dk", "displayName": "Thomas Neerup", "active": true, "timeZone": "Europe/Copenhagen" }, "body": "No ... \r\nThe problem is not the color but the fact that I'm setting the hintTextColor on all TextField's and some off them do not have a hintText", "updateAuthor": { "name": "thomas.neerup@eg.dk", "key": "thomas.neerup@eg.dk", "displayName": "Thomas Neerup", "active": true, "timeZone": "Europe/Copenhagen" }, "created": "2019-10-31T12:56:51.000+0000", "updated": "2019-10-31T12:56:51.000+0000" }, { "id": "452438", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello [~thomas.neerup@eg.dk], So, the hintTextColor was workin for you when setting as hexadecimal color code? If so, I believe there is no issue here. Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2019-11-03T19:53:23.000+0000", "updated": "2019-11-03T19:53:23.000+0000" }, { "id": "452481", "author": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "body": "[~thomas.neerup@eg.dk] What I meant with that, I got the same issue as you, but when setting it globally using a {{hex}} color it didn't cause any issues on my side. Can you try setting a {{hex}} color like {{#666}} instead of {{gray}}", "updateAuthor": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "created": "2019-11-06T10:41:13.000+0000", "updated": "2019-11-06T10:41:13.000+0000" }, { "id": "452484", "author": { "name": "thomas.neerup@eg.dk", "key": "thomas.neerup@eg.dk", "displayName": "Thomas Neerup", "active": true, "timeZone": "Europe/Copenhagen" }, "body": "Rene Pot Below code stille causes my app to crash with \"NSConcreteAttributedString initWithString:: nil value\";\r\n\r\n\r\n{code}\r\n\"TextField[platform=ios]\" : {\r\n\tcolor: '#000000',\r\n\thintTextColor: '#808080'\r\n}\r\n{code}\r\n", "updateAuthor": { "name": "thomas.neerup@eg.dk", "key": "thomas.neerup@eg.dk", "displayName": "Thomas Neerup", "active": true, "timeZone": "Europe/Copenhagen" }, "created": "2019-11-06T11:40:14.000+0000", "updated": "2019-11-06T11:40:14.000+0000" }, { "id": "452489", "author": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "body": "Hi [~thomas.neerup@eg.dk], I have this below and I don't have a crash. I use 8.2.1.GA SDK and iOS 13.1 simulator.\r\n\r\n{code}\r\n\".tf\": {\r\n\tbackgroundColor: \"#bbb\",\r\n\theight: 50,\r\n\twidth: 300,\r\n\ttop: 10\r\n}\r\n\r\n\".hint\": {\r\n\thintText: \"Fill me in\"\r\n}\r\n\r\n\"TextField\": {\r\n\thintTextColor: \"#080808\"\r\n}\r\n{code}\r\n\r\n{code:xml}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n{code}", "updateAuthor": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "created": "2019-11-06T13:36:28.000+0000", "updated": "2019-11-06T13:36:28.000+0000" }, { "id": "452494", "author": { "name": "thomas.neerup@eg.dk", "key": "thomas.neerup@eg.dk", "displayName": "Thomas Neerup", "active": true, "timeZone": "Europe/Copenhagen" }, "body": "I'm sorry.\r\nIt looks like it was a combination of hintTextColor: '#80808' and a hintText = null (set in code, a simple null check fixed it)\r\nGuess this bug could be closed..\r\n\r\nBut I still think it is a bug that hintTextColor: 'gray' crashes the app :)\r\n", "updateAuthor": { "name": "thomas.neerup@eg.dk", "key": "thomas.neerup@eg.dk", "displayName": "Thomas Neerup", "active": true, "timeZone": "Europe/Copenhagen" }, "created": "2019-11-06T16:10:00.000+0000", "updated": "2019-11-06T16:10:00.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }