{ "id": "124819", "key": "TIMOB-16265", "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": [], "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2014-01-21T07:34:35.000+0000", "created": "2014-01-15T08:38:16.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "android", "triage" ], "versions": [ { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "issuelinks": [ { "id": "34464", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "124146", "key": "TIMOB-16074", "fields": { "summary": "CLI: Genymotion library causes crash when scanning for Virtual Box in restricted folders", "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" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2017-03-20T22:18:59.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": "10202", "name": "Android", "description": "Android Platform" } ], "attachment": [], "flagged": false, "summary": "Android: Got EPERM, app crashing while trying to access protected folder with Genymotion emulator", "creator": { "name": "estatic", "key": "estatic", "displayName": "Ivan Grunev", "active": true, "timeZone": "Asia/Jakarta" }, "subtasks": [], "reporter": { "name": "estatic", "key": "estatic", "displayName": "Ivan Grunev", "active": true, "timeZone": "Asia/Jakarta" }, "environment": "Windows 7 x64", "comment": { "comments": [ { "id": "288282", "author": { "name": "estatic", "key": "estatic", "displayName": "Ivan Grunev", "active": true, "timeZone": "Asia/Jakarta" }, "body": "Okay, seems I found solution.\n\nI found that it stops on seeking Oracle VirtualBox executable in my program files folders. And once it gets to protected folder it crashing.\n\nConflict is in Titanium\\mobilesdk\\win32\\3.2.0.GA\\node_modules\\titanium-sdk\\lib\\emulators\\genymotion.js file\n\nSo, here is patch:\n138,153c138,151\n< \t\t\t\t\t\t\t\t\ttry {\n< \t\t\t\t\t\t\t\t\t\tvar files = fs.readdirSync(parent),\n< \t\t\t\t\t\t\t\t\t\t\ti = 0,\n< \t\t\t\t\t\t\t\t\t\t\tl = files.length,\n< \t\t\t\t\t\t\t\t\t\t\tname, file, stat, result;\n< \t\t\t\t\t\t\t\t\t\tfor (; i < l; i++) {\n< \t\t\t\t\t\t\t\t\t\t\tname = files[i];\n< \t\t\t\t\t\t\t\t\t\t\tfile = path.join(parent, name);\n< \t\t\t\t\t\t\t\t\t\t\tif (fs.existsSync(file)) {\n< \t\t\t\t\t\t\t\t\t\t\t\tstat = fs.statSync(file);\n< \t\t\t\t\t\t\t\t\t\t\t\tif (stat.isFile() && name == executableName) {\n< \t\t\t\t\t\t\t\t\t\t\t\t\treturn file;\n< \t\t\t\t\t\t\t\t\t\t\t\t} else if (stat.isDirectory() && depth) {\n< \t\t\t\t\t\t\t\t\t\t\t\t\tif (result = scan(file, depth - 1)) {\n< \t\t\t\t\t\t\t\t\t\t\t\t\t\treturn result;\n< \t\t\t\t\t\t\t\t\t\t\t\t\t}\n---\n> \t\t\t\t\t\t\t\t\tvar files = fs.readdirSync(parent),\n> \t\t\t\t\t\t\t\t\t\ti = 0,\n> \t\t\t\t\t\t\t\t\t\tl = files.length,\n> \t\t\t\t\t\t\t\t\t\tname, file, stat, result;\n> \t\t\t\t\t\t\t\t\tfor (; i < l; i++) {\n> \t\t\t\t\t\t\t\t\t\tname = files[i];\n> \t\t\t\t\t\t\t\t\t\tfile = path.join(parent, name);\n> \t\t\t\t\t\t\t\t\t\tif (fs.existsSync(file)) {\n> \t\t\t\t\t\t\t\t\t\t\tstat = fs.statSync(file);\n> \t\t\t\t\t\t\t\t\t\t\tif (stat.isFile() && name == executableName) {\n> \t\t\t\t\t\t\t\t\t\t\t\treturn file;\n> \t\t\t\t\t\t\t\t\t\t\t} else if (stat.isDirectory() && depth) {\n> \t\t\t\t\t\t\t\t\t\t\t\tif (result = scan(file, depth - 1)) {\n> \t\t\t\t\t\t\t\t\t\t\t\t\treturn result;\n157,158d154\n< \t\t\t\t\t\t\t\t\t} catch(EPERM) {\n< \t\t\t\t\t\t\t\t\t\tconsole.log(\"Bad permittions\");\n\n", "updateAuthor": { "name": "estatic", "key": "estatic", "displayName": "Ivan Grunev", "active": true, "timeZone": "Asia/Jakarta" }, "created": "2014-01-15T17:36:32.000+0000", "updated": "2014-01-15T17:36:32.000+0000" }, { "id": "288977", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~cbarber] Reporter has suggested to put some code for Genymotion emulator inside try / catch block so I am moving this request to you for further evaluation.", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-21T06:40:54.000+0000", "updated": "2014-01-21T06:40:54.000+0000" }, { "id": "288986", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Dupe of TIMOB-16074.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-01-21T07:34:35.000+0000", "updated": "2014-01-21T07:34:35.000+0000" }, { "id": "414079", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as duplicate.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-20T22:18:59.000+0000", "updated": "2017-03-20T22:18:59.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }