NativeScript / NativeScript/nativescript-cli

Not freeing CPU usage after termination, will max out computer's CPU

Open
#4,402 7 comments 0 reactions 1 assignee View on GitHub

@rosen-vladimirov is already working on this.

Since Mar 5, 2019.

needs more info
Dominant language
JavaScript
Stars
1.1k
Forks
204
Avg merge
1d 9h
Merged PRs (30d)
8

Description

Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):

  • CLI: 5.2.0
  • Cross-platform modules: 5.1.2
  • Android Runtime: 5.1.0
  • iOS Runtime: 5.1.0

Describe the bug
Every time I rerun 'tns run' the previous CPU usage is not freed, but instead compounds. I often terminate the process by Ctrl+C, and each time I do this the free CPU goes down by ~10% and with 6-7 runs my Macbook is completely useless and I have to restart to get my CPU back. I cannot terminate processes to free it. Here is a sped up video showing my problem. https://www.youtube.com/watch?v=L_27UGBeOgA I downloaded an example template to show this happens with every project. I run the project 7 times in the video and each time I do it you can see my CPU slowly get maxed out. This only started happening after I upgraded to 5.2.0 from 5.1.0. This has completely brought my development to a standstill.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.