<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Main loop reset! Stage: waitForUsers]]></title><description><![CDATA[<p>Since the recent updates I have been having serious issues with my private server. It runs for a little while (maybe a couple of thousand ticks), and then everything stops and the engine_main console keeps printing <code>Main loop reset! Stage: waitforUsers</code>.</p>
<p>Restarting the server fixes it, but it's not too long before it happens again.</p>
<p>I've seen this mentioned in relation to bots, but I have no bots running on this server - it's literally just one player.</p>
<p>As an aside, is this the right place to put issues with the private server or should I put them in the Technical Issues and Bugs forum? Or open a github issue?</p>
<p>Thanks.</p>
]]></description><link>http://screeps.com/forum/topic/2242/main-loop-reset-stage-waitforusers</link><generator>RSS for Node</generator><lastBuildDate>Wed, 09 Sep 2026 15:59:33 GMT</lastBuildDate><atom:link href="http://screeps.com/forum/topic/2242.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 27 May 2018 23:58:34 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Main loop reset! Stage: waitForUsers on Invalid Date]]></title><description><![CDATA[<p>Since the recent updates I have been having serious issues with my private server. It runs for a little while (maybe a couple of thousand ticks), and then everything stops and the engine_main console keeps printing <code>Main loop reset! Stage: waitforUsers</code>.</p>
<p>Restarting the server fixes it, but it's not too long before it happens again.</p>
<p>I've seen this mentioned in relation to bots, but I have no bots running on this server - it's literally just one player.</p>
<p>As an aside, is this the right place to put issues with the private server or should I put them in the Technical Issues and Bugs forum? Or open a github issue?</p>
<p>Thanks.</p>
]]></description><link>http://screeps.com/forum/post/10657</link><guid isPermaLink="true">http://screeps.com/forum/post/10657</guid><dc:creator><![CDATA[SystemParadox]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Main loop reset! Stage: waitForUsers on Invalid Date]]></title><description><![CDATA[<p>Are there any errors in the <code>logs/engine_runner.log</code> file?</p>
]]></description><link>http://screeps.com/forum/post/10663</link><guid isPermaLink="true">http://screeps.com/forum/post/10663</guid><dc:creator><![CDATA[artch]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Main loop reset! Stage: waitForUsers on Invalid Date]]></title><description><![CDATA[<p><code>engine_runner.log</code>:</p>
<pre><code>isolated-vm timeout 3
Source Keeper error Script execution timed out ungracefully, restarting virtual machine
isolated-vm timeout 3
isolated-vm timeout 3
isolated-vm timeout 3
Source Keeper error Script execution timed out ungracefully, restarting virtual machine
Source Keeper error Script execution timed out ungracefully, restarting virtual machine
Source Keeper error Script execution timed out ungracefully, restarting virtual machine
isolated-vm timeout 3
isolated-vm timeout 3
isolated-vm timeout 3
isolated-vm timeout 3
Source Keeper error Script execution timed out ungracefully, restarting virtual machine
Source Keeper error Script execution timed out ungracefully, restarting virtual machine
Source Keeper error Script execution timed out ungracefully, restarting virtual machine
Source Keeper error Script execution timed out ungracefully, restarting virtual machine
isolated-vm timeout d829bbeb50ab6ca
</code></pre>
<p><code>backend.log</code> also contains several of these, though I don't think this is related as it seems to carry on anyway:</p>
<pre><code>Unhandled rejection: Error: Can't set headers after they are sent.
    at validateHeader (_http_outgoing.js:494:11)
    at ServerResponse.setHeader (_http_outgoing.js:501:3)
    at ServerResponse.header (C:\Program Files (x86)\Steam\steamapps\common\Screeps\server\package\node_modules\express\lib\response.js:719:10)
    at ServerResponse.send (C:\Program Files (x86)\Steam\steamapps\common\Screeps\server\package\node_modules\express\lib\response.js:164:12)
    at ServerResponse.json (C:\Program Files (x86)\Steam\steamapps\common\Screeps\server\package\node_modules\express\lib\response.js:250:15)
    at C:\Program Files (x86)\Steam\steamapps\common\Screeps\server\package\node_modules\q-json-response\q-json-response.js:17:14
    at _rejected (C:\Program Files (x86)\Steam\steamapps\common\Screeps\server\package\node_modules\q\q.js:844:24)
    at C:\Program Files (x86)\Steam\steamapps\common\Screeps\server\package\node_modules\q\q.js:870:30
    at Promise.when (C:\Program Files (x86)\Steam\steamapps\common\Screeps\server\package\node_modules\q\q.js:1122:31)
    at Promise.promise.promiseDispatch (C:\Program Files (x86)\Steam\steamapps\common\Screeps\server\package\node_modules\q\q.js:788:41)
