Summary: | kpat crash when switching games | ||
---|---|---|---|
Product: | [Applications] kpat | Reporter: | S. Christian Collins <s_chriscollins> |
Component: | general | Assignee: | Fabian <0inkane> |
Status: | RESOLVED WORKSFORME | ||
Severity: | crash | CC: | 0inkane, aacid, bdk, duncan, jean-pierre, kde-games-bugs, thierry.rouillon, vl.olteanu |
Priority: | NOR | Keywords: | drkonqi |
Version: | 3.6 | ||
Target Milestone: | --- | ||
Platform: | Neon | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Attachments: |
video showing the crash
The game should terminate by itself. I had to click on 5 cards before the end Solver hangs for a while in Freecell Freecell freezes Stacktrace in journalctl system log New crash information added by DrKonqi |
Description
S. Christian Collins
2018-08-24 07:17:11 UTC
Fabian, is this related to the memory changes you did? I have discovered that I can repro this crash every time I win a Freecell game and then start a game of Spider afterward. @Albert: Hm, I haven't merged the large memory related change into the code, so that shouldn't be it. It might however be the result of one of the other changes I did, I'll investigate it @S. Christian Collins: Thanks for reporting the bug. Unfortunately, I cannot reproduce the crash locally so far. Does it crash directly after you open the Spider game? @S. Christian Collins: Just an idea: Is Neon still using the kpat version from KDE applications 18.04? In that case it's a known issue, which is already fixed thanks to the new Freecell Solver. Kpat crashes instantly once the Spider cards are dealt out. The package version for kpat is 4:18.08.0-0xneon+16.04+xenial+build46. Also, to get the crash, you have to win the Freecell game. The crash doesn't happen if you only play the game partway through and then switch to Spider. Could you tell me which Spider options you are using (Face Down/Face Up, number of suits)? Created attachment 114687 [details]
video showing the crash
Spider options: 2 suits, face down Also: autodrop, solver, "remember state on exit" are all enabled. I also don't know how long this bug has been a part of kpat, since I've only recently started playing Freecell. answers have been given I get the same problem on an Arch Linux distribution. It seems that from time to time, the solver thread becomes crazy : it runs for hours without displaying you may win the game or this game is lost or ... while the CPU for one processor reaches 100%. The automatic removal of cards stops without any «visible» reason and trying to switch to Klondike for example after having won a game leads ti the display of the cards and then a crash in the application. Feel free to contact me if you want/need some more input. Thanks for the good work. Jean-Pierre @ Jean-Pierre Cabanié: Does the solver thread becomes stuck in all games, or only in certain ones? And if you can reproduce the issues, could you save the game (File > Save as) and attach the saved game to the bug? Created attachment 114739 [details]
The game should terminate by itself. I had to click on 5 cards before the end
Created attachment 114740 [details]
Solver hangs for a while in Freecell
Move the 4 of Hearts on the 5 of Spades and then try to move the Queen of hearts on the King of Clubs. You have to wait for a while before the move is obeyed. (the CPU is quite stressed probably by the solver).
Created attachment 114742 [details]
Freecell freezes
That time when I tried to move the 3 of clubs on the 4 or hearts, It took a while with one CPU eaten up to 100%. I've not tried to hit Ctrl-z twice before recording the game.
Hope this helps
Jean-Pierre
This crash also happens every time I finish Freecell and then start a Forty & Eight game. Crashes after the cards have been dealt. So it seems like it's an issue with finishing Freecell, not starting Spider. Created attachment 119451 [details]
Stacktrace in journalctl system log
If it helps, this was the stack trace in the system log for a crash today when switching from a completed Simple Simon to a new Yukon game.
I have this problem almost every time when switching from a win on Freecell to another game. I am running Fedora 29 with all the latest patches. Created attachment 122400 [details]
New crash information added by DrKonqi
kpat (3.6) using Qt 5.13.0
- What I was doing when the application crashed:
1. Won a game of FreeCell (not necessarily on 1st try)
2. Started a game of Spider
The app crashed right after the cards were dealt.
-- Backtrace (Reduced):
#6 MemoryManager::new_from_block (this=0x55bb9d28f000, s=56) at /usr/src/debug/kpat-19.08.0-lp151.1.1.x86_64/patsolve/memory.cpp:164
#7 0x000055bb9cc48eb7 in Solver<15ul>::pack_position (this=this@entry=0x55bb9d99b0a0) at /usr/src/debug/kpat-19.08.0-lp151.1.1.x86_64/patsolve/patsolve.cpp:217
#8 0x000055bb9cc4934a in Solver<15ul>::insert (this=this@entry=0x55bb9d99b0a0, cluster=cluster@entry=0x7ffd2d5cae3c, d=0, node=node@entry=0x7ffd2d5cae40) at /usr/src/debug/kpat-19.08.0-lp151.1.1.x86_64/patsolve/patsolve.cpp:887
#9 0x000055bb9cc4942a in Solver<15ul>::new_position (this=this@entry=0x55bb9d99b0a0, parent=parent@entry=0x0, m=m@entry=0x7ffd2d5cae80) at /usr/src/debug/kpat-19.08.0-lp151.1.1.x86_64/patsolve/patsolve.cpp:919
#10 0x000055bb9cc4e4a6 in Solver<15ul>::doit (this=0x55bb9d99b0a0) at /usr/src/debug/kpat-19.08.0-lp151.1.1.x86_64/patsolve/patsolve.cpp:505
Mine crashes before the cards are dealt in the new game 99.99...% of the time. After a part of freecell. Closing the game and : journalctl -f Error detected in cache, re-generating Correction to comment 20. Should be 'after' the cards are dealt. Occasionally it will just quit when kpat first started. Usually does not matter the order of games. Most of the time freecell to another game crashes. Rarely does not crash first time after Freecell. Thank you for reporting this crash in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the crash with a recent software version? If you can reproduce the issue, please change the status to "CONFIRMED" when replying. Thank you! I can no longer reproduce this bug with the current version of kpat (4:22.08.1-0xneon+22.04+jammy+release+build7). On Fedora the latest supplied is kpat-22.04.1-1.fc36.x86_64 and the problem does occur in that version. Brian you're on an older version 22.04 as compared to 22.08.1 from the other reporter that says it doesn't happen for them anymore. I'm going to close this as worksforme assuming we fixed in later versions. If/when you update to 22.08.1 and the crash still persists please reopen the issue. |