Bug 459856

Summary: I discovered the game while playing on a laptop using the touchpad. When I hover over a number the area around the short one I want to open, then you do this by double-clicking on the touch and or dragging, then sometimes neighboring areas simply disappea
Product: [Applications] kmines Reporter: Anchar <flazhka>
Component: generalAssignee: Dmitry Suzdalev <dimsuz>
Status: REPORTED ---    
Severity: normal CC: aacid, dacoch215, glutaminefree, kde-games-bugs-null
Priority: NOR    
Version First Reported In: 4.0.21123   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: The screenshot shows an example, I clicked on 1 under the mine and 2 opened and the cell next to 2 also became invisible.
another example of the neighboring tile mine count being wrong
Screenshot of wrong mine count
invisible cells

Description Anchar 2022-09-30 12:27:38 UTC
Created attachment 152518 [details]
The screenshot shows an example, I clicked on 1 under the mine and 2 opened and the cell next to 2 also became invisible.

SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
When I try right-click to automatically open empty areas where there are definitely no mines, some of the cells with and without mines, around the number, disappear - that is, only the background of the program is visible. After a few more clicks on neighboring cells, the disappeared cells are displayed again.

OBSERVED RESULT
I cells with mines or without properly disappear, the background of the application remains.

EXPECTED RESULT
I cells with or without mines to open.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Kubuntu 22.04
KDE Plasma Version: 5.25.5
KDE Frameworks Version: 5.98.0
Qt Version: 5.15.3

ADDITIONAL INFORMATION
Comment 1 Anchar 2022-09-30 12:29:52 UTC
I apologize in advance if I'm filling out the bug report incorrectly.
Comment 2 dacoch215@estudiantec.cr 2022-10-07 00:51:38 UTC
Created attachment 152625 [details]
another example of the neighboring tile mine count being wrong
Comment 3 dacoch215@estudiantec.cr 2022-10-07 00:52:49 UTC
(In reply to dacoch215@estudiantec.cr from comment #2)
> Created attachment 152625 [details]
> another example of the neighboring tile mine count being wrong

I'm seeing this in manjaro, kmines version 4.0.22081
Comment 4 Albert Astals Cid 2022-10-07 20:45:09 UTC
(In reply to dacoch215@estudiantec.cr from comment #2)
> Created attachment 152625 [details]
> another example of the neighboring tile mine count being wrong

What's wrong?
Comment 5 dacoch215@estudiantec.cr 2022-10-08 02:24:54 UTC
(In reply to Albert Astals Cid from comment #4)
> (In reply to dacoch215@estudiantec.cr from comment #2)
> > Created attachment 152625 [details]
> > another example of the neighboring tile mine count being wrong
> 
> What's wrong?

near the mine that ended the game there's a tile with 1, but it should have a 2, because 2 of the 8 neighboring tiles have mines
Comment 6 Albert Astals Cid 2022-10-08 23:32:06 UTC
(In reply to dacoch215@estudiantec.cr from comment #5)
> (In reply to Albert Astals Cid from comment #4)
> > (In reply to dacoch215@estudiantec.cr from comment #2)
> > > Created attachment 152625 [details]
> > > another example of the neighboring tile mine count being wrong
> > 
> > What's wrong?
> 
> near the mine that ended the game there's a tile with 1, but it should have
> a 2, because 2 of the 8 neighboring tiles have mines

Can you please point with the tile with an arrow so i can see which one you think it's wrong?
Comment 7 dacoch215@estudiantec.cr 2022-10-09 08:32:42 UTC
Created attachment 152655 [details]
Screenshot of wrong mine count

of the 8 green neighbors, 2 are mines, so the count should be 2, right?
Comment 8 Albert Astals Cid 2022-10-09 21:12:24 UTC
(In reply to dacoch215@estudiantec.cr from comment #7)
> Created attachment 152655 [details]
> Screenshot of wrong mine count
> 
> of the 8 green neighbors, 2 are mines, so the count should be 2, right?

There's only 1 neighbor that is a mine, the mine that has an X over the mine isn't you made a mistake there.
Comment 9 dacoch215@estudiantec.cr 2022-10-09 22:06:08 UTC
(In reply to Albert Astals Cid from comment #8)
> (In reply to dacoch215@estudiantec.cr from comment #7)
> > Created attachment 152655 [details]
> > Screenshot of wrong mine count
> > 
> > of the 8 green neighbors, 2 are mines, so the count should be 2, right?
> 
> There's only 1 neighbor that is a mine, the mine that has an X over the mine
> isn't you made a mistake there.

I think I misunderstood the X over the mine, which I guess means there wasn't a mine there, so in my screenshot I did click on a mine, but the original screenshot by Anchar does show a miscount, there's a 2, when it should be a 1
Comment 10 glutaminefree 2026-02-05 08:28:47 UTC
Created attachment 189236 [details]
invisible cells
Comment 11 glutaminefree 2026-02-05 08:29:45 UTC
Comment on attachment 189236 [details]
invisible cells

Got same error on:
Fedora 43 (Wayland)
with KDE Plasma 6.5.5
on laptop MSI Katana 17 HX B14WGK
with NVIDIA GeForce RTX 5070
and nvidia drivers 580.119.02 from RPM Fusion repo.
Version of KMines is 4.0.25121.

When I click with left and right mouse buttons at same time to check empty cells, sometimes some cells become invisible. If i click left+right buttons near that cells some more times, that cells become visible again.