antimine-android icon indicating copy to clipboard operation
antimine-android copied to clipboard

Various glitches when app reopens after sleeping

Open NeatNit opened this issue 2 years ago • 12 comments

Describe the bug Tip: skip to the screenshots section, I have a habit of using too many words...

Thanks for a great, fun and free implementation of Minesweeper :)

Since the latest update (17.5.0 F), sometimes the game seems visually glitched when opening it. It feels like this happens when reloading an earlier state after Android has put the app to sleep in the background, but this is just my conjecture.

~~So far I've seen two things: Firstly~~, the tiles are just black with only flags visible. This fixed itself quickly enough that I don't even remember what exact action I took to fix it, and I don't have a screenshot of it (yet). This happened to me something like 3 times so far.

~~The second problem is so hard to describe and caught me completely off-guard, that I just had to record a video of it the first (and so far only) time it happened. Just take a look at that recording below.~~

To Reproduce

Wish I knew. I don't know how to force an app to sleep, and it's been happening very inconsistently.

What control style do you use? Single tap - Open. Double tap ‐ Flag.

Screenshots Ignore these - they are a separate issue which I will open later. I'll remove them from here soon

Screenshot_20231018_233050_Antimine

https://youtube.com/watch?v=0ghm7Rt_I6U (Github wouldn't let me upload the video here directly for some reason, without saying why...)

Android Version: 13

App Version 17.5.0 F

NeatNit avatar Oct 18 '23 22:10 NeatNit

Upon more occurrence and experimentation, I don't think the alignment issue is related to the app sleeping anymore. It's more likely to do with progressive games increasing board size.

As for the dark graphics glitch, I've got screenshots and a recording of it, it's not exactly as I described it. I'll try to attach it in a few minutes.

NeatNit avatar Oct 27 '23 08:10 NeatNit

https://github.com/lucasnlm/antimine-android/assets/2400026/792110db-e54f-4d18-867d-7f5fa2bbdb73

Screenshot_20231020_164040_Antimine

NeatNit avatar Oct 27 '23 08:10 NeatNit

I did some changes related to that in the next version. When it be released, can you check if it still happens?

lucasnlm avatar Oct 31 '23 20:10 lucasnlm

Sure, I don't think you'll be able to stop me :P

But keep in mind that it's an elusive bug that I haven't figured out how to reliably reproduce, so I'll never be able to conclusively say it's fixed.

NeatNit avatar Oct 31 '23 20:10 NeatNit

I've experienced similar issues after completing a game and starting a new one.

I play in Progressive Mode, so play for a few minutes and close the game to return later and repeat.

Today I completed a game and selected the option to start a new game. Then I got similar visual glitches to the ones shown on this issue.

A couple of screenshots with different zoom levels: antimine_1 antimine_2

My controls are: One press: flag, Long press: open (sorry if the translation is not right my system is not in English).

juanmbt avatar Nov 09 '23 03:11 juanmbt

@NeatNit @juanmbt Can you guys check if it happens on the latest version? I did some changes that may fix this bug.

lucasnlm avatar Nov 28 '23 21:11 lucasnlm

It hasn't happened to me I think since the first update after your reply. But it's hard to test, because it's not possible to change the initial size of a progressive game - I think it used to be possible, but now it's definitely not!

Also, the "fixed size" option in New Game for me is... Well see for yourself:

Screenshot_20231128_230843_Antimine

This probably warrants its own issue but I've been procrastinating it... Mostly by playing Antimine

NeatNit avatar Nov 28 '23 21:11 NeatNit

@NeatNit If you didn't see this bug anymore, then is a good signal. But I will keep this issue open for now.

lucasnlm avatar Nov 30 '23 01:11 lucasnlm

@lucasnlm I haven't experienced the visual glitches in a while. I've tried by closing the app or keeping it open and returning to it after a few hours/days.

juanmbt avatar Dec 01 '23 03:12 juanmbt

I opened #488 regarding the Fixed Size bug. Allowing to change the starting size for Progressive would also help test this bug - I think it happened when the board size increased (width or height), so reproducing would be easier if we didn't have to clear many huge boards between size increases.

NeatNit avatar Dec 09 '23 12:12 NeatNit

@NeatNit You mean a way to reset the initial value? Or really define it?

lucasnlm avatar Dec 13 '23 20:12 lucasnlm

idk if related but I just resumed a large game and my touch taps were off by one field and hit a mine because it hit the wrong cell after an hour of clearing and restarting after 2 weeks.

erdnuesse avatar Jun 12 '24 14:06 erdnuesse