NWJS not completely closing when exiting app

Bugs will be moved here once resolved.

Post » Wed Jan 20, 2016 3:46 am

When I was working on the Steam integration using the greenworks plugin, I read somewhere that adding
Code: Select all
"single-instance": true

to the package.json file would force nw to run all processes in a single .exe, and this would make the steam overlay work properly. I remember this working back then but I just went to check it now and it's actually running 2 different processes..

This is most definitely a NW.js bug.
B
121
S
41
G
40
Posts: 841
Reputation: 27,857

Post » Wed Jan 20, 2016 11:25 am

It is a nw.js bug, it was introduced in 0.13 beta 2 (grrrr) and fixed recently (don't run beta 2).
It makes the game run off-screen, in distant coordinates.

The fix is to delete your exported folder.

https://github.com/nwjs/nw.js/issues/4265
B
28
S
12
G
4
Posts: 192
Reputation: 4,579

Post » Wed Jan 20, 2016 11:45 am

christina wrote:It is a nw.js bug, it was introduced in 0.13 beta 2 (grrrr) and fixed recently (don't run beta 2).
It makes the game run off-screen, in distant coordinates.

The fix is to delete your exported folder.

https://github.com/nwjs/nw.js/issues/4265


Do you mean delete the game data folder in AppData/Local ? If so, I've done this and it doesn't make a difference :/
B
11
S
3
Posts: 135
Reputation: 1,309

Post » Thu Jan 21, 2016 11:12 am

Facing the same problem here as well, the after the app is shut down via close, two of the smaller NWJS process are removed while the largest memory process NWJS is not removed and are still in the task manager.

If you keep opening the same NWJS game, you get a repeat process over and over again every time you do so.

This accumulate to around 7 NWJS processes after I restarted and close the game four times after the first initial attempt.

This is bad and didn't occur in the 10.5 version. I am facing this today after upgrading both my C2 and NWJS.

Image show my task manager after the fifth app shut down.
Image

Can we resolve things on our end by forcefully shutting down all nwjs process after browser.close is activated?

EDIT: Changing the app name or deleting the app folder in the user local directory did nothing to resolved this. Just to be clear, the game run perfectly. It's the game not being able to be close properly that worries me.

Like others, I am only getting this effect once the game had use more than a single layout in the runtime. Using a test case with one layout does not produce this effect while using a test case with three layouts (Basically the first two layouts go to another layout after a second had passed) produce the bug.

Can someone notify the nwjs team regarding this?
B
36
S
18
G
11
Posts: 248
Reputation: 8,694

Post » Thu Jan 21, 2016 1:02 pm

After renaming the project, this issue no longer appeared on my end
B
43
S
12
G
14
Posts: 488
Reputation: 10,570

Post » Thu Jan 21, 2016 2:06 pm

FraktalZero wrote:After renaming the project, this issue no longer appeared on my end


What is your operating system, may I ask?

I am using Windows 7 64 bit using non-Steam version of C2.

I tried both 32 and 64 bit version of the exported nwjs and the issue persist in both version.
B
36
S
18
G
11
Posts: 248
Reputation: 8,694

Post » Thu Jan 21, 2016 3:47 pm

We've got multiple bugs being talked about here.
This thread is about multiple exes not shutting down on close.
I think the other is about Nwjs not running on Windows 10.
Trying one bugs solution might work for the other, but logic would indicate otherwise.
Image ImageImage
B
166
S
49
G
154
Posts: 8,103
Reputation: 100,227

Post » Thu Jan 21, 2016 4:45 pm

newt wrote:We've got multiple bugs being talked about here.
This thread is about multiple exes not shutting down on close.
I think the other is about Nwjs not running on Windows 10.
Trying one bugs solution might work for the other, but logic would indicate otherwise.


Agreed. Though I'm on Win 10 and everything else is working (minus the left over nw.exe)

What baffles me is... ( correct me if I'm wrong here ) Multiple instances when running/previewing a project seems to be normal. Not seeing the issue there considering the fact that NW is based on chromium and when you open a single chrome window you get multiple chrome.exe instances in your task manager.

Example
Image
as you can see multiple tasks for single chrome window... And a left over nw.exe

I think the main issue is once a project/preview is closed a remaining instance of NW.exe is still active.
Image Image Image
B
61
S
19
G
6
Posts: 325
Reputation: 7,945

Post » Thu Jan 21, 2016 10:33 pm

@Sethmaster Same as you. This problem doesn't seem to be persistent through every system. Tried a build of my project on my other computer with same OS specs and yet it worked but not on my current pc. Copying everything into a new project works like a charm but obviously my project its only 800 events so not much of a hassle for me.
So far it works but Im expecting something else to appear soon.
B
43
S
12
G
14
Posts: 488
Reputation: 10,570

Post » Fri Jan 22, 2016 5:08 pm

Any update on this @Ashley ?
B
11
S
3
Posts: 135
Reputation: 1,309

PreviousNext

Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 1 guest