Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extension not allowing proper engine shutdown on Windows 7 #3

Open
subsoap opened this issue Feb 25, 2019 · 16 comments
Open

Extension not allowing proper engine shutdown on Windows 7 #3

subsoap opened this issue Feb 25, 2019 · 16 comments

Comments

@subsoap
Copy link
Owner

subsoap commented Feb 25, 2019

We have Win7 users reporting our game is not shutting down properly when it closes, apparently it is discordrich extension that is causing it?

Ok, we managed to find a Win7 VM to install steam and try on.
And we could reproduce the same behavior.

By checking the option “non intrusive” (or something), we managed WinDbg to attach to the process, and this is the callstack we got.

So, next I tried bundling without the discord extension, and then the executable shut down as it should.

Regarding the callstack, we also found this hotfix which seem to describe the problem:

https://support.microsoft.com/en-us/help/2582203/a-process-that-is-being-terminated-stops-responding-in-windows-7-or-in

screen shot 2019-02-25 at 10 15 07

@dapetcu21
Copy link
Collaborator

Huh... I think we should report this upstream to discordapp/discord-rpc? @subsoap can you do it, since you seem to have more details about the issue?

@dapetcu21
Copy link
Collaborator

Does this still happen on Windows 7 with all Windows updates to-date? This looks like a Windows bug. I'd be suprised if they released a hotfix, but didn't fix it in a subsequent update.

@subsoap
Copy link
Owner Author

subsoap commented Feb 25, 2019

We have had 3 Windows 7 users report this issue to us so far. I'll ask one of them if they are fully updated.

Also Defold team checked this out and they were able to reproduce it on a Win7 VM which probably was up to date.

@subsoap
Copy link
Owner Author

subsoap commented Feb 26, 2019

I wonder if detecting Win7 and not allowing presence to run would be good enough until it can be fixed, because letting exe run still after user closes it is really bad.

@dapetcu21
Copy link
Collaborator

I'll investigate the issue starting Thursday when I get into office

@subsoap
Copy link
Owner Author

subsoap commented Feb 27, 2019

I tested having Win7 users run a build with and without a manual discordrich.shutdown() but didn't have an impact (fully closing was still inconsistent).

@subsoap
Copy link
Owner Author

subsoap commented Feb 27, 2019

A user reported game is closing now properly. Only change that maybe matters is that the Game Analytics extension was modified, not sure what else could have an impact.

Probably should try to get a hold of a Win7 VM ourselves to test on...

@subsoap
Copy link
Owner Author

subsoap commented Mar 2, 2019

Still getting more user reports about this, all Win7.

@subsoap
Copy link
Owner Author

subsoap commented Mar 4, 2019

More reports all Win7, no other OS.

@dapetcu21
Copy link
Collaborator

Huh... One of our colleagues has Win7 at home and doesn’t have the issue. Maybe software updates are the fix? Still didn’t get the proper time for this

@subsoap
Copy link
Owner Author

subsoap commented Mar 4, 2019

It is inconsistent not every time so they will need to open/close a bunch of times to see it. I sent you some extra Steam keys could you pass one of them to that Win7 user and have open close a bunch and watch processes?

@subsoap
Copy link
Owner Author

subsoap commented Apr 3, 2019

Got an idea on how to short circuit Win7 installs running this without it being messy?

@subsoap
Copy link
Owner Author

subsoap commented Apr 6, 2019

adc2721

Here is branch with Win7 short circuit but not sure if it's the best way. Should the value of IsWin7() be stored so it can be referenced multiple times instead of calling GetVersion() over and over again? GetVersion() is depreciated but I think it will still work for detecting Win7.

@subsoap
Copy link
Owner Author

subsoap commented Apr 7, 2019

Optimized version check and made it work on non-windows OS better

@subsoap
Copy link
Owner Author

subsoap commented Apr 8, 2019

Seems like issue is still not solved on Win7 computers, but it's not as bad. Might be another extension now at fault so will have to test and see...

@subsoap
Copy link
Owner Author

subsoap commented Apr 9, 2019

Yep most likely other issue is due to another extension GameAnalytics GameAnalytics/GA-SDK-DEFOLD#11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants