Main loop reset! Stage: waitForUsers


  • Dev Team

    What is the server version?



  • It's a steam server. The version file says v2.0.0.

    Additionally, this time I got the following error in engine_runner:

    Source Keeper error SyntaxError: Unexpected token u in JSON at position 0
        at JSON.parse (<anonymous>)
        at global._init.global._start (<isolated-vm>:16114:45)
        at (<isolated-vm boundary>)
        at make (C:\Program Files (x86)\Steam\steamapps\common\Screeps\server\package\node_modules\@screeps\driver\lib\runtime\make.js:180:34)
    

  • Dev Team

    The server version is displayed on the main launcher page when you start the server, version file is unrelated.

    Also, please find C:\Program Files (x86)\Steam\steamapps\common\Screeps\server\package\node_modules\isolated-vm\package.json and copy-paste its contents here.



  • Ah ok. Server version is 3.0.0.

    node_modules\isolated-vm\package.json:

    {
      "name": "isolated-vm",
      "version": "1.5.2",
      "description": "Access to multiple isolates",
      "main": "isolated-vm.js",
      "types": "isolated-vm.d.ts",
      "scripts": {
        "install": "node-gyp rebuild --release -j 4",
        "lint": "find src -name '*.cc' | xargs -n1 ./clang-tidy-wrapper",
        "test": "node test.js || nodejs test.js"
      },
      "repository": {
        "type": "git",
        "url": "git+https://github.com/laverdet/isolated-vm.git"
      },
      "author": "https://github.com/laverdet/",
      "license": "ISC",
      "gypfile": true,
      "bugs": {
        "url": "https://github.com/laverdet/isolated-vm/issues"
      },
      "homepage": "https://github.com/laverdet/isolated-vm#readme",
      "dependencies": {
        "electron": "^1.8.4",
        "electron-rebuild": "^1.7.3"
      }
    }
    


  • Have you guys found a solution yet? I am having the same problem on a raspberry Pi.

    I can connect to the Server but cant run any code in the console.

    Would be nice if we get this working



  • @skrat17 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.



  • I am still getting this issue with the steam version.



  • Has anyone fixed this yet? I still get it about every half hour and have to restart the server every time.



  • @unforeseen Could you tell how you downgraded node js to 8.11.3? And is this possible with steam client? Thanks



  • still get this error

    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
    ...
    

    node.dll version is 8.9.3.0 cant find 8.11.3