YoYoGames / GDKExtension

GMS2 Extension for GDK
Other
20 stars 9 forks source link

GDK Extension doesn't seem to handle the suspend/resume events properly #79

Closed nkrapivin closed 1 week ago

nkrapivin commented 1 month ago
Technical requirement policies
10.2.4.2 Security - Software Dependencies
Issue 1 of 1 - ION

Description:
The title crashes to the Windows desktop when the Device enters Sleep Mode.

Reproduction Steps:
1. Sign into an Xbox profile and launch the title.
2. From the main menu, Press the Windows key > right click the 'Power' icon and select 'Sleep' to put the device into ‘Sleep’ mode.
3. Resume from ‘Sleep’ mode.
4. Observe that the title has crashed to the Windows desktop.

Expected Behavior:
The title must remain stable at all times.

Frequency:
PC 1: 5/5
PC 2: 5/5

Gamertags:
[//redacted for privacy//]

External Notes:
1. This issue also occurs after idling until the device enters 'Sleep' mode naturally.
2. This issue occurs when entering ‘Sleep’ mode from any area of the title.
nkrapivin commented 1 month ago

Related sample code: https://github.com/microsoft/Xbox-GDK-Samples/blob/main/Samples/Live/Achievements/Main.cpp#L360 Apparently GDK Desktop apps should handle those power broadcast HWND messages.

DiasFranciscoA commented 1 week ago

The problem might not be in the extension but in the runner instead.. 🤔 This seems to be something that needs to be handle by the window itself, which is not managed by the extension but by the actual runner.

On other note @nkrapivin we were unable to reproduce this issue... are you able to reproduce this using the simple demo project? Or is this in the context of a game, cus the demo doesn't seem to crash we probably need more details on the repro steps.

DiasFranciscoA commented 1 week ago

Waiting more details (please reopen issue)