{ "id": "166865", "key": "AC-4888", "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": "8", "description": "", "name": "Needs more info" }, "resolutiondate": "2017-04-04T14:11:09.000+0000", "created": "2017-03-29T19:26:07.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-04-04T18:02:40.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": "When trying to open a window (that was working before, on SDK 5.5.1.GA), app crashes with the log below:\r\n\r\n{noformat}\r\n[ERROR] TiExceptionHandler: (main) [2686,6392] ----- Titanium Javascript Runtime Error -----\r\n[ERROR] TiExceptionHandler: (main) [0,6392] - In ti:/events.js:137,4\r\n[ERROR] TiExceptionHandler: (main) [0,6392] - Message: Uncaught Error: addListener only takes instances of Function. The listener for event \"undefined\" is \"undefined\"\r\n[ERROR] TiExceptionHandler: (main) [0,6392] - Source: \t\t\tthrow new Error('addListener only takes instances of Function. The listener for event \"' + type + '\" is \"' + (typeof listener) + '\"');\r\n[DEBUG] ViewRootImpl: #1 mView = com.android.internal.policy.PhoneWindow$DecorView{7357db V.E...... R.....I. 0,0-0,0}\r\n[ERROR] V8Exception: Exception occurred at ti:/events.js:137: Uncaught Error: addListener only takes instances of Function. The listener for event \"undefined\" is \"undefined\"\r\n[INFO] I/System.out: (HTTPLog)-Static: isSBSettingEnabled false\r\n[INFO] I/System.out: (HTTPLog)-Static: isSBSettingEnabled false\r\n[DEBUG] AbsListView: viewType is heaer or footer\r\n[DEBUG] HTTPClient: The persistent handle is disposed.\r\n[DEBUG] ViewRootImpl: MSG_RESIZED_REPORT: ci=Rect(0, 0 - 0, 0) vi=Rect(0, 0 - 0, 0) or=1\r\n[DEBUG] AbsListView: viewType is heaer or footer\r\n[ERROR] File: fail readDirectory() errno=2\r\n{noformat}\r\n\r\nIt seems to be an issue within titanium's core.\r\n\r\nPS: Project is classic, not Alloy.", "attachment": [], "flagged": false, "summary": "Android is crashing with no acceptable log", "creator": { "name": "perdona", "key": "perdona", "displayName": "Caio Perdona", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "perdona", "key": "perdona", "displayName": "Caio Perdona", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "OSX 10.12.4 (16E195)\r\nCLI 6.1.0\r\nSDK 6.0.3.GA", "comment": { "comments": [ { "id": "416233", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Sounds like something related to the {{hide()}}, check that you only perform that method on valid views and provide a test-case if it still happens.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-03-29T19:57:43.000+0000", "updated": "2017-03-29T19:57:43.000+0000" }, { "id": "416252", "author": { "name": "perdona", "key": "perdona", "displayName": "Caio Perdona", "active": true, "timeZone": "America/Los_Angeles" }, "body": "@hans I had a couple of {code:javascript}hide(){code}, but I commented all and the bug is still happening.\r\nThis window of my app is really big, with loads of proprietary code, so I will keep trying to work this around before providing you a test-case...\r\nI just need some hints about what could this be, since the log doesn't show much...\r\n", "updateAuthor": { "name": "perdona", "key": "perdona", "displayName": "Caio Perdona", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-03-29T21:07:40.000+0000", "updated": "2017-03-29T21:07:40.000+0000" }, { "id": "416341", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, run a log level trace -l trace on your project and attach the log here. Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2017-03-30T14:43:10.000+0000", "updated": "2017-03-30T16:18:03.000+0000" }, { "id": "416344", "author": { "name": "perdona", "key": "perdona", "displayName": "Caio Perdona", "active": true, "timeZone": "America/Los_Angeles" }, "body": "@Sharif this is already --log-level trace\r\nNo additional logs are being shown...", "updateAuthor": { "name": "perdona", "key": "perdona", "displayName": "Caio Perdona", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-03-30T15:16:19.000+0000", "updated": "2017-03-30T15:16:19.000+0000" }, { "id": "416362", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "In that case we need a sample project/code for us to test. Please provide that. Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2017-03-30T19:41:14.000+0000", "updated": "2017-03-30T19:41:14.000+0000" }, { "id": "416771", "author": { "name": "perdona", "key": "perdona", "displayName": "Caio Perdona", "active": true, "timeZone": "America/Los_Angeles" }, "body": "@Sharif since the window that has this code has around 2,5k lines, providing a test case isn't a trivial task.\r\nI will try to provide you this, but it can take some time.\r\nThat doesn't mean that the issue is resolved...", "updateAuthor": { "name": "perdona", "key": "perdona", "displayName": "Caio Perdona", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-04-04T18:02:40.000+0000", "updated": "2017-04-04T18:02:40.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }