Bug 153986 - Random Cards caused a crash, with the F9 key.
Summary: Random Cards caused a crash, with the F9 key.
Status: RESOLVED FIXED
Alias: None
Product: kpat
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Stephan Kulow
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-13 19:38 UTC by Martin Sondergaard
Modified: 2008-02-23 00:16 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Sondergaard 2007-12-13 19:38:17 UTC
Version:           2.2.2b (using KDE 3.93.00 (KDE 4.0 Beta2), compiled sources)
Compiler:          gcc
OS:                Linux (i686) release 2.6.22.13-0.3-default

After I played a game of Free Cell, I clicked on the Random Cards menu option five or six times.  I think I pressed the F9 key at that point, but I'm not sure.  It then crashed, and exited, with signal 11.
This may be specific to the F9 key, not to the menu option for Random Cards.

It may not be possible to reproduce this bug, from this description, you may have to wait for further reports of it.
Comment 1 Martin Sondergaard 2007-12-13 19:48:40 UTC
I just tried it again.  It keeps happening.  I start up Patience, and it shows Free Cell.  I press the F9 key.  After I press it a few times, the game exits.  I did this a few times, it always crashes.  I can press the F9 key 3, or 4, or 5 times, at which time the game exits, with signall 11.
It also crashes if I use the Random Cards menu option, 3 or 4 times.

I'm using openSUSE 10.3.
Comment 2 Stephan Kulow 2008-02-02 17:45:11 UTC
if you click f9 really fast, it's crashing indeed. But that's not what F9 was made for :)
Comment 3 Stephan Kulow 2008-02-02 18:10:41 UTC
SVN commit 770050 by coolo:

try not to crash when someone changes cards like wild
BUG: 153986


 M  +2 -0      cardmaps.cpp  
 M  +4 -3      dealer.cpp  
 M  +4 -3      pwidget.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=770050
Comment 4 James Richard Tyrer 2008-02-20 20:17:57 UTC
The problem is back and not just with F9

If you use the menu, it crashes sometimes the first time.

AND, it does not choose random cards.
Comment 5 Martin Sondergaard 2008-02-20 22:10:03 UTC
I'm reopening this bug because its not fixed; the attempt at a fix did not work.
Also, Stephan Kulow assumed that the crash only happens 
if I "click f9 really fast".  This is not correct.  
Pressing F9 slowly also leads to a crash.

JRT had this to say about it:
The problem is back and not just with F9
If you use the menu, it crashes sometimes the first time.
AND, it does not choose random cards.
Comment 6 James Richard Tyrer 2008-02-21 04:12:41 UTC
I note that this appears to _currently_ work in TRUNK, which is no guarantee that it will work in the next release BRANCH.

However, I don't think that that is a reason to close the bug.  Fix it in 4.0.x and/or wait till 4.1.0 is released.
Comment 7 Stephan Kulow 2008-02-21 06:41:17 UTC
sorry no. I won't keep all bugs open till KDE 4.1 is released. It's fixed for 4.1
Comment 8 James Richard Tyrer 2008-02-21 07:35:15 UTC
It was reported against 4.0 and the app still crashes in 4.0 BRANCH.  Therefore, the bug isn't fixed.
Comment 9 Kevin Kofler 2008-02-22 03:59:31 UTC
Regardless of whether the bug should stay open or not, can you please backport the fix? As you're one of the most veteran developers in KDE, I'm sure you're aware of the policy: http://techbase.kde.org/index.php?title=Policies/SVN_Commit_Policy#Backport_bugfixes ;-) The changes look small enough for a backport to me.