koptelovav / gritsgame

Automatically exported from code.google.com/p/gritsgame
Other
0 stars 1 forks source link

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

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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 fredsa@google.com on 6 Feb 2013 at 11:49

GoogleCodeExporter commented 9 years ago
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 col...@google.com on 9 Apr 2013 at 6:23

GoogleCodeExporter commented 9 years ago
Did you 'git push'?

Original comment by fredsa@google.com on 9 Apr 2013 at 6:27