Bug 267849 - Kajongg-Failure Instance Error
Summary: Kajongg-Failure Instance Error
Status: RESOLVED FIXED
Alias: None
Product: kajongg
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR major
Target Milestone: ---
Assignee: Wolfgang Rohdewald
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-07 03:12 UTC by embeau
Modified: 2011-09-05 13:47 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.6


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description embeau 2011-03-07 03:12:15 UTC
Version:           unspecified (using KDE 4.5.1) 
OS:                Linux

During play the following error occurred:
[Failure instance: Traceback: <type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'name'
/usr/share/kde4/apps/kajongg/humanclient.py:498:selectedAnswer
/usr/share/kde4/apps/kajongg/humanclient.py:493:selectButton
/usr/lib/python2.6/dist-packages/twisted/internet/defer.py:318:callback
/usr/lib/python2.6/dist-packages/twisted/internet/defer.py:424:_startRunCallbacks
--- <exception caught here> ---
/usr/lib/python2.6/dist-packages/twisted/internet/defer.py:441:_runCallbacks
/usr/share/kde4/apps/kajongg/humanclient.py:714:answered
] ROBOT 3 E HasNoChoice {'tile': ['B4', 'B4', 'B7', 'B7']} [<Message: OK>]

Clicked OK and the following displayed:
Unknown error for player Ed Beaudoin: %2
%3

Clicked OK and tiles disappeared.
Clicked Explain Scored and displayed:
There is no active game.

Game 977675181718

Reproducible: Didn't try
Comment 1 Wolfgang Rohdewald 2011-03-07 04:09:16 UTC
The game server is telling you that Robot 3 has to discard a dangerous tile (which could easily help somebody else winning). By claiming "no choice" and by showing all his concealed tiles, Robot 3 can avoid having to pay a penalty for playing dangerous.

I made a lot of fixes about "dangerous game" and "no choice" situations for KDE 4.6, and backporting them to the 4.5 branch would be a lot of work. I am quite optimistic that such a bug would not happen with the version in KDE SC 4.6, so please update.
Comment 2 Henri Valta 2011-09-04 16:17:58 UTC
It seems this is not completely fixed. I received similar error on Kajongg 4.7.0
game 273911722150


[Failure instance: Traceback: <type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'name'
/usr/share/apps/kajongg/humanclient.py:524:selectedAnswer
/usr/share/apps/kajongg/humanclient.py:519:selectButton
/usr/lib/python2.7/site-packages/twisted/internet/defer.py:361:callback
/usr/lib/python2.7/site-packages/twisted/internet/defer.py:455:_startRunCallbacks
--- <exception caught here> ---
/usr/lib/python2.7/site-packages/twisted/internet/defer.py:542:_runCallbacks
/usr/share/apps/kajongg/humanclient.py:785:answered
] ROBOT 1    S HasNoChoice {'tile': ['B9', 'Ww', 'C5', 'C5', 'B9', 'B9', 'Db', 'Ww', 'Dr', 'Dg']} [<Message: OK>]
Comment 3 Wolfgang Rohdewald 2011-09-05 13:29:11 UTC
SVN commit 1251564 by wrohdewald:

Fix handling 'have no choice'

when another player claimed 'no choice', the client
crashed

BUG: 267849
FIXED-IN: KDE 4.7.2
CCBUG: 267849

 M  +2 -1      message.py  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1251564
Comment 4 Wolfgang Rohdewald 2011-09-05 13:47:16 UTC
I made a few more bug fixes for 'no choice' situations, but they are rather cosmetic. See the websvn link above.

this is a little bit too late for KDE 4.7.1 to be released tomorrow