NativeScript / NativeScript/nativescript-cli
Not freeing CPU usage after termination, will max out computer's CPU
@rosen-vladimirov is already working on this.
Since Mar 5, 2019.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.