hundreds of errors in /opt/engine/dist/core/path-finder.js


  • SUN

    I have about 630 notifications with the below exception last night, starting at 1.50AM GMT+2 untill 3.14AM GMT+2. Granted the above looks like it could be a creep lifetime, and can be caused by my code. But it looks like the limit on notifications prevents reaching the applicaiton code here 😞 and letting the game error handling it means you have to let any exception break your game code which is dissuasive.

    Is there a way to see what are the lines from https://github.com/screeps that we're talking about here ?

    [Priority 1] TypeError: Cannot read property 'x' of undefined
        at toWorldPosition (/opt/engine/dist/core/path-finder.js:34:16)
        at /opt/engine/dist/core/path-finder.js:104:22
        at arrayMap (/opt/engine/dist/core/node_modules/lodash/index.js:1406:25)
        at Function.map (/opt/engine/dist/core/node_modules/lodash/index.js:6710:14)
        at Object.exports.search (/opt/engine/dist/core/path-finder.js:94:19)
        at Object. (/opt/engine/dist/game/path-finder.js:54:38)
        at Object.se
    
    

  • SUN

    found the faulty calling site ... was calling PathFinder.search ([pos: undefined, range: x])