NWJS not completely closing when exiting app

Bugs will be moved here once resolved.

Post » Sat Jan 09, 2016 2:01 pm

Problem Description

I am trying to publish my game on steam. Whenever I launch the game using NWJS everything works fine. It's when I close the app. If I try to play another game, Steam will inform me that the app hasn't completely closed and I am forced to go through the task manager in order to completely close NWJS.

Attach a Capx

I am not sure what type of capx will help show this problem

Description of Capx

N/A

Steps to Reproduce Bug
  • Step 1
    Open a game in steam using NWJS v0.13.0 beta 2 (Chromium 47)

  • Step 2
    Try closing the app

  • Step 3 etc.

    Try opening another game or even the same game in steam

Observed Result

https://gyazo.com/78e57edad5b42497c5ed061cfd9dbd02

https://gyazo.com/a310051dc097f2b08919f516cb19ba53

Expected Result
____ What do you expect to happen? ____

Affected Browsers
  • Chrome: (YES/NO)
  • FireFox: (YES/NO)
  • Internet Explorer: (YES/NO)

Operating System and Service Pack

Windows 10

Construct 2 Version ID

r220
Image
B
74
S
21
G
9
Posts: 571
Reputation: 14,044

Post » Sat Jan 09, 2016 2:16 pm

NotionGames wrote: [*] Step 2
Try closing the app


Does that happen when closing it with the browser event "close" and/or using the default "X" to close a window?
ImageImageImage
B
64
S
24
G
78
Posts: 666
Reputation: 45,070

Post » Sat Jan 09, 2016 2:19 pm

@TheRealDannyyy it happens with both options
Image
B
74
S
21
G
9
Posts: 571
Reputation: 14,044

Post » Sat Jan 09, 2016 2:24 pm

when i open the game, these two processes run

https://gyazo.com/98b19c94130477d36021d4894616e4e1


*UPDATE*

Using the browser close option DOES seem to close everything. It's when you press the X button to close the window that it stays running
Image
B
74
S
21
G
9
Posts: 571
Reputation: 14,044

Post » Sat Jan 09, 2016 2:32 pm

Just for reference, I just tested using the non-steam version (x64) and it seems OK - no running process left open.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
136
S
31
G
86
Posts: 5,490
Reputation: 59,766

Post » Sat Jan 09, 2016 2:33 pm

NotionGames wrote:when i open the game, these two processes run
*UPDATE*
Using the browser close option DOES seem to close everything. It's when you press the X button to close the window that it stays running

This seems to be an issue by NW.js and not Construct 2 but anyway @Ashley should take a quick look at this just to make sure.
ImageImageImage
B
64
S
24
G
78
Posts: 666
Reputation: 45,070

Post » Sat Jan 09, 2016 2:37 pm

NotionGames wrote:when i open the game, these two processes run

https://gyazo.com/98b19c94130477d36021d4894616e4e1


*UPDATE*

Using the browser close option DOES seem to close everything. It's when you press the X button to close the window that it stays running


I don't think the number of processes running is relevant. When I run an exported NWjs it shows 3 process - they all disappear when I close the game.

Same happens with Kaspersky - usually more than 1 process can be running.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
136
S
31
G
86
Posts: 5,490
Reputation: 59,766

Post » Sat Jan 09, 2016 2:42 pm

Thanks for your help guys

@zenox98 @TheRealDannyyy very much appreciated!
Image
B
74
S
21
G
9
Posts: 571
Reputation: 14,044

Post » Sat Jan 09, 2016 4:14 pm

I uploaded the latest build to steam and tested the close browser. It works well when its in preview in C2. but when I export and upload to Steam, it never closes on its own regardless of whether or not I close in game or use the X on the window. Hm...
Image
B
74
S
21
G
9
Posts: 571
Reputation: 14,044

Post » Sat Jan 09, 2016 4:27 pm

Here's an older forum post about the same issue on another site. Not sure if this applies here, but I wanted to share the information.

https://github.com/nwjs/nw.js/issues/325
Image
B
74
S
21
G
9
Posts: 571
Reputation: 14,044

Next

Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 5 guests