</code></pre>
<p>Thanks.</p>
]]></description><link>http://screeps.com/forum/post/10664</link><guid isPermaLink="true">http://screeps.com/forum/post/10664</guid><dc:creator><![CDATA[SystemParadox]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Main loop reset! Stage: waitForUsers on Mon, 28 May 2018 11:11:49 GMT]]></title><description><![CDATA[<p>What is the server version?</p>
]]></description><link>http://screeps.com/forum/post/10665</link><guid isPermaLink="true">http://screeps.com/forum/post/10665</guid><dc:creator><![CDATA[artch]]></dc:creator><pubDate>Mon, 28 May 2018 11:11:49 GMT</pubDate></item><item><title><![CDATA[Reply to Main loop reset! Stage: waitForUsers on Mon, 28 May 2018 11:08:42 GMT]]></title><description><![CDATA[<p>It's a steam server. The <code>version</code> file says <code>v2.0.0</code>.</p>
<p>Additionally, this time I got the following error in <code>engine_runner</code>:</p>
<pre><code>Source Keeper error SyntaxError: Unexpected token u in JSON at position 0
    at JSON.parse (&lt;anonymous&gt;)
    at global._init.global._start (&lt;isolated-vm&gt;:16114:45)
    at (&lt;isolated-vm boundary&gt;)
    at make (C:\Program Files (x86)\Steam\steamapps\common\Screeps\server\package\node_modules\@screeps\driver\lib\runtime\make.js:180:34)
