ID:899967
 
Resolved
Returning from a lock or Ctrl+Alt+Del didn't reset the map control properly in some cases and could cause DS to hang for an indeterminate period.
BYOND Version:497
Operating System:Windows 7 Home Premium 64-bit
Web Browser:Firefox 14.0.1
Applies to:Dream Seeker
Status: Resolved (497.1147)

This issue has been resolved.
Descriptive Problem Summary:

When I lock my computer to step away from it briefly, and then unlock it when I return, I find that Dream Seeker no longer displays anything when I restore focus to the window. I usually keep it maximized. I have DirectX 9/10/11 installed (yes, I downloaded and installed DirectX 9 for this computer) and found that unchecking the hardware rendering stops this problem, but results in much laggier gameplay. Also, when I open a non-BYOND game in a separate window - it opens full-screen and I make it windowed afterward - the same thing happens to Dream Seeker. I suspect it's a problem with resolution changing.

Numbered Steps to Reproduce Problem:

1. Open any game in Dream Seeker with hardware rendering on. (recommended: minimize Dream Seeker)
2. Lock computer.
3. Unlock computer.
4. Dream Seeker will no longer display anything.

Code Snippet (if applicable) to Reproduce Problem:


Expected Results:

Actual Results:

Does the problem occur:
Every time? Or how often?
Every time hardware rendering is on and the computer is locked.
In other games?
All BYOND games.
In other user accounts?
On other computers?

When does the problem NOT occur?

When hardware rendering is off.

Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? (Visit http://www.byond.com/download/build to download old versions for testing.)

It seemed to not occur a few versions back...don't remember exactly which version, though...

Workarounds:

Uncheck hardware rendering before locking or close and reopen the game in Dream Seeker. Both are not satisfactory workarounds.
It happens to me too, I usually just relog.
Probably related to this bug:
http://www.byond.com/forum/?post=748996
Yes, this seems very likely related to the older bug. What I don't understand is why the fix would introduce a problem on this system but not on others. The old behavior was very definitely wrong, but the updated code should be detecting the problem and reinitializing the output correctly.

Ryuujin, it would help a great deal if you can isolate which version this last worked in, and confirm that 497 indeed has the problem you're describing and you weren't running an older build. If all that checks out, I can try to work with you to figure out what's going wrong. It could be something as simple as your video card behaving very differently from mine in this regard and not sending the right error code to the DirectX drivers.
Aha, I found the problem. Odd that it didn't come up in prior tests, but I started having it now.
Lummox JR resolved issue with message:
Returning from a lock or Ctrl+Alt+Del didn't reset the map control properly in some cases and could cause DS to hang for an indeterminate period.
Descriptive Problem Summary:
When I hit WindowsKey+L to lock my machine and then log back in, the BYOND map gets corrupted. I have one game where the map will repaint it self if you mess with it by dragging it off screen or resizing it. I have another game where the map won't repaint no matter what. The one that doesn't repaint has no interface controls. I can't seem to click on anything either.

Numbered Steps to Reproduce Problem:
1. Launch HexGame
2. Lock your machine
3. unlock your machine

Expected Results:
Game should look fine.

Actual Results:
Map in game shows background of desktop or other applications behind the game.

Does the problem occur:
Problem occurs every time I lock my machine for any game. I don't normally lock my machine but I think this is a new(er) problem because I would have run into it before. I remember having some artifact problems a long while ago but it was a different scenario with windows overlapping the map. I have a different video card now to.

When does the problem NOT occur?
No other application has the problem but no other application is rendering a game either.

Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? (Visit http://www.byond.com/download/build to download old versions for testing.)

Workarounds:
Don't lock machine. Even with game minimized to taskbar, it still gets corrupted when I lock/unlock.
In response to PopLava
Verified in 496, but it works fine for me in 497:
http://www.byond.com/forum/?post=748996

Running Windows 7 Pro 64bit.
In response to PopLava
Where do we get the latest BYOND version now anyway?
In response to PopLava
http://www.byond.com/download/
'BYOND: client/server/compiler (beta)'
You could also look through the build directory.
http://www.byond.com/download/build/
In response to PopLava
Thanks for the pointer. Confirmed fixed in 497.