bugpokersource - Bugs: bug #15044, explain traceback:...

 
 
Show feedback again

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

bug #15044: explain traceback: "AttributeError: 'NoneType' object has no attribute 'setUserData'"

Submitted by:  Johan Euphrosine <proppy>
Submitted on:  Sun 03 Jan 2010 11:45:13 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Tue 19 Jan 2010 05:05:11 PM UTC, SVN revision 6370:

backport patch for bug #13717, bug #15044, fix test suite, and apply ubuntu patches

(Browse SVN revision 6370)

Johan Euphrosine <proppy>
Project Member
Tue 19 Jan 2010 03:19:31 PM UTC, SVN revision 6369:

explain should not set userData if game.addPlayer failed, bug #15044

(Browse SVN revision 6369)

Johan Euphrosine <proppy>
Project Member
Tue 19 Jan 2010 08:35:12 AM UTC, comment #2:

The patch looks good and simple

Loic Dachary <loic>
Project Administrator
Tue 12 Jan 2010 04:36:25 PM UTC, comment #1:

Hi,

I believe the attached patch reproduce and workaround this issue:

(file #7665)

Johan Euphrosine <proppy>
Project Member
Sun 03 Jan 2010 11:45:13 AM UTC, original submission:

2010-01-02 22:28:25+0100 [HTTPChannel,8588225,172.19.21.3] [Server][PokerGame 419913] ERROR: player 22297006 cannot check. state = turn (ignored)
2010-01-02 22:28:25+0100 [HTTPChannel,8588257,172.19.21.3] [Server][PokerGame 419913] ERROR: player 22297006 cannot check. state = turn (ignored)
2010-01-02 22:28:29+0100 [HTTPChannel,8588579,172.18.21.4] [Server][PokerGame 419913] ERROR: player 22297006 cannot check. state = turn (ignored)
2010-01-02 22:28:29+0100 [HTTPChannel,8588607,172.18.21.4] [Server][PokerGame 419913] ERROR: player 22297006 cannot check. state = turn (ignored)
2010-01-02 22:28:33+0100 [-] PokerTable: Dealing hand Table05/19218993
2010-01-02 22:28:36+0100 [HTTPChannel,8589100,172.19.21.3] [Server][PokerGame 418205] ERROR: player 60140322 cannot raise. state = pre-flop
2010-01-02 22:28:54+0100 [-] PokerTable: Dealing hand Classic526/19219001
2010-01-02 22:29:05+0100 [-] PokerTable: Dealing hand Classic525/19219003
2010-01-02 22:29:06+0100 [-] PokerTable: Dealing hand Classic514/19219005
2010-01-02 22:29:07+0100 [-] Unhandled error in Deferred:
2010-01-02 22:29:07+0100 [-] 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 178, 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 164, in expire_ self.site.resource.service.destroyAvatar(self.avatar)_exceptions.AttributeError: Session instance has no attribute 'avatar'_
2010-01-02 22:29:08+0100 [HTTPChannel,8591553,172.19.21.3] PokerAvatar: cannot quit a closed table, request ignored
2010-01-02 22:29:09+0100 [-] PokerService: ERROR avatar PokerAvatar serial = 0, name = anonymous is not in the list of known avatars
2010-01-02 22:29:14+0100 [-] PokerTable: Dealing hand Classic516/19219009
2010-01-02 22:29:31+0100 [-] PokerTable: Dealing hand Classic508/19219011
2010-01-02 22:29:31+0100 [-] [67077017][PokerGame 419867] ERROR: beginTurn: muckable_serials not empty [58747100]
2010-01-02 22:29:31+0100 [-] [58747100][PokerGame 419867] ERROR: beginTurn: muckable_serials not empty [58747100]
2010-01-02 22:29:31+0100 [-] [60391595][PokerGame 419867] ERROR: beginTurn: muckable_serials not empty [58747100]
2010-01-02 22:29:31+0100 [-] [60330063][PokerGame 419867] ERROR: beginTurn: muckable_serials not empty [58747100]
2010-01-02 22:29:31+0100 [-] [61100352][PokerGame 419867] ERROR: beginTurn: muckable_serials not empty [58747100]
2010-01-02 22:29:31+0100 [-] [60804380][PokerGame 419867] ERROR: beginTurn: muckable_serials not empty [58747100]
--
2010-01-02 22:52:59+0100 [-] PokerService: ERROR avatar PokerAvatar serial = 0, name = anonymous is not in the list of known avatars
2010-01-02 22:52:59+0100 [-] PokerService: ERROR avatar PokerAvatar serial = 0, name = anonymous is not in the list of known avatars
2010-01-02 22:52:59+0100 [HTTPChannel,8701267,172.19.21.3] [Server][PokerGame 418207] ERROR: player 64339194 cannot check. state = flop (ignored)
2010-01-02 22:53:00+0100 [HTTPChannel,8701323,172.18.21.4] [Server][PokerGame 419913] ERROR: player 54273014 cannot call. state = pre-flop
2010-01-02 22:53:01+0100 [HTTPChannel,8701380,172.19.21.3] [Server][PokerGame 418207] ERROR: player 64339194 cannot check. state = flop (ignored)
2010-01-02 22:53:03+0100 [HTTPChannel,8701494,172.18.21.4] [Server][PokerGame 418207] ERROR: player 64339194 cannot check. state = flop (ignored)
2010-01-02 22:53:09+0100 [-] PokerTable: Dealing hand Table33/19219623
2010-01-02 22:53:10+0100 [-] PokerService: ERROR avatar PokerAvatar serial = 0, name = anonymous is not in the list of known avatars
2010-01-02 22:53:10+0100 [-] PokerService: ERROR avatar PokerAvatar serial = 0, name = anonymous is not in the list of known avatars
2010-01-02 22:53:12+0100 [HTTPChannel,8702074,172.18.21.4] [Server][PokerGame 419915] ERROR: player 66327560 cannot check. state = flop (ignored)
2010-01-02 22:53:14+0100 [HTTPChannel,8702246,172.19.21.3] PokerResource: ERROR (x-cluster-client-ip:82.247.164.167) Traceback (most recent call last):
2010-01-02 22:53:14+0100 [HTTPChannel,8702246,172.19.21.3] File "/usr/lib/python2.5/site-packages/twisted/internet/defer.py", line 185, in addCallbacks
2010-01-02 22:53:14+0100 [HTTPChannel,8702246,172.19.21.3] self._runCallbacks()
2010-01-02 22:53:14+0100 [HTTPChannel,8702246,172.19.21.3] File "/usr/lib/python2.5/site-packages/twisted/internet/defer.py", line 323, in _runCallbacks
2010-01-02 22:53:14+0100 [HTTPChannel,8702246,172.19.21.3] self.result = callback(self.result, args, *kw)
2010-01-02 22:53:14+0100 [HTTPChannel,8702246,172.19.21.3] File "/usr/lib/python2.5/site-packages/pokernetwork/pokersite.py", line 246, in <lambda>
2010-01-02 22:53:14+0100 [HTTPChannel,8702246,172.19.21.3] deferred.addCallback(lambda result: self.deferRender(request, jsonp, packet))
2010-01-02 22:53:14+0100 [HTTPChannel,8702246,172.19.21.3] File "/usr/lib/python2.5/site-packages/pokernetwork/pokersite.py", line 257, in deferRender
2010-01-02 22:53:14+0100 [HTTPChannel,8702246,172.19.21.3] d = defer.maybeDeferred(session.avatar.handlePacketDefer, packet)
2010-01-02 22:53:14+0100 [HTTPChannel,8702246,172.19.21.3] --- <exception caught here> ---
2010-01-02 22:53:14+0100 [HTTPChannel,8702246,172.19.21.3] File "/usr/lib/python2.5/site-packages/twisted/internet/defer.py", line 105, in maybeDeferred
--
2010-01-02 22:56:11+0100 [HTTPChannel,8713693,172.19.21.3] PokerTable: player 22297006 is already seated
2010-01-02 22:56:20+0100 [-] PokerTable: Dealing hand Classic521/19219673
2010-01-02 22:56:37+0100 [HTTPChannel,8715382,172.18.21.4] [Server][PokerGame 419913] ERROR: player 54273014 cannot check. state = river (ignored)
2010-01-02 22:56:37+0100 [-] PokerTable: Dealing hand Table41/19219679
2010-01-02 22:56:40+0100 [HTTPChannel,8715560,172.18.21.4] PokerTable: player 22297006 is already seated
2010-01-02 22:56:40+0100 [HTTPChannel,8715583,172.18.21.4] PokerTable: player 22297006 is already seated
2010-01-02 22:56:41+0100 [HTTPChannel,8715679,172.19.21.3] PokerTable: player 22297006 is already seated
2010-01-02 22:56:46+0100 [-] PokerTable: Dealing hand Table01/19219683
2010-01-02 22:56:46+0100 [HTTPChannel,8715964,172.19.21.3] [Server][PokerGame 419923] ERROR: player 15044888 cannot raise. state = pre-flop
2010-01-02 22:56:51+0100 [HTTPChannel,8716322,172.18.21.4] [57649185][PokerGame 419925] ERROR: no seats left for player 68337351
2010-01-02 22:56:51+0100 [HTTPChannel,8716322,172.18.21.4] PokerAvatar: Traceback (most recent call last):
2010-01-02 22:56:51+0100 [HTTPChannel,8716322,172.18.21.4] File "/usr/lib/python2.5/site-packages/pokernetwork/pokeravatar.py", line 301, in sendPacket
2010-01-02 22:56:51+0100 [HTTPChannel,8716322,172.18.21.4] self.explain.explain(packet)
2010-01-02 22:56:51+0100 [HTTPChannel,8716322,172.18.21.4] File "/usr/lib/python2.5/site-packages/pokernetwork/pokerexplain.py", line 346, in explain
2010-01-02 22:56:51+0100 [HTTPChannel,8716322,172.18.21.4] player.setUserData(DEFAULT_PLAYER_USER_DATA.copy())
2010-01-02 22:56:51+0100 [HTTPChannel,8716322,172.18.21.4] AttributeError: 'NoneType' object has no attribute 'setUserData'
2010-01-02 22:56:51+0100 [HTTPChannel,8716322,172.18.21.4]
2010-01-02 22:56:51+0100 [HTTPChannel,8716322,172.18.21.4] [64225810][PokerGame 419925] ERROR: no seats left for player 68337351
2010-01-02 22:56:51+0100 [HTTPChannel,8716322,172.18.21.4] PokerAvatar: Traceback (most recent call last):
2010-01-02 22:56:51+0100 [HTTPChannel,8716322,172.18.21.4] File "/usr/lib/python2.5/site-packages/pokernetwork/pokeravatar.py", line 301, in sendPacket
2010-01-02 22:56:51+0100 [HTTPChannel,8716322,172.18.21.4] self.explain.explain(packet)
2010-01-02 22:56:51+0100 [HTTPChannel,8716322,172.18.21.4] File "/usr/lib/python2.5/site-packages/pokernetwork/pokerexplain.py", line 346, in explain
2010-01-02 22:56:51+0100 [HTTPChannel,8716322,172.18.21.4] player.setUserData(DEFAULT_PLAYER_USER_DATA.copy())
2010-01-02 22:56:51+0100 [HTTPChannel,8716322,172.18.21.4] AttributeError: 'NoneType' object has no attribute 'setUserData'
2010-01-02 22:56:51+0100 [HTTPChannel,8716322,172.18.21.4]
2010-01-02 22:56:51+0100 [HTTPChannel,8716322,172.18.21.4] [67077017][PokerGame 419925] ERROR: no seats left for player 68337351
2010-01-02 22:56:51+0100 [HTTPChannel,8716322,172.18.21.4] PokerAvatar: Traceback (most recent call last):
2010-01-02 22:56:51+0100 [HTTPChannel,8716322,172.18.21.4] File "/usr/lib/python2.5/site-packages/pokernetwork/pokeravatar.py", line 301, in sendPacket
2010-01-02 22:56:51+0100 [HTTPChannel,8716322,172.18.21.4] self.explain.explain(packet)
2010-01-02 22:56:51+0100 [HTTPChannel,8716322,172.18.21.4] File "/usr/lib/python2.5/site-packages/pokernetwork/pokerexplain.py", line 346, in explain
2010-01-02 22:56:51+0100 [HTTPChannel,8716322,172.18.21.4] player.setUserData(DEFAULT_PLAYER_USER_DATA.copy())
2010-01-02 22:56:51+0100 [HTTPChannel,8716322,172.18.21.4] AttributeError: 'NoneType' object has no attribute 'setUserData'
2010-01-02 22:56:51+0100 [HTTPChannel,8716322,172.18.21.4]
2010-01-02 22:56:51+0100 [HTTPChannel,8716322,172.18.21.4] [68703468][PokerGame 419925] ERROR: no seats left for player 68337351
2010-01-02 22:56:51+0100 [HTTPChannel,8716322,172.18.21.4] PokerAvatar: Traceback (most recent call last):
2010-01-02 22:56:51+0100 [HTTPChannel,8716322,172.18.21.4] File "/usr/lib/python2.5/site-packages/pokernetwork/pokeravatar.py", line 301, in sendPacket
2010-01-02 22:56:51+0100 [HTTPChannel,8716322,172.18.21.4] self.explain.explain(packet)
2010-01-02 22:56:51+0100 [HTTPChannel,8716322,172.18.21.4] File "/usr/lib/python2.5/site-packages/pokernetwork/pokerexplain.py", line 346, in explain
2010-01-02 22:56:51+0100 [HTTPChannel,8716322,172.18.21.4] player.setUserData(DEFAULT_PLAYER_USER_DATA.copy())
2010-01-02 22:56:51+0100 [HTTPChannel,8716322,172.18.21.4] AttributeError: 'NoneType' object has no attribute 'setUserData'
2010-01-02 22:56:51+0100 [HTTPChannel,8716322,172.18.21.4]
2010-01-02 22:56:51+0100 [HTTPChannel,8716322,172.18.21.4] [67280893][PokerGame 419925] ERROR: no seats left for player 68337351
2010-01-02 22:56:51+0100 [HTTPChannel,8716322,172.18.21.4] PokerAvatar: Traceback (most recent call last):
2010-01-02 22:56:51+0100 [HTTPChannel,8716322,172.18.21.4] File "/usr/lib/python2.5/site-packages/pokernetwork/pokeravatar.py", line 301, in sendPacket
2010-01-02 22:56:51+0100 [HTTPChannel,8716322,172.18.21.4] self.explain.explain(packet)
2010-01-02 22:56:51+0100 [HTTPChannel,8716322,172.18.21.4] File "/usr/lib/python2.5/site-packages/pokernetwork/pokerexplain.py", line 346, in explain
2010-01-02 22:56:51+0100 [HTTPChannel,8716322,172.18.21.4] player.setUserData(DEFAULT_PLAYER_USER_DATA.copy())
2010-01-02 22:56:51+0100 [HTTPChannel,8716322,172.18.21.4] AttributeError: 'NoneType' object has no attribute 'setUserData'
2010-01-02 22:56:51+0100 [HTTPChannel,8716322,172.18.21.4]
2010-01-02 22:56:51+0100 [HTTPChannel,8716322,172.18.21.4] [37364789][PokerGame 419925] ERROR: no seats left for player 68337351
2010-01-02 22:56:51+0100 [HTTPChannel,8716322,172.18.21.4] PokerAvatar: Traceback (most recent call last):
2010-01-02 22:56:51+0100 [HTTPChannel,8716322,172.18.21.4] File "/usr/lib/python2.5/site-packages/pokernetwork/pokeravatar.py", line 301, in sendPacket
2010-01-02 22:56:51+0100 [HTTPChannel,8716322,172.18.21.4] self.explain.explain(packet)
2010-01-02 22:56:51+0100 [HTTPChannel,8716322,172.18.21.4] File "/usr/lib/python2.5/site-packages/pokernetwork/pokerexplain.py", line 346, in explain
2010-01-02 22:56:51+0100 [HTTPChannel,8716322,172.18.21.4] player.setUserData(DEFAULT_PLAYER_USER_DATA.copy())
2010-01-02 22:56:51+0100 [HTTPChannel,8716322,172.18.21.4] AttributeError: 'NoneType' object has no attribute 'setUserData'
2010-01-02 22:56:51+0100 [HTTPChannel,8716322,172.18.21.4]
2010-01-02 22:56:51+0100 [HTTPChannel,8716322,172.18.21.4] [48176024][PokerGame 419925] ERROR: no seats left for player 68337351
2010-01-02 22:56:51+0100 [HTTPChannel,8716322,172.18.21.4] PokerAvatar: Traceback (most recent call last):
2010-01-02 22:56:51+0100 [HTTPChannel,8716322,172.18.21.4] File "/usr/lib/python2.5/site-packages/pokernetwork/pokeravatar.py", line 301, in sendPacket
2010-01-02 22:56:51+0100 [HTTPChannel,8716322,172.18.21.4] self.explain.explain(packet)
2010-01-02 22:56:51+0100 [HTTPChannel,8716322,172.18.21.4] File "/usr/lib/python2.5/site-packages/pokernetwork/pokerexplain.py", line 346, in explain
2010-01-02 22:56:51+0100 [HTTPChannel,8716322,172.18.21.4] player.setUserData(DEFAULT_PLAYER_USER_DATA.copy())
2010-01-02 22:56:51+0100 [HTTPChannel,8716322,172.18.21.4] AttributeError: 'NoneType' object has no attribute 'setUserData'
2010-01-02 22:56:51+0100 [HTTPChannel,8716322,172.18.21.4]
2010-01-02 22:56:53+0100 [-] PokerTable: Dealing hand Table33/19219687
2010-01-02 22:57:00+0100 [-] PokerTable: Dealing hand Table45/19219689
2010-01-02 22:57:07+0100 [HTTPChannel,8717379,172.19.21.3] PokerTable: player 68557874 is already seated
2010-01-02 22:57:07+0100 [-] PokerTable: Dealing hand Table41/19219693

Johan Euphrosine <proppy>
Project Member

 

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by loic (Posted a comment)
  • -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 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 16 Feb 2010 01:41:40 PM UTCproppyOpen/ClosedOpen=>Closed
    Tue 19 Jan 2010 05:10:47 PM UTCproppyStatusReady For Test=>Fixed
    Tue 12 Jan 2010 04:36:25 PM UTCproppyAttached File-=>Added poker-network-explain-arrive-no-seat-left.patch, #7665
      StatusNeed Info=>Ready For Test
    Tue 12 Jan 2010 09:33:18 AM UTCproppyStatusNone=>Need Info
    Sun 03 Jan 2010 12:14:10 PM UTCproppySummaryexplain traceback: "ttributeError: 'NoneType' object has no attribute 'setUserData'"=>explain traceback: "AttributeError: 'NoneType' object has no attribute 'setUserData'"
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup