bugpokersource - Bugs: bug #15395, tournament blocks when user sit out

 
 
Show feedback again

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

bug #15395: tournament blocks when user sit out

Submitted by:  Loic Dachary <loic>
Submitted on:  Tue 16 Feb 2010 10:26:39 PM UTC  
 
Category: poker-networkSeverity: 3 - Normal
Priority: 7 - HighStatus: Need Info
Privacy: PublicAssigned to: Johan Euphrosine <proppy>
Open/Closed: Open

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

Sat 10 Apr 2010 05:20:39 PM UTC, comment #7:

erratum =)

-leave and exit
+leave/exit and logout

Vandemeulebroucke <ramboz>
Sat 10 Apr 2010 05:17:59 PM UTC, comment #6:

you must start play a party with user1 and user2

after one hand, leave and exit... and return after few hours :

only one user is always on the table and tournament is broken

Vandemeulebroucke <ramboz>
Fri 12 Mar 2010 03:03:15 PM UTC, comment #5:

Could you confirm that these steps doesn't reproduce the bug, or provide more instructions on how to reproduce it ?

Johan Euphrosine <proppy>
Project MemberIn charge of this item.
Fri 12 Mar 2010 03:01:59 PM UTC, comment #4:

I have been unable to reproduce this issue with the following test case:

go to http://jspoker.pokersource.info/jpoker/
login user1/password1
click sit n go tourney
click on a tournament in registering state
click Register

logout

go to http://jspoker.pokersource.info/jpoker/
login user2/password2
click sit n go tourney
click on a tournament in registering state
click Register

play a hand

click exit
click logout

go to http://jspoker.pokersource.info/jpoker/
login user2/password2
click sit n go tourney
click on a tournament in running state
click on go to table

click on sit in

play a hand

Johan Euphrosine <proppy>
Project MemberIn charge of this item.
Fri 12 Mar 2010 02:08:33 PM UTC, comment #3:

It seesm related to:
https://gna.org/bugs/?14934

Johan Euphrosine <proppy>
Project MemberIn charge of this item.
Tue 16 Feb 2010 10:49:09 PM UTC, comment #2:

you can reproduce the problem :

just to join a tournament with 2 players, start playing

click EXIT
click LOGOUT

you come back later and you can't can't sit

the tournament is broken :/

v 1.7 & 2.0

Vandemeulebroucke <ramboz>
Tue 16 Feb 2010 10:28:47 PM UTC, comment #1:

The log below is at jspoker.pokersouce.info:/root/15395-short.log. The full log (11MB long) is at jspoker.pokersouce.info:/root/15395-long.log

