Recording gameplay issue (NWjs, youtubers)

Discussion and feedback on Construct 2

Post » Fri Oct 28, 2016 6:24 pm

Alright. I tried with --single-process and the game won't even run.

Code: Select all
[1028/200737:ERROR:process_reader_win.cc(233)] ReadMemory at 0x8ffff89 of 512 bytes failed: Only part of a ReadProcessMemory or WriteProcessMemory request was completed. (0x12B)
[1028/200737:ERROR:crash_report_exception_handler.cc(98)] WriteEverything failed


I tried with --in-process-gpu as well and it looks like screen recorder sees the game straight away, but there's a long screen freez (like 10s) after I start recording. I tried it several times and sometimes it records correctly and sometimes it records frozen screen, even though it was unfrozen already while recording. So it is clearly related but does not solve the issue entirely.

Note that I am using nVidia GPU so that might be the case as well.

Will keep on testing. Thanks again for your help.
ImageImageImage
B
27
S
16
G
79
Posts: 1,012
Reputation: 44,243

Post » Fri Oct 28, 2016 6:37 pm

I'm starting to despise using nw.js and chrome.. makes other engines with native export look more appealing everyday.
I hope things get better soon.
B
45
S
20
G
65
Posts: 1,115
Reputation: 38,121

Post » Sat Oct 29, 2016 12:40 am

andreyin wrote:People have been talking about "--single-process" but using "--in-process-gpu" has always worked for me, even with the Steam overlay problem. I've heard it doesn't work properly with Nvidia gpus but I've always tested on them and it always works..


I've been using --in-process-gpu since forever. It does not solve the Steam overlay problem. It helps it, on some systems. On mine, AMD GPUs, it works fine. On others with NV GPUs, it does not work. I've had many reports of this from players already so i know it's not fixed.

And it's actually related to NWjs spawning multiple nw.exe processes. For my system it's normally 3x nw.exe, for others, up to 5x.. and the Valve people that I and others have talked to about this, have said the Overlay injection (like on-screen-displays of MSI Afterburner etc) code doesn't do it correctly because it does not KNOW which nw.exe is the correct/game to inject.

This is also the same for some capture software, they do not know which is the game exe to monitor. However, OBS works 100% because you can select window capture and find the specific one, it's much more flexible.

This in the past can be fixed by using --single-process to force only one nw.exe on launch. But lately this is no longer functional, leading to crashes.

The NWjs team IS AWARE of this, as it was reported on their Github a week ago. Let's hope they fix it soon.

ps. There is no point getting aggro at Scirra. We all know C2 depends on 3rd party export options and that's an added complexity that can lead to issues. The issue gets fixed ASAP when we report it to these 3rd party options ASAP.
B
70
S
24
G
19
Posts: 1,757
Reputation: 17,614

Post » Sat Oct 29, 2016 5:37 am

thanks for breaking it all down, @Silverforce - makes things less confusing, and also more hopeful that it'll be sorted out.
Are there any downsides for a single process?
B
45
S
20
G
65
Posts: 1,115
Reputation: 38,121

Post » Sat Oct 29, 2016 9:17 am

I just installed C2 r239 and NWjs 0.18.1, added the "--single-process" to the argument list in the package.json file, and I still can't see my game in OBS, neither in game-mode or window-mode, am I missing something else?
Image
B
78
S
28
G
12
Posts: 515
Reputation: 12,459

Post » Sat Oct 29, 2016 11:30 am

Lof wrote:I just installed C2 r239 and NWjs 0.18.1, added the "--single-process" to the argument list in the package.json file, and I still can't see my game in OBS, neither in game-mode or window-mode, am I missing something else?


Do it for the package-win.json... and it'll crash. Because --single-process is currently broken for 0.18.1 to 0.18.3...
B
70
S
24
G
19
Posts: 1,757
Reputation: 17,614

Post » Sat Oct 29, 2016 11:50 am

Silverforce wrote:
Lof wrote:I just installed C2 r239 and NWjs 0.18.1, added the "--single-process" to the argument list in the package.json file, and I still can't see my game in OBS, neither in game-mode or window-mode, am I missing something else?


Do it for the package-win.json... and it'll crash. Because --single-process is currently broken for 0.18.1 to 0.18.3...


Sorry I meant the "--in-process-gpu" arg.
Image
B
78
S
28
G
12
Posts: 515
Reputation: 12,459

Post » Sat Oct 29, 2016 6:41 pm

BackendFreak wrote:Alright. I tried with --single-process and the game won't even run.
...

It's a known bug, I've already reported it and they've confirmed a fix in some of the future NWjs updates (probably v0.19.0)
I hope all of our worries about weird glitches using Steam + NWjs will be fixed, once we can make use of the single processing function.

As always, we have to be a little patient and everything will be fine. :roll:

EDIT:
Sorry I missed that Silverforce already told you that, whoops.
ImageImageImage
B
63
S
23
G
78
Posts: 658
Reputation: 44,929

Post » Sat Oct 29, 2016 10:43 pm

We ought to have this thread stickied (at least until the worst 0.18.x f**kups are fixed)
B
77
S
28
G
32
Posts: 481
Reputation: 19,763

Post » Sun Oct 30, 2016 6:00 am

So a solution was found or still working on one?
Check out my awesome Android Game releases https://play.google.com/store/apps/deve ... ames&hl=en
B
38
S
18
G
24
Posts: 681
Reputation: 16,613

PreviousNext

Return to Construct 2 General

Who is online

Users browsing this forum: Yahoo [Bot] and 8 guests