mike-ward / tweetz

Twitter Desktop Client in .NET Core for Windows 10
MIT License
127 stars 20 forks source link

Tweetz sometimes pulling the wrong profile picture... and when it's wrong, it's always the same one! #71

Open gungfujoe opened 3 years ago

gungfujoe commented 3 years ago

I'm using Tweetz 2.9.4, and I'm noticing that there's one account that I follow (@hemantmehta) whose profile picture seems to get stuck in some Tweetz cache, such that it shows up on random tweets from various other people. It's not the same people, and it's not consistent from minute to minute. A new tweet will come in, and a tweet that had Hemant's photo on it will have disappeared and be replaced by the proper picture. Another tweet will come in, and that old tweet will have Hemant's photo on it again. I haven't noticed this problem with any other photos, just this one. His photo isn't appearing on every tweet at once, just random ones. Right now, if I scroll through the first 12 tweets, his picture is on two of them, even though none of the 12 most recent posts are his.

Here are a bunch of examples in screenshot form. I snapped all of these within a span of 2-3 minutes and put them into a single image. You'll notice that the tweet furthest to the right is the same as the one in the middle, but it's one minute later. Another couple minute later, that same tweet was showing Hemant's photo again, not Brian's.

I've noticed this problem for the last few weeks (always specifically with Hemant's photo appearing in place of other Twitter profile pictures). I can't say for sure that it started with 2.9.4, but if not, it started with a recent version.

mike-ward commented 3 years ago

Tweetz does not cache images per-se. The WPF framework that Tweetz is built on does have some short term caching characteristics but nothing long term like you're experiencing. WPF often has issues when graphics drivers are out of date. The first course of action is to make sure you're up to date on drivers. This has resolved issues similar to this for others sometimes. Sorry I can't be more help.

gungfujoe commented 3 years ago

I was using nVidia's drivers from a month or so ago, so it's possible that they had a bug in that version. Yesterday, I installed video drivers that were released five days ago. I'll keep an eye out for a return of the problem, and see if that fixed it. Thanks for the response!

gungfujoe commented 3 years ago

Same problem exists with the latest video drivers (nVidia's 461.40 drivers on a GeForce 2070 Super card in Win 10 x64 v1909, build 18363.1316). I just looked over at the Tweetz window and thought "that's weird, why is Hemant posting about Virginia politics?" Then I realized his picture was showing for the Virginia Public Access Project account (vpapupdates).

I don't think this is a graphics driver issue. Perhaps the WPF framework itself is doing something weird, perhaps with how it uses the graphics drivers, even if Tweetz itself isn't.

On a possibly-related note, installing Tweetz v2.9.5 yesterday gave me the first BSOD I've ever seen in Windows 10. Re-launching it crashed the graphics drivers beyond the point of recovery (manually rebooting the machine resolved the problem). I've occasionally seen the screen blank out while the graphics driver restarted over the years, and Windows attempted to do that 3-5 times in this instance, but each attempt failed, and it gave me an unrecoverable blue screen.

mike-ward commented 3 years ago

BSOD's indicate a kernel crash, which is where drivers run. Do you see the caching issue on other computers?

gungfujoe commented 3 years ago

I don't have any other PCs running Tweetz, so I unfortunately can't say whether the problem appears elsewhere. I have one other PC I can install it on, but since it's my HTPC, I'm much less likely to see the problem. The machine is only on for a few hours a day at most, and for all but a few minutes of that, it's playing full-screen video.

Tweetz is definitely doing something weird with/to graphics drivers. I recently started playing "Star Wars: Squadrons," and nearly every time I launch the game, it minimizes and kicks back to the desktop (it's still open, and if I try to go back into it, it again minimizes and kicks back to the desktop). As soon as I close Tweetz, the problem vanishes.

ScottYates commented 3 years ago

I am seeing the same behavior. Also in Windows 10. Running version 2021.1. This is what it looks like. In my instance it is always the "DEV" icon that replaces others.

image

If it helps, here is the info from dxdiag: DxDiag.txt

Thank you for Tweetz btw. It is pretty much exactly what I wanted. If I can help more directly, please let me know.

gungfujoe commented 2 years ago

For what it's worth, I have not seen this issue in quite a few months. I suspect it may have been fixed incidentally by one of the changes made since mid-2021.

mike-ward commented 2 years ago

Good to know. I vaguely remember turning down the caching somewhere but forget the details.