</code></pre>
]]></description><link>http://screeps.com/forum/post/10666</link><guid isPermaLink="true">http://screeps.com/forum/post/10666</guid><dc:creator><![CDATA[SystemParadox]]></dc:creator><pubDate>Mon, 28 May 2018 11:08:42 GMT</pubDate></item><item><title><![CDATA[Reply to Main loop reset! Stage: waitForUsers on Invalid Date]]></title><description><![CDATA[<p>The server version is displayed on the main launcher page when you start the server, <code>version</code> file is unrelated.</p>
<p>Also, please find <code>C:\Program Files (x86)\Steam\steamapps\common\Screeps\server\package\node_modules\isolated-vm\package.json</code> and copy-paste its contents here.</p>
]]></description><link>http://screeps.com/forum/post/10668</link><guid isPermaLink="true">http://screeps.com/forum/post/10668</guid><dc:creator><![CDATA[artch]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Main loop reset! Stage: waitForUsers on Invalid Date]]></title><description><![CDATA[<p>Ah ok. Server version is 3.0.0.</p>
<p><code>node_modules\isolated-vm\package.json</code>:</p>
<pre><code>{
  &quot;name&quot;: &quot;isolated-vm&quot;,
  &quot;version&quot;: &quot;1.5.2&quot;,
  &quot;description&quot;: &quot;Access to multiple isolates&quot;,
  &quot;main&quot;: &quot;isolated-vm.js&quot;,
  &quot;types&quot;: &quot;isolated-vm.d.ts&quot;,
  &quot;scripts&quot;: {
    &quot;install&quot;: &quot;node-gyp rebuild --release -j 4&quot;,
    &quot;lint&quot;: &quot;find src -name '*.cc' | xargs -n1 ./clang-tidy-wrapper&quot;,
    &quot;test&quot;: &quot;node test.js || nodejs test.js&quot;
  },
  &quot;repository&quot;: {
    &quot;type&quot;: &quot;git&quot;,
    &quot;url&quot;: &quot;git+https://github.com/laverdet/isolated-vm.git&quot;
  },
  &quot;author&quot;: &quot;https://github.com/laverdet/&quot;,
  &quot;license&quot;: &quot;ISC&quot;,
  &quot;gypfile&quot;: true,
  &quot;bugs&quot;: {
    &quot;url&quot;: &quot;https://github.com/laverdet/isolated-vm/issues&quot;
  },
  &quot;homepage&quot;: &quot;https://github.com/laverdet/isolated-vm#readme&quot;,
  &quot;dependencies&quot;: {
    &quot;electron&quot;: &quot;^1.8.4&quot;,
    &quot;electron-rebuild&quot;: &quot;^1.7.3&quot;
  }
}
</code></pre>
]]></description><link>http://screeps.com/forum/post/10669</link><guid isPermaLink="true">http://screeps.com/forum/post/10669</guid><dc:creator><![CDATA[SystemParadox]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Main loop reset! Stage: waitForUsers on Invalid Date]]></title><description><![CDATA[<p>Have you guys found a solution yet?
I am having the same problem on a raspberry Pi.</p>
<p>I can connect to the Server but cant run any code in the console.</p>
<p>Would be nice if we get this working</p>
]]></description><link>http://screeps.com/forum/post/10728</link><guid isPermaLink="true">http://screeps.com/forum/post/10728</guid><dc:creator><![CDATA[skrat17]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Main loop reset! Stage: waitForUsers on Invalid Date]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="http://screeps.com/forum/uid/2202">@skrat17</a> I got a Main Loop Reset, but without the other errors, although I get the same error in backend.log. I downgraded node to 8.11.3 and this problem went away.</p>
]]></description><link>http://screeps.com/forum/post/10757</link><guid isPermaLink="true">http://screeps.com/forum/post/10757</guid><dc:creator><![CDATA[Unforeseen]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Main loop reset! Stage: waitForUsers on Invalid Date]]></title><description><![CDATA[<p>I am still getting this issue with the steam version.</p>
]]></description><link>http://screeps.com/forum/post/10790</link><guid isPermaLink="true">http://screeps.com/forum/post/10790</guid><dc:creator><![CDATA[SystemParadox]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Main loop reset! Stage: waitForUsers on Invalid Date]]></title><description><![CDATA[<p>Has anyone fixed this yet? I still get it about every half hour and have to restart the server every time.</p>
]]></description><link>http://screeps.com/forum/post/11325</link><guid isPermaLink="true">http://screeps.com/forum/post/11325</guid><dc:creator><![CDATA[Joe1275]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Main loop reset! Stage: waitForUsers on Invalid Date]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="http://screeps.com/forum/uid/2275">@unforeseen</a> Could you tell how you downgraded node js to 8.11.3? And is this possible with steam client? Thanks</p>
]]></description><link>http://screeps.com/forum/post/12385</link><guid isPermaLink="true">http://screeps.com/forum/post/12385</guid><dc:creator><![CDATA[U-238]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Main loop reset! Stage: waitForUsers on Fri, 25 Oct 2019 19:05:02 GMT]]></title><description><![CDATA[<p>still get this error</p>
<pre>
Main loop reset! Stage: waitForUsers
Game time set to 6
Main loop reset! Stage: waitForUsers
Game time set to 7
Main loop reset! Stage: waitForUsers
Game time set to 8
...
</pre>
<p>node.dll version is 8.9.3.0
cant find 8.11.3</p>
]]></description><link>http://screeps.com/forum/post/14369</link><guid isPermaLink="true">http://screeps.com/forum/post/14369</guid><dc:creator><![CDATA[iam1]]></dc:creator><pubDate>Fri, 25 Oct 2019 19:05:02 GMT</pubDate></item><item><title><![CDATA[Reply to Main loop reset! Stage: waitForUsers on Invalid Date]]></title><description><![CDATA[<p>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.</p>
<p>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 &quot;Main loop reset! Stage: waitForUsers&quot; 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 &quot;Electron Helper.&quot; 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.</p>
<p>At this point, my only option is to quit the server from the File-&gt;Quit menu, but that doesn't actually cause the CPU usage to go down. There is now an orphaned process called &quot;Electron Helper&quot; that must be forced killed. It appears to have been spawned by the server, but it doesn't exit when the server exits.</p>
<p>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.</p>
<p>I may try setting my global node version to something different to see if that helps.</p>
]]></description><link>http://screeps.com/forum/post/14664</link><guid isPermaLink="true">http://screeps.com/forum/post/14664</guid><dc:creator><![CDATA[idarwin]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Main loop reset! Stage: waitForUsers on Invalid Date]]></title><description><![CDATA[<p>I fixed this by completely deleting all files from the screeps game directory and then validating the game. This effectively creates a fresh install.</p>
<p>I had this on two computers..</p>
]]></description><link>http://screeps.com/forum/post/14665</link><guid isPermaLink="true">http://screeps.com/forum/post/14665</guid><dc:creator><![CDATA[Jerdaz]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Main loop reset! Stage: waitForUsers on Invalid Date]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="http://screeps.com/forum/uid/2135">@jerdaz</a> 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.</p>
]]></description><link>http://screeps.com/forum/post/14668</link><guid isPermaLink="true">http://screeps.com/forum/post/14668</guid><dc:creator><![CDATA[idarwin]]></dc:creator><pubDate>Invalid Date</pubDate></item></channel></rss>