Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tns run android - EMFILE: too many open files #3268

Closed
JILeXanDR opened this issue Dec 12, 2017 · 2 comments
Closed

tns run android - EMFILE: too many open files #3268

JILeXanDR opened this issue Dec 12, 2017 · 2 comments
Assignees
Milestone

Comments

@JILeXanDR
Copy link

tns --version 3.3.1

Command's tns run android output is:

Searching for devices...
Skipping prepare.
Building project...
Gradle build...
         + applying user-defined configuration from /home/alexandr/projects/MyApp/app/App_Resources/Android/app.gradle
         + creating include.gradle for plugin /home/alexandr/projects/MyApp/node_modules/tns-core-modules-widgets
         + applying plugin configuration from /home/alexandr/projects/MyApp/platforms/android/build/configurations/tns-core-modules-widgets/include.gradle
         + adding nativescript runtime package dependency: nativescript-optimized
         + adding aar plugin dependency: /home/alexandr/projects/MyApp/node_modules/tns-core-modules-widgets/platforms/android/widgets-release.aar
Running full build
Project successfully built.
Installing...
Successfully installed on device with identifier 'd5a7d6b70404'.
Unable to apply changes on device: d5a7d6b70404. Error is: EMFILE: too many open files, open '/home/alexandr/projects/MyApp/platforms/android/src/main/assets/app/tns_modules/rxjs/_esm5/operators/retry.js.map'.
The project file undefined is corrupted. 
Consider restoring an earlier version from your source control or backup.
Additional technical info: Error: EMFILE: too many open files, open '/home/alexandr/projects/MyApp/package.json'
Failed to display command help { Error: EMFILE: too many open files, scandir '/home/alexandr/.nvm/versions/node/v7.5.0/lib/node_modules/nativescript/docs/man_pages'
    at Object.fs.readdirSync (fs.js:871:18)
    at FileSystem.readDirectory (/home/alexandr/.nvm/versions/node/v7.5.0/lib/node_modules/nativescript/lib/common/file-system.js:153:19)
    at FileSystem.enumerateFilesInDirectorySync (/home/alexandr/.nvm/versions/node/v7.5.0/lib/node_modules/nativescript/lib/common/file-system.js:275:31)
    at HelpService.<anonymous> (/home/alexandr/.nvm/versions/node/v7.5.0/lib/node_modules/nativescript/lib/common/services/help-service.js:136:50)
    at Generator.next (<anonymous>)
    at fulfilled (/home/alexandr/.nvm/versions/node/v7.5.0/lib/node_modules/nativescript/lib/common/services/help-service.js:4:58)
  errno: -24,
  code: 'EMFILE',
  syscall: 'scandir',
  path: '/home/alexandr/.nvm/versions/node/v7.5.0/lib/node_modules/nativescript/docs/man_pages' }
@sis0k0
Copy link
Contributor

sis0k0 commented Dec 13, 2017

@JILeXanDR can you share your package.json?

@JILeXanDR
Copy link
Author

@sis0k0

{
  "description": "NativeScript Application",
  "license": "SEE LICENSE IN <your-license-filename>",
  "readme": "NativeScript Application",
  "repository": "<fill-your-repository-here>",
  "nativescript": {
    "id": "org.nativescript.MyApp",
    "tns-android": {
      "version": "3.3.1"
    }
  },
  "dependencies": {
    "nativescript-theme-core": "~1.0.4",
    "nativescript-vue": "^0.1.1",
    "tns-core-modules": "^3.0.0",
    "vue-router": "^2.4.0"
  },
  "devDependencies": {
    "babel-traverse": "6.24.1",
    "babel-types": "6.24.1",
    "babylon": "6.16.1",
    "lazy": "1.0.11",
    "nativescript-dev-android-snapshot": "^0.*.*"
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants