ID:1972238
 
BYOND Version:509 (please use Other... and specify minor build)
Operating System:Windows 10 Pro
Web Browser:Chrome 43.0.2357.124
Applies to:Dream Daemon
Status: Open

Issue hasn't been assigned a status value.
Descriptive Problem Summary:
When hosting a game that was built in 509.1310 the server crashs on reboots and restarts

Numbered Steps to Reproduce Problem:
Restart a server
Dream Daemon stops working

Code Snippet (if applicable) to Reproduce Problem:



Does the problem occur:
Every time? Or how often?
Everytime
In other games?
I have only tested that on Pyrce high and SS13 and both of them did the same thing when restarting/rebooting the server
On other computers?
Yes... Yesterday my friend was hosting a game and it had the same proplem

When does the problem NOT occur?
On stable builds

Workarounds: 509.1310 and 509.1309

Try building in an earlier version, like 1304. I found a nasty bug in DM 1310 the other night. If it still crashes I'll need more info, like where the crash occurs.
So i runned few tests and i found that all builds after Build 509.1307 almost have the same proplem

From Build 509.1308 to Build 509.1310
The proplem happens at randome times while the webcilent is on
and yes , randome times... it might stop working and might not stop working

Code that was used in Pyrce :
Reboot_Server()
set category = "GM"
var/pp=ShowAlert(usr,"Do you really want to reboot?",list("Yes","No"))
if(pp=="Yes")
world << "[usr.key] is rebooting the server."
world.Reboot()


Code that was used for SS13 :
/datum/controller/gameticker/proc/process()
if(current_state != GAME_STATE_PLAYING)
return 0

mode.process()

emergency_shuttle.process()

if(!mode.explosion_in_progress && mode.check_finished())
current_state = GAME_STATE_FINISHED
auto_toggle_ooc(1) // Turn it on
spawn
declare_completion()

spawn(50)
if (mode.station_was_nuked)
feedback_set_details("end_proper","nuke")
if(!delay_end)
world << "\blue <B>Rebooting due to destruction of station in [restart_timeout/10] seconds</B>"
else
feedback_set_details("end_proper","proper completion")
if(!delay_end)
world << "\blue <B>Restarting in [restart_timeout/10] seconds</B>"


if(blackbox)
blackbox.save_all_data_to_sql()

if(!delay_end)
sleep(restart_timeout)
kick_clients_in_lobby("\red The round came to an end with you in the lobby.", 1) //second parameter ensures only afk clients are kicked
world.Reboot()
else
world << "\blue <B>An admin has delayed the round end</B>"


And i runned a test on Stable verisons and nothing wrong showed up
And i was watching the CPU of both games and SS13 was 3-40% and Pyrce was 0-1% all the time so i do't see it could be a proplem in the CPU
So the webcilent might be the main proplem here i think..
Again, can you provide info about where it's crashing? 509.1310 would be the best choice for this since it's the most recent, but what I need is a module and offset where the crash occurred. That info should be in your Windows event log.
I can't provide any info since windows 10 dosn't have Event logs
but will run a test on 509.1310 and see how everything will go again.
Same thing happened but i discovred something intersting
Rebooting from the dream daemon (ctrl+R) dosn't stop the server and restarts it very normal and fresh.
will try finding a event log software or something like that and give you logs around it anyways.
I am unable to get this to happen with /tg/station13's code on windows 7.

On both 1310 and 1311.
Seems like it is something that only happens on windows 10?
In response to Maxsteel13
Maxsteel13 wrote:
Seems like it is something that only happens on windows 10?

Yep...Windows 10 proplem
Windows 10 does have the event viewer, so you should be able to get logs from that. I need that info to proceed. If you can get that info on the very latest beta (509.1311), even better.