Summary: | KJumpingCube crashes in 2-player-game on winning condition | ||
---|---|---|---|
Product: | [Applications] kjumpingcube | Reporter: | Martin Walch <walch.martin> |
Component: | general | Assignee: | Ian Wadham <iandw.au> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | kde-games-bugs |
Priority: | NOR | ||
Version: | 2.0 | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | http://commits.kde.org/kjumpingcube/2aead7b5bd31acf6379f5cbec36b76607ffe67c5 | Version Fixed In: | 2.0 (KDE SC 4.10.4) |
Sentry Crash Report: |
Description
Martin Walch
2013-05-05 11:55:05 UTC
This sequence of moves works for me most of the time (player 2 wins), but sometimes it crashes. Also, both players have one or more opportunities to win earlier in the game and those alternative scenarios mostly work for me but sometimes crash. Git commit a3d9f5f2eb3a0cc2ecea1511bcec9d554c3d88e9 by Ian Wadham. Committed on 10/05/2013 at 08:31. Pushed by ianw into branch 'KDE/4.10'. M +1 -16 ai_main.cpp http://commits.kde.org/kjumpingcube/a3d9f5f2eb3a0cc2ecea1511bcec9d554c3d88e9 Git commit 2aead7b5bd31acf6379f5cbec36b76607ffe67c5 by Ian Wadham. Committed on 10/05/2013 at 08:31. Pushed by ianw into branch 'master'. M +1 -16 ai_main.cpp http://commits.kde.org/kjumpingcube/2aead7b5bd31acf6379f5cbec36b76607ffe67c5 In a person-v-person game the array m_maxValues, used in AI_Main::dumpStats(), was not getting allocated by the AI, so an attempt to delete it caused a crash at the end of the game. The fix removes the debug code that caused the problem. |