Node-webkit preview takes forever to load

Bugs will be moved here once resolved.

Post » Sun Dec 01, 2013 5:58 am

Link to .capx file (required!):
https://dl.dropboxusercontent.com/u/70562654/Prototype3.6_340x236_bugreport.capx

Steps to reproduce:
1. Run preview with node-webkit
2.
3.

Observed result:
Harddisk loads like mad but the preview never executes. To stop it I need to kill the nw.exe processes in Task Manager, which also takes a loooong time to complete. This only happens the first time I try to run preview, on subsequent runs preview only takes about a couple of seconds to get going. Closing and re-opening C2 makes no difference; if I've already run Node-webkit preview once after a fresh boot it will always run without problems. Also doesn't happen with exported Node-webkit.

Expected result:


Browsers affected:
Chrome: no
Firefox: ?
Internet Explorer: ?

Operating system & service pack:
Windows 7 64-bit. Service pack 1

Construct 2 version:
r152    

This started to happen around r142-r143 I think? Definitely sometime between r139 and r146. It doesn't seem to happen with new capx'es.
B
39
S
16
G
6
Posts: 542
Reputation: 7,617

Post » Sun Dec 01, 2013 9:49 am

Your example started after about 1.5 seconds for me.

Maybe something on your system is slowing it down? Anti-virus scanning? Recent MicroS**t updates?

What does Task Manager show when you try launching?
If your vision so exceeds your ability, then look to something closer.
Moderator
B
134
S
30
G
85
Posts: 5,412
Reputation: 59,008

Post » Sun Dec 01, 2013 10:04 am

Task manager says:

Processes running -> 2 nw.exe, no game.exe.

Disk usage is hogged by nw.exe reading at about 250 kb/second. svchost.exe also uses quite a bit: 130 kb/s.

No antivirus software installed, just comodo firewall. But the firewall always informs me if it decided to block something it doesn't trust so I don't think that's it.
B
39
S
16
G
6
Posts: 542
Reputation: 7,617

Post » Sun Dec 01, 2013 1:44 pm

Node-webkit preview used to leak files on disk - some users reported hundreds of thousands of files. We fixed this by making it clear the cache on startup starting with r152, but if it has leaked a lot of files, it will take a long time to clear the cache on the first run.

Workaround: delete all the files for the project in your %appdata% folder, and preview again - it should start faster then.
Scirra Founder
B
397
S
236
G
88
Posts: 24,389
Reputation: 194,448

Post » Mon Dec 02, 2013 5:59 pm

Wow! Over two hundred thousand in my case :P Thanks, that worked nicely.
B
39
S
16
G
6
Posts: 542
Reputation: 7,617


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 7 guests