2010-02-16 12:34:07+0000 [-] [PokerGame 42] distribute a pot of 400000
2010-02-16 12:34:07+0000 [-] [PokerGame 42] looking for winners with board 6h 4d 5h Js 2d
2010-02-16 12:34:07+0000 [-] [PokerGame 42] => hand for player 102 2c Qc
2010-02-16 12:34:07+0000 [-] [PokerGame 42] => hand for player 103 9c 7h
2010-02-16 12:34:07+0000 [-] [PokerGame 42] winners:
2010-02-16 12:34:07+0000 [-] [PokerGame 42] => player 102 2c 2d Qc Js 6h (hi)
2010-02-16 12:34:07+0000 [-] [PokerGame 42] and share a pot of 400000
2010-02-16 12:34:07+0000 [-] [PokerGame 42] player(s) [102] win
2010-02-16 12:34:07+0000 [-] [PokerGame 42] [{'player_list': [103, 102],
2010-02-16 12:34:07+0000 [-] 'pot': 400000,
2010-02-16 12:34:07+0000 [-] 'serial2best': {102: {'hi': [16820544, ['OnePair', 26, 13, 36, 48, 4]]},
2010-02-16 12:34:07+0000 [-] 103: {'hi': [619843, ['NoPair', 48, 33, 5, 4, 3]]}},
2010-02-16 12:34:07+0000 [-] 'serial2delta': {102: 28000, 103: -28000},
2010-02-16 12:34:07+0000 [-] 'serial2rake': {102: 0},
2010-02-16 12:34:07+0000 [-] 'serial2share': {102: 400000},
2010-02-16 12:34:07+0000 [-] 'side_pots': {'building': 0,
2010-02-16 12:34:07+0000 [-] 'contributions': {0: {0: {102: 28000, 103: 28000},
2010-02-16 12:34:07+0000 [-] 1: {102: 344000}},
2010-02-16 12:34:07+0000 [-] 'total': {102: 372000, 103: 28000}},
2010-02-16 12:34:07+0000 [-] 'last_round': -1,
2010-02-16 12:34:07+0000 [-] 'pots': [[56000, 56000], [344000, 400000]]},
2010-02-16 12:34:07+0000 [-] 'type': 'game_state'},
2010-02-16 12:34:07+0000 [-] {'chips_left': 0,
2010-02-16 12:34:07+0000 [-] 'hi': [102],
2010-02-16 12:34:07+0000 [-] 'pot': 400000,
2010-02-16 12:34:07+0000 [-] 'serial2share': {102: 400000},
2010-02-16 12:34:07+0000 [-] 'serials': [102, 103],
2010-02-16 12:34:07+0000 [-] 'type': 'resolve'}]
2010-02-16 12:34:07+0000 [-] [103]packetsPot2Player: POKER_CHIPS_POT_MERGE type = 179 length = 14 serial = 0 cookie = game_id = 42 sources = [0] destination = 1
2010-02-16 12:34:07+0000 [-] [103]normalizeChips: [500, 8, 1000, 4, 2000, 1, 2500, 4, 5000, 4, 10000, 6, 25000, 4, 50000, 4] [500, 1000, 2000, 2500, 5000, 10000, 25000, 50000, 100000, 200000, 500000, 1000000, 2000000, 5000000, 10000000]
2010-02-16 12:34:07+0000 [-] [103]normalizeChips: [] [500, 1000, 2000, 2500, 5000, 10000, 25000, 50000, 100000, 200000, 500000, 1000000, 2000000, 5000000, 10000000]
2010-02-16 12:34:07+0000 [-] [103]normalizeChips: [500, 8, 1000, 4, 2000, 1, 2500, 4, 5000, 4, 10000, 6, 25000, 4, 50000, 4] [500, 1000, 2000, 2500, 5000, 10000, 25000, 50000, 100000, 200000, 500000, 1000000, 2000000, 5000000, 10000000]
2010-02-16 12:34:07+0000 [-] [103]normalizeChips: [] [500, 1000, 2000, 2500, 5000, 10000, 25000, 50000, 100000, 200000, 500000, 1000000, 2000000, 5000000, 10000000]
2010-02-16 12:34:07+0000 [-] [103]normalizeChips: [] [500, 1000, 2000, 2500, 5000, 10000, 25000, 50000, 100000, 200000, 500000, 1000000, 2000000, 5000000, 10000000]
2010-02-16 12:34:07+0000 [-] [PokerGame 42] ---end turn--
2010-02-16 12:34:07+0000 [-] [103]gameEvent: game_id = 42, type = end, args = ([102], [{'player_list': [103, 102], 'pot': 400000, 'serial2delta': {102: 28000, 103: -28000}, 'side_pots': {'building': 0, 'pots': [[56000, 56000], [344000, 400000]], 'last_round': -1, 'contributions': {0: {0: {102: 28000, 103: 28000}, 1: {102: 344000}}, 'total': {102: 372000, 103: 28000}}}, 'serial2rake': {102: 0}, 'serial2best': {102: {'hi': [16820544, ['OnePair', 26, 13, 36, 48, 4]]}, 103: {'hi': [619843, ['NoPair', 48, 33, 5, 4, 3]]}}, 'type': 'game_state', 'serial2share': {102: 400000}}, {'serials': [102, 103], 'pot': 400000, 'hi': [102], 'chips_left': 0, 'type': 'resolve', 'serial2share': {102: 400000}}])
2010-02-16 12:34:07+0000 [-] [103]gameEvent: game_id = 42, type = finish, args = (770,)
2010-02-16 12:34:07+0000 [-] PokerTable: broadcast[102, 103] type = POKER_SIT_OUT(82) serial = 103 game_id = 42
2010-02-16 12:34:07+0000 [-] [102]PokerExplain:explain: type = POKER_SIT_OUT(82) serial = 103 game_id = 42
2010-02-16 12:34:07+0000 [-] [103]PokerExplain:explain: type = POKER_SIT_OUT(82) serial = 103 game_id = 42
2010-02-16 12:34:07+0000 [-] [Server][PokerGame 42] removing player 103 from game
2010-02-16 12:34:07+0000 [-] PokerService: leavePlayer UPDATE user2money,user2table,pokertables SET user2money.amount = user2money.amount + user2table.money + user2table.bet WHERE user2money.user_serial = user2table.user_serial AND user2money.currency_serial = pokertables.currency_serial AND pokertables.serial = 42 AND user2table.table_serial = 42 AND user2table.user_serial = 103
2010-02-16 12:34:07+0000 [-] PokerService: leavePlayer DELETE from user2table WHERE user_serial = 103 AND table_serial = 42
2010-02-16 12:34:07+0000 [-] PokerService: INSERT INTO monitor (event, param1, param2, param3) VALUES (8, 103, 42, 0)
2010-02-16 12:34:07+0000 [-] PokerAvatarCollection:Table42:remove 0 PokerAvatar serial = 0, name = anonymous
2010-02-16 12:34:07+0000 [-] Unhandled Error
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/twisted/application/app.py", line 348, in startReactor
self.config, oldstdout, oldstderr, self.profiler, reactor)
File "/usr/lib/python2.5/site-packages/twisted/application/app.py", line 273, in runReactorWithLogging
reactor.run()
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()
--- <exception caught here> ---
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/pokernetwork/pokertable.py", line 738, in autoDeal
self.update()
File "/usr/lib/python2.5/site-packages/pokernetwork/pokertable.py", line 892, in update
self.tourneyEndTurn()
File "/usr/lib/python2.5/site-packages/pokernetwork/pokertable.py", line 719, in tourneyEndTurn
self.factory.tourneyEndTurn(self.tourney, game.id)
File "/usr/lib/python2.5/site-packages/pokernetwork/pokerservice.py", line 878, in tourneyEndTurn
if not tourney.endTurn(game_id):
File "/usr/lib/python2.5/site-packages/pokerengine/pokertournament.py", line 478, in endTurn
self.callback_remove_player(self, game_id, serial)
File "/usr/lib/python2.5/site-packages/pokernetwork/pokerservice.py", line 1047, in tourneyRemovePlayer
table.kickPlayer(serial)
File "/usr/lib/python2.5/site-packages/pokernetwork/pokertable.py", line 1009, in kickPlayer
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.KeyError: 0

