{ "id": "99690", "key": "TIMOB-10583", "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": "15105", "description": "2013 Sprint 07", "name": "2013 Sprint 07", "archived": true, "released": true, "releaseDate": "2013-04-08" } ], "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": "2013-03-27T08:56:33.000+0000", "created": "2012-08-23T16:50:34.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "api" ], "versions": [ { "id": "13572", "description": "Release 2.1.1", "name": "Release 2.1.1", "archived": true, "released": true, "releaseDate": "2012-07-31" } ], "issuelinks": [], "assignee": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-28T17:22: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": "h3. Problem description\r\n': CGContextDrawTiledImage: invalid context 0x0' error message is displayed in the logs if setting the 'backgroundRepeat: true' property for a view nested inside a tableViewRow.\r\n\r\nh3. Sample code\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor:'black'\r\n});\r\n\r\nvar row = Ti.UI.createTableViewRow({height: 94, className: \"standardRow\"});\r\nvar rightView = Ti.UI.createView({\r\n backgroundImage: \"LightGrayBackground.png\",\r\n width: 205,\r\n left: 115,\r\n height: 94,\r\n top: 0,\r\n backgroundRepeat: true\r\n});\r\nrow.add(rightView);\r\n\r\nvar tableView = Ti.UI.createTableView({\r\n\tbackgroundColor:'black',\r\n\tdata: [row]\r\n});\r\n\r\nwin.add(tableView);\r\n\r\nwin.open();\r\n{code}\r\n\r\n- Run the sample code and check the log.\r\nResult: : CGContextDrawTiledImage: invalid context 0x0 is displayed\r\n\r\nCommenting out the 'backgroundRepeat' property, error is no longer displayed", "attachment": [ { "id": "30691", "filename": "LightGrayBackground.png", "author": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-23T16:50:34.000+0000", "size": 1088, "mimeType": "image/png" }, { "id": "30692", "filename": "LightGrayBackground@2x.png", "author": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-23T16:50:34.000+0000", "size": 1414, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: 'invalid context 0x0' error when setting the 'backgroundRepeat: true' property in a view", "creator": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "iOS 5.1\r\nTiSDK tested: 2.1 CI and 2.1.2 GA", "comment": { "comments": [ { "id": "216162", "author": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "This issue happens also if view is not added to table view row. I don't have test case right now, but can make one if necessary.", "updateAuthor": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2012-08-27T04:24:24.000+0000", "updated": "2012-08-27T04:24:24.000+0000" }, { "id": "224476", "author": { "name": "animecyc", "key": "animecyc", "displayName": "Seth Benjamin", "active": true, "timeZone": "America/New_York" }, "body": "Setting the view/window background to tile after the view has propagated/is visible solves this problem. Possibly delaying the tiling until the view is loaded will be a plausible fix.", "updateAuthor": { "name": "animecyc", "key": "animecyc", "displayName": "Seth Benjamin", "active": true, "timeZone": "America/New_York" }, "created": "2012-10-19T17:21:25.000+0000", "updated": "2012-10-19T17:21:25.000+0000" }, { "id": "244273", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue does not reproduces with the release 3.1.0\r\n\r\nTested with\r\n\r\nTitanium Studio, build: 3.0.1.201212181159\r\nTitanium SDK version: 3.1.0 \r\niOS iPhone Simulator: iOS SDK version: 6.0\r\n", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-27T08:56:33.000+0000", "updated": "2013-04-08T09:20:10.000+0000" }, { "id": "246323", "author": { "name": "crossbits", "key": "crossbits", "displayName": "Danny Pham", "active": true, "timeZone": "Europe/Berlin" }, "body": "Issue still exists, tested with SDK 3.0.2.\r\n\r\nWorkaround with using \"postlayout\" event can be found here:\r\n\r\n[http://developer.appcelerator.com/question/147793/error---cgcontextdrawtiledimage-invalid-context-0x0]\r\n\r\nWould be nice if problem could be solved without workaround.\r\n\r\n", "updateAuthor": { "name": "crossbits", "key": "crossbits", "displayName": "Danny Pham", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-04-07T18:01:26.000+0000", "updated": "2013-04-07T18:01:26.000+0000" }, { "id": "416011", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Can verify this ticket as \"Cannot Reproduce\". The error no longer shows up in the console log in Studio. 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", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-28T17:22:55.000+0000", "updated": "2017-03-28T17:22:55.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }