{ "id": "105662", "key": "AC-2510", "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": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-11-30T17:34:25.000+0000", "created": "2012-11-29T02:31:22.000+0000", "labels": [ "external-lib" ], "versions": [], "issuelinks": [], "assignee": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "updated": "2016-03-08T07:41:34.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "Sample code:\r\n{code:js}\r\nvar testArray = []\r\n_.isEmpty(testArray)\r\n{code}\r\n\r\nThis causes the following line in the log, and [a lot of hex code|http://pastebin.com/ExiuqSx7] under it:\r\n{{F/libc ( 586): Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1)}}", "attachment": [], "flagged": false, "summary": "_.isEmpty() causes crash", "creator": { "name": "igorsantos07", "key": "igorsantos07", "displayName": "Igor Santos", "active": true, "timeZone": "America/Sao_Paulo" }, "subtasks": [], "reporter": { "name": "igorsantos07", "key": "igorsantos07", "displayName": "Igor Santos", "active": true, "timeZone": "America/Sao_Paulo" }, "environment": "Ubuntu 12.04", "comment": { "comments": [ { "id": "229059", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Is this iOS? Android? Which version? What TiSDK?", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-11-29T17:45:45.000+0000", "updated": "2012-11-29T17:45:45.000+0000" }, { "id": "229109", "author": { "name": "igorsantos07", "key": "igorsantos07", "displayName": "Igor Santos", "active": true, "timeZone": "America/Sao_Paulo" }, "body": "Sorry, I was quite sleepy when I posted this issue.\r\nIt was on Android, trying both 2.3.3 and 4.0.3 versions, on SDK 3.0 v2012-11-13 17:02:03", "updateAuthor": { "name": "igorsantos07", "key": "igorsantos07", "displayName": "Igor Santos", "active": true, "timeZone": "America/Sao_Paulo" }, "created": "2012-11-29T19:47:30.000+0000", "updated": "2012-11-29T19:47:30.000+0000" }, { "id": "229173", "author": { "name": "igorsantos07", "key": "igorsantos07", "displayName": "Igor Santos", "active": true, "timeZone": "America/Sao_Paulo" }, "body": "Ok, I've just discovered what's happening. I hadn't declared the `_` variable (required the proper library file) in my code.\r\n\r\nThe point is: Titanium should say \"_ not declared\" instead of throwing all that garbage in the console, shouldn't it?\r\n\r\nBTW: I have _ declared in many other files, including two modules that are included on the given file.", "updateAuthor": { "name": "igorsantos07", "key": "igorsantos07", "displayName": "Igor Santos", "active": true, "timeZone": "America/Sao_Paulo" }, "created": "2012-11-30T00:57:59.000+0000", "updated": "2012-11-30T00:57:59.000+0000" }, { "id": "229322", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Ah, well at least you found the problem. I'll close as fixed. I'm not sure if you're using it already, but Ti Studio 3.0 should give more accurate error messages (especially if used in conjunction with the new Code Processor), would be interesting to try it out for this.", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-11-30T17:34:25.000+0000", "updated": "2012-11-30T17:34:25.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }