AnKing-VIP / Custom-background-image-and-gear-icon

Customize the background image in the main Anki screen as well as replace the gear icon with an image
19 stars 7 forks source link

Home Screen of Anki Flashes/Glitches A Lot & Card Appears Blank/Answer Side Won't Show Every Few Cards #68

Open btsworld613 opened 10 months ago

btsworld613 commented 10 months ago

Problem description

After recently updating to 23.10.1, I've been having glitching issues of the main home screen way more than before. Especially when I start Anki, the Anki Deck home screen would flash transparent white or black. I also noticed that the entire bottom of the screen where it contains Get Shared, Create Deck, and Import File tabs sometimes appears totally black or white and glitches, and I would have to press Sync to get it to display properly.

When I'm reviewing, every few cards or so, sometimes the card appears blank, or even if the front side of the card shows, the answer side would not show/take a really long time to load. This never happened before I updated, and I disabled many add-ons that are not up to date with 23.10.1. Thank you!

Checklist

Please replace the space inside the brackets with an x if the following items apply:

What Anki version are you using?

*Please open Anki, go to Help → About (windows) or Anki → About Anki (mac) to find the version. Edit the value between the backticks below

Version ⁨23.10.1 (fac9e0ee)⁩
Python 3.9.15 Qt 6.6.0 PyQt 6.6.0
AnKingMed commented 10 months ago

Can you upload some screenshots and videos if possible so we can see what's going on?

btsworld613 commented 10 months ago

So this is a recording of when I'm starting up Anki on a default profile. You can see it flashing white. I don't get the same white flash every time, though. Sometimes, it's a transparent white, but that's not showing right now all of a sudden. That usually doesn't go away and I have to press Sync. It also sometimes flashes black on the lower tool bar, but I couldn't catch it in the video.

Also, I think the card appearing blank/answer not showing stopped? It's really strange because it's been like that since I updated to 23.10.1 last week. Maybe it's fixed now, thankfully, lol. Thank you for looking into it!

https://github.com/AnKing-VIP/Custom-background-image-and-gear-icon/assets/126623256/ff2edaf6-9b25-4e5f-85d8-9be8f6f07fce

btsworld613 commented 10 months ago

This photo is when I just started Anki (I erased the deck titles). It just happened again, so I was able to take a photo. The screen stays this way until I press Sync. You can see the transparent white part, and that the bottom third is like a block of white, and the way bottom (tool bar) is a black bar.

20231216_221619~2.jpg

AnKingMed commented 10 months ago

Can you upload the exact image you're using as the background here?

btsworld613 commented 10 months ago

Yes! It's from Pexels. Are the dimensions too large? I can't figure out how small the dimensions have to be in order for there to be no glitch, if that's what's causing the issue.

pexels-asad-photo-maldives-3601425

AnKingMed commented 10 months ago

It's only showing up as 1.4MB size for me. Is that the same for you? Not too terribly big. Does the same bug happen with the default images included with the add-on?

btsworld613 commented 10 months ago

It shows up as 1.29 MB for me.

I tested the default images and some of them still have the same bug. I've noticed that the white transparent-ish film doesn't show though, and the only issue was the bottom tool bar. The lower half of the tool bar would either show as black or white, covering the 3 buttons.

Once on startup when I was testing the MoonMountain background, only the image showed up and the decks were completely invisible/didn't show up on the screen at all.

Milkway (Default Image) 20231219_151724~2 (1)

Beach (Default Image) 20231219_152004~2

ColorfulLights (Default Image) 20231219_152216~2

AnKingMed commented 10 months ago

@abdnh @RisingOrange do either of you have any idea what's going on with this? We've had complaints of "flashing white" and stuff since the beginning and I've always thought it was related to reloading the background. I can't replicate this issue. Does the addon need a performance update or re-write?

abdnh commented 10 months ago

@tndk323 I assume you're the same person I replied to in the forum. Have you tried changing the video driver from the preferences as I suggested to see if that helps?

btsworld613 commented 10 months ago

I have already tried switching from Direct3D to Software before and although it's a bit better, the bug didn't seem to go away completely, unfortunately. "Software" version also lags a lot in general. There is scroll lag even when I'm scrolling very slowly. I know that "Software" is slower, but it's hard to use it on a daily basis due to the lag.

If the glitching issue can't be fixed, it's not a big problem, especially if it's just happening to me. I just really enjoy using your add-on, and was wondering if it was a possibility for it to be fixed. Thank you all for looking into it!!

abdnh commented 10 months ago

or even if the front side of the card shows, the answer side would not show/take a really long time to load.

Some of the issues you describe such as this are known issues in 23.10 that can be usually worked around by switching to the software driver. (I personally had this issue recently - it's very annoying)

But the flashing issue is commonly reported in the add-on as @AnKingMed said - I'll do some tests to try to reproduce it.