2010-02-16 12:34:08+0000 [-] PokerService: ERROR avatar PokerAvatar serial = 0, name = anonymous is not in the list of known avatars
2010-02-16 12:34:08+0000 [-] PokerAvatar: connection lost for anonymous/0
2010-02-16 12:34:08+0000 [-] PokerService: ERROR avatar PokerAvatar serial = 0, name = anonymous is not in the list of known avatars
2010-02-16 12:34:08+0000 [-] PokerAvatar: connection lost for anonymous/0
2010-02-16 12:34:08+0000 [-] PokerService: ERROR avatar PokerAvatar serial = 0, name = anonymous is not in the list of known avatars
2010-02-16 12:34:08+0000 [-] PokerAvatar: connection lost for anonymous/0
2010-02-16 12:34:08+0000 [-] PokerService: ERROR avatar PokerAvatar serial = 0, name = anonymous is not in the list of known avatars
2010-02-16 12:34:08+0000 [-] PokerAvatar: connection lost for anonymous/0
2010-02-16 12:34:08+0000 [-] PokerService: ERROR avatar PokerAvatar serial = 0, name = anonymous is not in the list of known avatars
2010-02-16 12:34:08+0000 [-] PokerAvatar: connection lost for anonymous/0
2010-02-16 12:34:08+0000 [-] PokerService: ERROR avatar PokerAvatar serial = 0, name = anonymous is not in the list of known avatars
2010-02-16 12:34:08+0000 [-] PokerAvatar: connection lost for anonymous/0
2010-02-16 12:34:08+0000 [-] PokerService: ERROR avatar PokerAvatar serial = 0, name = anonymous is not in the list of known avatars

Loic Dachary <loic>
Project Administrator
Tue 16 Feb 2010 10:26:39 PM UTC, original submission:
Loic Dachary <loic>
Project Administrator

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by proppy (Updated the item)
  • -unavailable- added by ramboz (Posted a comment)
  • -unavailable- added by loic (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 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 12 Mar 2010 03:02:13 PM UTCproppyStatusConfirmed=>Need Info
    Mon 01 Mar 2010 06:35:42 PM UTCproppySeverity5 - Blocker=>3 - Normal
    Mon 01 Mar 2010 06:35:35 PM UTCproppyPriority9 - Immediate=>7 - High
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup