Bug 494055 - Fake empty cells during fast play
Summary: Fake empty cells during fast play
Status: RESOLVED FIXED
Alias: None
Product: kmines
Classification: Applications
Component: general (other bugs)
Version First Reported In: 4.0.23085
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Dmitry Suzdalev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-03 17:41 UTC by Jörg Bühmann
Modified: 2025-03-08 17:23 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Screen Recording (2.60 MB, video/mp4)
2024-10-03 17:41 UTC, Jörg Bühmann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jörg Bühmann 2024-10-03 17:41:07 UTC
Created attachment 174376 [details]
Screen Recording

SUMMARY
During fast mine hunting empty fields can show up, that aren't actually empty leading to possible mine explosion.
See attached video for a demonstration.

STEPS TO REPRODUCE
1. Open KMines
2. In the menu select: Settings -> Configure KMines
3. Enable "Explore with left click on number cells'
4. Start new game
5. Reveal a cell with a number higher than the adjacent covered fields
6. Press and hold the left mouse button inside the cell
7. Move mouse to a different cell
8. Release mouse button

OBSERVED RESULT
All neighboring cells show as empty.

EXPECTED RESULT
Neighboring cells show as hidden again.

SOFTWARE/OS VERSIONS
(available in the Info Center app, or by running `kinfo` in a terminal window)
Operating System: Kubuntu 24.04
KDE Plasma Version: 5.27.11
KDE Frameworks Version: 5.115.0
Qt Version: 5.15.13
Kernel Version: 6.8.0-45-generic (64-bit)
Graphics Platform: offscreen
Processors: 2
Memory: 1.9 GiB of RAM
Graphics Processor: virgl
 

ADDITIONAL INFORMATION
Inside a Parallels Desktop virtual machine.
Comment 1 Jörg Bühmann 2024-10-03 18:06:10 UTC
The bug likely happens somewhere after https://github.com/KDE/kmines/blob/13ad464a1b39399c06ee84c5370813ceae4d6bb2/src/minefielditem.cpp#L347C6-L347C36
Comment 2 Bug Janitor Service 2025-03-01 11:43:13 UTC
A possibly relevant merge request was started @ https://invent.kde.org/games/kmines/-/merge_requests/38
Comment 3 Albert Astals Cid 2025-03-08 17:23:11 UTC
Git commit 341f9a78c5b11b5b08551d5f8cc2634a903691a0 by Albert Astals Cid.
Committed on 08/03/2025 at 16:43.
Pushed by aacid into branch 'master'.

Fix showing cells when using 'Explore with left click on number cells'

M  +1    -2    src/minefielditem.cpp

https://invent.kde.org/games/kmines/-/commit/341f9a78c5b11b5b08551d5f8cc2634a903691a0
Comment 4 Albert Astals Cid 2025-03-08 17:23:55 UTC
Git commit 8aa00372f394f8b7a67b247e672d1694c00537db by Albert Astals Cid.
Committed on 08/03/2025 at 17:23.
Pushed by aacid into branch 'release/25.04'.

Fix showing cells when using 'Explore with left click on number cells'
(cherry picked from commit 341f9a78c5b11b5b08551d5f8cc2634a903691a0)

M  +1    -2    src/minefielditem.cpp

https://invent.kde.org/games/kmines/-/commit/8aa00372f394f8b7a67b247e672d1694c00537db