{ "id": "64633", "key": "TIMOB-3630", "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": "12084", "description": "", "name": "Sprint 2011-44", "archived": true, "released": true, "releaseDate": "2011-11-07" }, { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-11-03T09:22:21.000+0000", "created": "2011-04-20T09:54:27.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "module_utils", "qe-testadded" ], "versions": [], "issuelinks": [], "assignee": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-11-21T17:10:02.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": "Titanium.Utils.md5HexDigest works fine when using a string, but using a blob, like an image file, crashes the app on iOS.\r\n\r\nTest case here: http://pastie.org/private/lncwwujkwuzbet40dfhyga\r\n\r\nHelpdesk ticket: http://appc.me/c/RGY-41553-642\r\n\r\nTested on 1.6.3 (Apr 18 2011 14:44 r878906de)\r\niPhone Simulator 4.3", "attachment": [ { "id": "24002", "filename": "play-2011-11-02-15-11.crash.txt", "author": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "created": "2011-11-02T14:18:35.000+0000", "size": 34112, "mimeType": "text/plain" } ], "flagged": false, "summary": "iOS: Creating MD5 hash from Blob crashes app.", "creator": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "171253", "author": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "body": "Just verified that this still crashes with 1.8.0 as well.\r\n\r\n{code:title=app.js}\r\nvar win = Ti.UI.createWindow({ backgroundColor: 'green' });\r\nwin.open();\r\nTi.Utils.md5HexDigest(win.toImage());\r\n{code}\r\n\r\nAttached is a crash log. When I ran from Xcode, I received an EXC_BAD_ACCESS somewhere in the following lines of UtilsModule.m. I'm guessing this is expected behavior at the moment, given that we are trying to coerce an image blog to a string.\r\n\r\n{code:title=UtilsModule.m}\r\nNSString *nstr = [self convertToString:args];\r\nconst char* data = [nstr UTF8String];\r\nreturn [TiUtils md5:[NSData dataWithBytes:data length:strlen(data)]];\r\n{code}", "updateAuthor": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "created": "2011-11-02T14:18:35.000+0000", "updated": "2011-11-02T14:18:35.000+0000" }, { "id": "171328", "author": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Pull request pending.", "updateAuthor": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-11-03T08:48:23.000+0000", "updated": "2011-11-03T08:48:23.000+0000" }, { "id": "173591", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Bug fixed, verified on:\r\nStudio: 1.0.7.201111211330\r\nSDK: 1.8.0.1.v20111121113056\r\nOS: OS X Lion\r\nDevices: all iOS devices", "updateAuthor": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-11-21T17:10:02.000+0000", "updated": "2011-11-21T17:10:02.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }