bugpokersource - Bugs: bug #14456, Traceback with poker-network 2.0...

 
 
Show feedback again

You are not allowed to post comments on this tracker with your current authentification level.

bug #14456: Traceback with poker-network 2.0 and proxy

Submitted by:  Johan Euphrosine <proppy>
Submitted on:  Tue 06 Oct 2009 04:52:22 PM UTC  
 
Category: poker-networkSeverity: 3 - Normal
Priority: 1 - LaterStatus: Need Info
Privacy: PublicAssigned to: None
Open/Closed: Open

(Jump to the original submission Jump to the original submission)

Tue 23 Feb 2010 05:55:58 PM UTC, comment #7:

Please confirm this still happen with latest version of poker-network 2.0.

Johan Euphrosine <proppy>
Project Member
Mon 19 Oct 2009 07:26:18 PM UTC, comment #6:

Bug also happen without proxy, hence the following Traceback:
2009-10-19 18:19:55+0000 [HTTPChannel,41,127.0.0.1] PokerAvatar: handlePacketDefer(114): POKER_LONG_POLL type = 167 length = 3
2009-10-19 18:20:11+0000 [-] PokerAvatar: connection lost for proppy/114
2009-10-19 18:20:11+0000 [-] [Server][PokerGame 45] removing player 114 from game
2009-10-19 18:20:11+0000 [-] PokerAvatar: sendPacket(114): type = POKER_PLAYER_LEAVE(81) serial = 114 game_id = 45 seat = 2
2009-10-19 18:20:11+0000 [-] [114]PokerExplain:explain: type = POKER_PLAYER_LEAVE(81) serial = 114 game_id = 45 seat = 2
2009-10-19 18:20:11+0000 [-] [114][PokerGame 45] removing player 114 from game
2009-10-19 18:20:11+0000 [-] PokerTable: broadcast[] type = POKER_PLAYER_LEAVE(81) serial = 114 game_id = 45 seat = 2
2009-10-19 18:20:11+0000 [-] [114]PokerExplain:explain: type = POKER_PLAYER_LEAVE(81) serial = 114 game_id = 45 seat = 2
2009-10-19 18:20:11+0000 [-] [114][PokerGame 45] removing player 114 from game
2009-10-19 18:20:11+0000 [-] PokerAvatar: Traceback (most recent call last):
2009-10-19 18:20:11+0000 [-] File "/usr/lib/python2.5/site-packages/pokernetwork/pokeravatar.py", line 308, in sendPacket
2009-10-19 18:20:11+0000 [-] self.explain.explain(packet)
2009-10-19 18:20:11+0000 [-] File "/usr/lib/python2.5/site-packages/pokernetwork/pokerexplain.py", line 359, in explain
2009-10-19 18:20:11+0000 [-] game.removePlayer(packet.serial)
2009-10-19 18:20:11+0000 [-] File "/usr/lib/python2.5/site-packages/pokerengine/pokergame.py", line 900, in removePlayer
2009-10-19 18:20:11+0000 [-] self.__removePlayer(serial)
2009-10-19 18:20:11+0000 [-] File "/usr/lib/python2.5/site-packages/pokerengine/pokergame.py", line 1646, in __removePlayer
2009-10-19 18:20:11+0000 [-] if not self.serial2player[serial].seat in self.seats_left:
2009-10-19 18:20:11+0000 [-] KeyError: 114

2009-10-19 18:20:11+0000 [-] PokerAvatarCollection:Table45:remove 114 PokerAvatar serial = 114, name = proppy
2009-10-19 18:20:11+0000 [-] Unhandled error in Deferred:
2009-10-19 18:20:11+0000 [-] Unhandled Error
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/twisted/internet/base.py", line 1048, in run
self.mainLoop()
File "/usr/lib/python2.5/site-packages/twisted/internet/base.py", line 1057, in mainLoop
self.runUntilCurrent()
File "/usr/lib/python2.5/site-packages/twisted/internet/base.py", line 705, in runUntilCurrent
call.func(*call.args, **call.kw)
File "/usr/lib/python2.5/site-packages/twisted/internet/task.py", line 114, in _call_
d = defer.maybeDeferred(self.f, self.a, *self.kw)
--- <exception caught here> ---
File "/usr/lib/python2.5/site-packages/twisted/internet/defer.py", line 106, in maybeDeferred
result = f(*args, **kw)
File "/usr/lib/python2.5/site-packages/pokernetwork/pokersite.py", line 166, in checkExpired
server.Session.checkExpired(self)
File "/usr/lib/python2.5/site-packages/twisted/web/server.py", line 465, in checkExpired
self.expire()
File "/usr/lib/python2.5/site-packages/pokernetwork/pokersite.py", line 152, in expire
self.site.resource.service.destroyAvatar(self.avatar)
File "/usr/lib/python2.5/site-packages/pokernetwork/pokerservice.py", line 554, in destroyAvatar
avatar.connectionLost("Disconnected")
File "/usr/lib/python2.5/site-packages/pokernetwork/pokeravatar.py", line 1237, in connectionLost
table.disconnectPlayer(self, self.getSerial())
File "/usr/lib/python2.5/site-packages/pokernetwork/pokertable.py", line 1025, in disconnectPlayer
self.seated2observer(avatar)
File "/usr/lib/python2.5/site-packages/pokernetwork/pokertable.py", line 958, in seated2observer
self.avatar_collection.remove(avatar.getSerial(), avatar)
File "/usr/lib/python2.5/site-packages/pokernetwork/pokertable.py", line 77, in remove
assert avatar in self.serial2avatars[serial], "expected %d avatar in %s" % ( serial, str(self.serial2avatars[serial]) )
exceptions.AssertionError: expected 114 avatar in [<pokernetwork.pokeravatar.PokerAvatar instance at 0x21a0248>, <pokernetwork.pokeravatar.PokerAvatar instance at 0x219\
5710>]

Johan Euphrosine <proppy>
Project Member
Tue 13 Oct 2009 04:50:22 PM UTC, comment #5:

Wrong bug report ignore the submitted patch.

Johan Euphrosine <proppy>
Project Member
Tue 13 Oct 2009 04:42:09 PM UTC, comment #4:

Hi,

I believe the attached patch reproduce this issue.

(file #6984)

Johan Euphrosine <proppy>
Project Member
Tue 13 Oct 2009 03:31:54 PM UTC, comment #3:

<rest_filter>/usr/share/pyshared/pokernetwork/proxyfilter.py</rest_filter>
<rest_filter>/usr/share/pyshared/pokernetwork/sessionproxyfilter.py</rest_filter>

(05:21:04 PM) dachary: if proxy and explain server are on the same resthost do you agree sessionproxyfilter is not needed ? : I agree

Johan Euphrosine <proppy>
Project Member
Tue 13 Oct 2009 01:35:34 PM UTC, comment #2:

Hi,

I reproduced this bug with r6300, I attached detailed logs.

(file #6983)

Johan Euphrosine <proppy>
Project Member
Tue 06 Oct 2009 04:53:04 PM UTC, comment #1:

2009-10-06 18:40:53+0200 [-] PokerTable: broadcast[] type = POKER_PLAYER_LEAVE(81) serial = 33266090 game_id = 1 seat = 3
2009-10-06 18:40:53+0200 [-] [33266090]PokerExplain:explain: type = POKER_PLAYER_LEAVE(81) serial = 33266090 game_id = 1 seat = 3
2009-10-06 18:40:53+0200 [-] [PokerGame 1] removing player 33266090 from game
2009-10-06 18:40:53+0200 [-] PokerAvatar: Traceback (most recent call last):
2009-10-06 18:40:53+0200 [-] File "/usr/lib/python2.5/site-packages/pokernetwork/pokeravatar.py", line 304, in sendPacket
2009-10-06 18:40:53+0200 [-] self.explain.explain(packet)
2009-10-06 18:40:53+0200 [-] File "/usr/lib/python2.5/site-packages/pokernetwork/pokerexplain.py", line 359, in explain
2009-10-06 18:40:53+0200 [-] game.removePlayer(packet.serial)
2009-10-06 18:40:53+0200 [-] File "/usr/lib/python2.5/site-packages/pokerengine/pokergame.py", line 900, in removePlayer
2009-10-06 18:40:53+0200 [-] self.__removePlayer(serial)
2009-10-06 18:40:53+0200 [-] File "/usr/lib/python2.5/site-packages/pokerengine/pokergame.py", line 1646, in __removePlayer
2009-10-06 18:40:53+0200 [-] if not self.serial2player[serial].seat in self.seats_left:
2009-10-06 18:40:53+0200 [-] KeyError: 33266090
2009-10-06 18:40:53+0200 [-]
2009-10-06 18:40:53+0200 [-] PokerAvatarCollection:Table1:remove 33266090 PokerAvatar serial = 33266090, name = proppy2
2009-10-06 18:40:53+0200 [-] Unhandled error in Deferred:
2009-10-06 18:40:53+0200 [-] Unhandled Error
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/twisted/internet/posixbase.py", line 223, in run
self.mainLoop()
File "/usr/lib/python2.5/site-packages/twisted/internet/posixbase.py", line 231, in mainLoop
self.runUntilCurrent()
File "/usr/lib/python2.5/site-packages/twisted/internet/base.py", line 698, in runUntilCurrent
call.func(*call.args, **call.kw)
File "/usr/lib/python2.5/site-packages/twisted/internet/task.py", line 114, in _call_
d = defer.maybeDeferred(self.f, self.a, *self.kw)
--- <exception caught here> ---
File "/usr/lib/python2.5/site-packages/twisted/internet/defer.py", line 105, in maybeDeferred
result = f(*args, **kw)
File "/usr/lib/python2.5/site-packages/pokernetwork/pokersite.py", line 162, in checkExpired
server.Session.checkExpired(self)
File "/usr/lib/python2.5/site-packages/twisted/web/server.py", line 465, in checkExpired
self.expire()
File "/usr/lib/python2.5/site-packages/pokernetwork/pokersite.py", line 148, in expire
self.site.resource.service.destroyAvatar(self.avatar)
File "/usr/lib/python2.5/site-packages/pokernetwork/pokerservice.py", line 552, in destroyAvatar
avatar.connectionLost("Disconnected")
File "/usr/lib/python2.5/site-packages/pokernetwork/pokeravatar.py", line 1224, in connectionLost
table.disconnectPlayer(self, self.getSerial())
File "/usr/lib/python2.5/site-packages/pokernetwork/pokertable.py", line 1025, in disconnectPlayer
self.seated2observer(avatar)
File "/usr/lib/python2.5/site-packages/pokernetwork/pokertable.py", line 958, in seated2observer
self.avatar_collection.remove(avatar.getSerial(), avatar)
File "/usr/lib/python2.5/site-packages/pokernetwork/pokertable.py", line 77, in remove
assert avatar in self.serial2avatars[serial], "expected %d avatar in %s" % ( serial, str(self.serial2avatars[serial]) )
exceptions.AssertionError: expected 33266090 avatar in [<pokernetwork.pokeravatar.PokerAvatar instance at 0x2aaaaace3c20>]

2009-10-06 18:40:54+0200 [-] PokerService: ERROR avatar PokerAvatar serial = 33266090, name = proppy2 is not in the list of known avatars
2009-10-06 18:40:54+0200 [-] PokerAvatar: connection lost for proppy2/33266090
2009-10-06 18:40:54+0200 [-] PokerAvatarCollection:service:remove 33266090 PokerAvatar serial = 33266090, name = proppy2

Johan Euphrosine <proppy>
Project Member
Tue 06 Oct 2009 04:52:22 PM UTC, original submission:
Johan Euphrosine <proppy>
Project Member

 

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by loic (Updated the item)
  • -unavailable- added by proppy (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 13 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 23 Feb 2010 06:15:27 PM UTCproppyCategoryNone=>poker-network
    Tue 23 Feb 2010 05:55:58 PM UTCproppyStatusConfirmed=>Need Info
    Mon 19 Oct 2009 07:26:18 PM UTCproppyStatusInvalid=>Confirmed
      Open/ClosedClosed=>Open
    Tue 13 Oct 2009 11:19:14 PM UTCloicOpen/ClosedOpen=>Closed
    Tue 13 Oct 2009 04:50:22 PM UTCproppyStatusNone=>Invalid
    Tue 13 Oct 2009 04:42:09 PM UTCproppyAttached File-=>Added poker-network-pokeravatar-restclient-traceback-testcase.patch, #6984
      StatusInvalid=>None
      Open/ClosedClosed=>Open
    Tue 13 Oct 2009 03:32:03 PM UTCproppyOpen/ClosedOpen=>Closed
    Tue 13 Oct 2009 03:31:54 PM UTCproppyStatusNone=>Invalid
    Tue 13 Oct 2009 01:35:34 PM UTCproppyAttached File-=>Added poker-network-proxy-2-traceback.log, #6983
    Tue 06 Oct 2009 04:53:13 PM UTCproppySummarypoker-network traceback with poker-network 2.0 and proxy=>Traceback with poker-network 2.0 and proxy
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup