nw.js
nw.js copied to clipboard
nwjs Helper taking 100% of CPU on Mac
NW version: nw.js v0.14.5 Node v5.11.1 Chromium 50.0.2661.102 commit hash: 93c8021-3478215-2a9e6e1-5a26102
OS version: 14.5.0 Darwin Kernel Version 14.5.0: Mon Jan 11 18:48:35 PST 2016; root:xnu-2782.50.2~1/RELEASE_X86_64 x86_64
And app doing some drawing taking 100% CPU. I experience similar problems with Chrome browser itself. Seems as common problem on MacOS.
@MichalMisiaszek Do you have a sample app to reproduce this issue?
@MichalMisiaszek are you running osx sierra? does the 100% CPU happens when you close the app ?
Hello, I cannot share my app unfortunately. If I close it it is OK. I believe problem is with Chrome itself as I have similar case using Chrome on my Mac. I am running Yosemite. And again it does not ALWAYS happen :(. Regards
Getting this problem too. If I force-quit the application, the nwjs helper stays behind in memory.
^
on osx 10.11.6 with nw 0.14.6-sdk, 0.14.7-sdk and 0.16.0-sdk, nwjs helper remains running after closing the app, and gradually consumes more and more cpu. have to force quit it.
have not seen it on the production build of nw yet, nor do i see same behaviour with chrome browser
in our case we isolated this to the use of fs.watch (via chokidar wrapper)
Any update on this? One app I use that bundles nwjs hits this basically every time.
Please provide a sample so we can reproduce it.
Happy to. What/How exactly do you want me to do this?
if you meant sample app, it happens using the current version of PopcornTime.sh on my macbook, basically every time.
CC @Christywl
I try PopcornTime.sh 0.3.10 on Mac, the CPU usage(not 100%):
Similar issue #4508.
This happens with near 100% reliability on latest PT on both my and my wife's laptops. We typically are chromecasting, so perhaps this makes a difference?
Incidentally, i rebuilt PT locally from source last night, after upgrading the nwjs dependency to a more recent version, and i haven't seen the behavior since. I'll update here if it reoccurs.
-dave
On Tue, Jun 20, 2017 at 2:10 AM, Christywl [email protected] wrote:
I try PopcornTime.sh 0.3.10 on Mac, the CPU usage(not 100%): [image: image] https://user-images.githubusercontent.com/20039821/27318945-7ce0fafc-55c1-11e7-8c37-45b28905403c.png
[image: image] https://user-images.githubusercontent.com/20039821/27318961-96451dd4-55c1-11e7-9c64-6ab1295270ac.png
Similar issue #4508 https://github.com/nwjs/nw.js/issues/4508.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/nwjs/nw.js/issues/5152#issuecomment-309654328, or mute the thread https://github.com/notifications/unsubscribe-auth/AF3Qr2P2JBrflrndA02YzgswkNCQlPR8ks5sF2JbgaJpZM4JUwWX .
same here, osx high sierra, chromecast as well
I double check with PT 0.3.10 on Mac, can reproduce this issue now, it mostly consumes 70%~95% CPU, sometimes it takes >100% CPU.
This could be an issue in PT. Could someone come up with a minimal reproducible case?
I am experiencing this, while testing an app that it seems it is made with nwjs (https://pinegrow.com/)
same issue with macbook m1, somehow this process appeared in the "Active Monitor" and used 110% CPU
@lebed2045 Same here. I was wondering why my MacBook Pro M1 was getting so hard and burning through batter faster than it should while just doing very basic web development (VS Code, PHP, FireFox, etc). I force quite the process and my Mac has cooled back down now.
i run the zimbra desktop program, when zimbra desktop is closed. and NWJS closed.. :-)
The problem seems to be most prominent in <webview>
tag.
How to reproduce
main.html
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Demo</title>
<style>
body, webview { width: 100vw; height: 100vh;}
</style>
</head>
<body>
<webview src="https://maps.google.com" partition="persist:demosite"></webview>
</body>
</html>
package.json
{
"main": "/main.html",
"name": "demo",
"nodejs": "false",
"chromium-args": "--enable-spell-checking"
}
During loading, zooming in, zooming out nwjs Helper (Renderer) consumes up to 70% of CPU.