@jerdaz Unfortunately this didn't do much, as this was fresh/clean install. I tired this on a completely different windows-based computer and observed the same stalling behavior, so it doesn't seem to be related to my particular macOS setup.
Posts made by idarwin
-
RE: Main loop reset! Stage: waitForUsers
-
RE: Main loop reset! Stage: waitForUsers
I know this is an ancient thread, however I am running into this problem on a fresh install of Screeps on MacOS. After about 15-20 minutes, the local private server is useless and requires a manual force-quit/kill from the OS to terminate.
The first indication that something is wrong is on the client after about 15 minutes, the client will start to stutter, and I see the message "Main loop reset! Stage: waitForUsers" in the server console - engine_main log. It's at this point that I notice an uptick in CPU usage, which started around 50%, system-wide. CPU will go up by about 10-15% on every time I see a reset error messge. The process responsible is called "Electron Helper." After about 10 minutes, and 4-5 more times of seeing the error message, the CPU is now burning at 100%, the client has completely stop moving (but is still rendering at 60-70fps), and every single tick results in a main loop reset error.
At this point, my only option is to quit the server from the File->Quit menu, but that doesn't actually cause the CPU usage to go down. There is now an orphaned process called "Electron Helper" that must be forced killed. It appears to have been spawned by the server, but it doesn't exit when the server exits.
Some potentially pertinent information about my particular macOS setup: I am running Catalina 10.15.2. I have many versions of Nodejs installed, and manage them with NVM as part of my daily work. My default linked version of Nodejs is v12.4.0. I am running a fresh install of Screeps server version v4.0.5 from Steam, and I have not modified it any way. I'm not sure if Screeps will use my system's version of Nodejs or a packaged version, if there is one.
I may try setting my global node version to something different to see if that helps.