{ "id": "88630", "key": "TIMOB-8246", "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": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "13408", "description": "Sprint 2012-12 API", "name": "Sprint 2012-12 API", "archived": true, "released": true, "releaseDate": "2012-06-17" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-07-09T03:37:35.000+0000", "created": "2012-03-23T13:19:20.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api", "module_label", "qe-testadded" ], "versions": [ { "id": "13070", "description": "Release 1.8 Service Pack 2", "name": "Release 1.8.2", "archived": true, "released": true, "releaseDate": "2012-02-29" }, { "id": "13272", "description": "Release 2.0.1", "name": "Release 2.0.1", "archived": true, "released": true, "releaseDate": "2012-04-16" } ], "issuelinks": [], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2013-11-07T05:28:55.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 any of the background property is applied on the label, we see CGcontext errors in the console.\r\n\r\nsource code:\r\n{code}var win1 = Titanium.UI.createWindow({ \r\n backgroundColor:'white'\r\n});\r\n\r\nvar l2 = Titanium.UI.createLabel({\r\n text:'Appcelerator',\r\n backgroundColor:'red',\r\n backgroundImage:'flower.jpg',\r\n height:'auto',\r\n width:'auto',\r\n color:'#900',\r\n font:{fontSize:48},\r\n textAlign:'center'\r\n});\r\nwin1.add(l2);\r\nwin1.open();\r\n{code}\r\n\r\n\r\nCrash Log:\r\n{code}\r\nGNU gdb 6.3.50-20050815 (Apple version gdb-1708) (Thu Nov 3 21:59:02 UTC 2011)\r\nCopyright 2004 Free Software Foundation, Inc.\r\nGDB is free software, covered by the GNU General Public License, and you are\r\nwelcome to change it and/or distribute copies of it under certain conditions.\r\nType \"show copying\" to see the conditions.\r\nThere is absolutely no warranty for GDB. Type \"show warranty\" for details.\r\nThis GDB was configured as \"x86_64-apple-darwin\".Attaching to process 10502.\r\n[DEBUG] reading stylesheet from: /Users/dgandhi/Library/Application Support/iPhone Simulator/5.0/Applications/D35A6348-7A0B-4279-87CF-2F268969C6CD/videplayer.app/stylesheet.plist\r\n[INFO] test/1.0 (2.0.0.v20120321121811.9b41dde)\r\n[DEBUG] Analytics is enabled = YES\r\n[DEBUG] loading: /Users/dgandhi/Library/Application Support/iPhone Simulator/5.0/Applications/D35A6348-7A0B-4279-87CF-2F268969C6CD/videplayer.app/app.js, resource: app_js\r\nMar 23 14:11:06 dgandhimbp test[10502] : CGContextConcatCTM: invalid context 0x0\r\nMar 23 14:11:06 dgandhimbp test[10502] : CGContextSetInterpolationQuality: invalid context 0x0\r\nMar 23 14:11:06 dgandhimbp test[10502] : CGContextDrawImage: invalid context 0x0\r\nMar 23 14:11:06 dgandhimbp test[10502] : CGBitmapContextCreateImage: invalid context 0x0\r\n[DEBUG] application booted in 44.771016 ms\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: CGcontext errors, while using any background property on label", "creator": { "name": "dgandhi", "key": "dgandhi", "displayName": "Devang Gandhi", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dgandhi", "key": "dgandhi", "displayName": "Devang Gandhi", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium SDK: Mobile 1.8.2\r\nPlatform OS: iOS\r\nPlatform OS Version: 5.0", "comment": { "comments": [ { "id": "195473", "author": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "body": "Tested with 2.0.1GA2 on the iOS simulator (had to do this via Xcode), issue still reproducible.", "updateAuthor": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "created": "2012-05-21T11:38:37.000+0000", "updated": "2012-05-21T11:38:37.000+0000" }, { "id": "197282", "author": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR merged https://github.com/appcelerator/titanium_mobile/pull/2319", "updateAuthor": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-05T10:06:41.000+0000", "updated": "2012-06-05T10:06:41.000+0000" }, { "id": "199937", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as Fixed.\r\n\r\nSDK: 2.1.0.v20120622174154\r\nStudio: 2.1.0.201206221045\r\nOS: Lion 10.7.4\r\nXcode: 4.3.2\r\nDevices Tested: iPod 4.3.3, iPad3 5.1.1\r\n\r\nTest Steps\r\n\r\n1. Run sample code above.\r\n2. Check console for errors of this type:\r\n\r\n{code}\r\nMar 23 14:11:06 dgandhimbp test[10502] : CGContextConcatCTM: invalid context 0x0\r\nMar 23 14:11:06 dgandhimbp test[10502] : CGContextSetInterpolationQuality: invalid context 0x0\r\nMar 23 14:11:06 dgandhimbp test[10502] : CGContextDrawImage: invalid context 0x0\r\nMar 23 14:11:06 dgandhimbp test[10502] : CGBitmapContextCreateImage: invalid context 0x0\r\n{code}\r\n\r\nExpected Result:\r\n\r\nNo CGContext errors.", "updateAuthor": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-23T14:54:43.000+0000", "updated": "2012-06-23T14:54:43.000+0000" }, { "id": "202054", "author": { "name": "nchhabra", "key": "nchhabra", "displayName": "Neha Chhabra", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Reopening to update labels.", "updateAuthor": { "name": "nchhabra", "key": "nchhabra", "displayName": "Neha Chhabra", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2012-07-09T03:36:51.000+0000", "updated": "2012-07-09T03:36:51.000+0000" }, { "id": "278585", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Anvil testcase PR https://github.com/appcelerator/titanium_mobile/pull/4787", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-07T05:28:55.000+0000", "updated": "2013-11-07T05:28:55.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }