Opened 11 years ago
Closed 10 years ago
#2146 closed defect (fixed)
Crash (assertion) after sleep mode
Reported by: | AntonBazhal | Owned by: | |
---|---|---|---|
Priority: | Should Have | Milestone: | Alpha 17 |
Component: | Core engine | Keywords: | |
Cc: | Patch: |
Description
Steps to reproduce the bug:
- Pause the game
- Go to sleep mode
- Wake up
Assertion failed: "status == DISP_CHANGE_SUCCESSFUL" Location: wsdl.cpp:436 (SDL_SetVideoMode) Call stack: 00CEA2D5 00CEE099 00BC3AF7 00BC4457 00BC5875 00CEA340 00CED2F3 00CED9AF 00CEDC30 00CEDC68 00B21D99 00B22595 00B23055 00B230D5 00CE9995 00CE988F errno = 13 (Insufficient access rights to open file) OS error = 0 (no error code was set)
Change History (4)
comment:1 by , 10 years ago
comment:2 by , 10 years ago
Also, note that pressing Continue to close the error window is a sufficient workaround.
Next time I'm testing SDL 2.0 on Windows, I will try reproducing this.
comment:4 by , 10 years ago
Milestone: | Backlog → Alpha 17 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
SDL2 fixes this and is now the default on Windows as of r15786.
Note:
See TracTickets
for help on using tickets.
This is reproducible for me on Win 7/64-bit with the game running fullscreen in a debugger; after putting the system to sleep and resuming, the game will have this error. The call stack is misleading, because the first failure occurs in WSDL's
OnActivate
handler, but then it tries to display an error message about that, which in turn attempts to change from fullscreen to windowed mode, causing a different error.Here are the relevant parts:
The return code in both cases is
DISP_CHANGE_BADPARAM
, MSDN has the following to say about it:I don't see how the parameters could be invalid, maybe the call itself isn't allowed. It could be related to #1196/#1733, as Windows resumes at the login screen, but the return code is different.