gritsgame icon indicating copy to clipboard operation
gritsgame copied to clipboard

game server stops responding due to: Cannot read property 'displayName' of undefined

Open GoogleCodeExporter opened this issue 9 years ago • 2 comments

Found this in the logs (/var/log/google.log) while running 
4462f1dd8d87f957d3681e04f4a2c1a01c4363b3

timers.js:96
            if (!process.listeners('uncaughtException').length) throw e;
                                                                      ^
TypeError: Cannot read property 'displayName' of undefined
    at [object Object].dealDmg (../shared/core/GameEngine.js:394:73)
    at [object Object].onTouch (../shared/weaponinstances/LandmineDisk.js:83:15)
    at [object Object].onCollisionTouch (../shared/core/GameEngine.js:155:20)
    at Object.PostSolve (../shared/core/GameEngine.js:121:16)
    at b2ContactListener.PostSolve (../shared/core/PhysicsEngine.js:68:17)
    at b2Island.Report (../shared/core/box2D.js:5673:26)
    at b2Island.SolveTOI (../shared/core/box2D.js:5660:12)
    at b2World.SolveTOI (../shared/core/box2D.js:6449:17)
    at b2World.Step (../shared/core/box2D.js:5978:15)
    at [object Object].update (../shared/core/PhysicsEngine.js:75:16)


One this happened, requests were no longer being handled.

We need to make the games server more robust.

Original issue reported on code.google.com by [email protected] on 6 Feb 2013 at 11:49

GoogleCodeExporter avatar Mar 17 '15 22:03 GoogleCodeExporter

This should be fixed. A user could drop a land-mine and then exit the game, 
invalidating the pointer to their player object.

Original comment by [email protected] on 9 Apr 2013 at 6:23

GoogleCodeExporter avatar Mar 17 '15 22:03 GoogleCodeExporter

Did you 'git push'?

Original comment by [email protected] on 9 Apr 2013 at 6:27

GoogleCodeExporter avatar Mar 17 '15 22:03 GoogleCodeExporter