HearthSim / Hearthstone-Deck-Tracker

A deck tracker and deck manager for Hearthstone on Windows
https://hsreplay.net/downloads/
4.61k stars 1.11k forks source link

Overlay doesn't display ingame #3143

Open Baardy opened 7 years ago

Baardy commented 7 years ago

Bug report

Overlay is gone

Expected Behavior

Overlay showing up ingame

Actual Behavior

Overlay never shows up with my deck and my opponents deck ingame or not ingame

judge2020 commented 7 years ago

Please post logs https://github.com/HearthSim/Hearthstone-Deck-Tracker/wiki/Reporting-Issues#hdt-log-files

azeier commented 7 years ago

This seems to be an issue related to the newest windows update?

azeier commented 7 years ago

As a temporary workaround: you can enable options (advanced) > overlay > windows to see your and your opponents cards.

blurrydreams commented 7 years ago

Thanks for that workaround for now. I'm on windows 7 pro.

Baardy commented 7 years ago

3:04:43 PM|Info|Core.Initialize >> HDT: 1.1.7.0, Operating System: Windows 7 Ultimate 7601, .NET Framework: 394271 3:04:43 PM|Info|Updater.StartupUpdateCheck >> Checking for updates 3:04:43 PM|Info|Updater.GetReleaseUrl >> Downloading releases file 3:04:44 PM|Info|Updater.GetReleaseUrl >> using 'live' release: https://github.com/HearthSim/HDT-Releases 3:04:45 PM|Info|Updater.SquirrelUpdate >> Checking for updates (ignoreDelta=False) 3:04:47 PM|Info|Updater.SquirrelUpdate >> No new updated available 3:04:47 PM|Info|SplashScreenWindow.ShowConditional >> Showing splashscreen... 3:04:48 PM|Info|ThemeManager.LoadThemes >> Found theme: classic 3:04:48 PM|Info|ThemeManager.LoadThemes >> Found theme: dark 3:04:48 PM|Info|ThemeManager.LoadThemes >> Found theme: frost 3:04:48 PM|Info|ThemeManager.LoadThemes >> Found theme: minimal 3:04:48 PM|Info|GameV2.Reset >> -------- Reset --------- 3:04:48 PM|Info|OpponentSecrets.ClearSecrets >> Cleared secrets 3:04:49 PM|Info|OverlayWindow.Update >> Refreshed overlay topmost status 3:04:49 PM|Info|MainWindow.SelectDeck >> Switched to deck: [Spark] Mysterious Curator (Wild S36) (v1.0) 3:04:49 PM|Warning|LogReaderManager.Stop >> LogReaders could not be stopped, stop already in progress. 3:04:49 PM|Info|GameV2.Reset >> -------- Reset --------- 3:04:49 PM|Info|OpponentSecrets.ClearSecrets >> Cleared secrets 3:04:50 PM|Info|BackupManager.Run >> Running BackupManager 3:04:50 PM|Info|BackupManager.Run >> Creating backup for today 3:04:50 PM|Info|PluginManager.LoadPlugins >> Loading Plugins... 3:04:50 PM|Info|OverlayWindow.Update >> Refreshed overlay topmost status 3:04:50 PM|Info|ApiWrapper.UpdateAccountStatus >> Checking account status... 3:04:51 PM|Info|ApiWrapper.UpdateAccountStatus >> Id=0, Username=, Status=Anonymous 3:04:53 PM|Info|OverlayWindow.Update >> Refreshed overlay topmost status 3:05:01 PM|Info|OverlayWindow.Update >> Refreshed overlay topmost status 3:05:05 PM|Info|OverlayWindow.Update >> Refreshed overlay topmost status 3:05:18 PM|Info|OverlayWindow.Update >> Refreshed overlay topmost status

Discordia2023 commented 7 years ago

12:50:24 PM|Info|Core.Initialize >> HDT: 1.1.7.0, Operating System: Windows 10 Pro 14393, .NET Framework: 394802 12:50:24 PM|Info|Updater.StartupUpdateCheck >> Checking for updates 12:50:24 PM|Info|Updater.GetReleaseUrl >> Downloading releases file 12:50:25 PM|Info|Updater.GetReleaseUrl >> using 'live' release: https://github.com/HearthSim/HDT-Releases 12:50:27 PM|Info|Updater.SquirrelUpdate >> Checking for updates (ignoreDelta=False) 12:50:29 PM|Info|Updater.SquirrelUpdate >> No new updated available 12:50:29 PM|Info|SplashScreenWindow.ShowConditional >> Showing splashscreen... 12:50:29 PM|Info|ThemeManager.LoadThemes >> Found theme: classic 12:50:29 PM|Info|ThemeManager.LoadThemes >> Found theme: dark 12:50:29 PM|Info|ThemeManager.LoadThemes >> Found theme: frost 12:50:29 PM|Info|ThemeManager.LoadThemes >> Found theme: minimal 12:50:29 PM|Info|GameV2.Reset >> -------- Reset --------- 12:50:29 PM|Info|OpponentSecrets.ClearSecrets >> Cleared secrets 12:50:30 PM|Info|OverlayWindow.Update >> Refreshed overlay topmost status 12:50:31 PM|Info|MainWindow.SelectDeck >> Switched to deck: Midrange Jade (v1.0) 12:50:31 PM|Warning|LogReaderManager.Stop >> LogReaders could not be stopped, stop already in progress. 12:50:31 PM|Info|GameV2.Reset >> -------- Reset --------- 12:50:31 PM|Info|OpponentSecrets.ClearSecrets >> Cleared secrets 12:50:32 PM|Info|BackupManager.Run >> Running BackupManager 12:50:32 PM|Info|BackupManager.Run >> Backup for today already exists 12:50:32 PM|Info|PluginManager.LoadPlugins >> Loading Plugins... 12:50:32 PM|Info|ApiWrapper.UpdateAccountStatus >> Checking account status... 12:50:33 PM|Info|ApiWrapper.UpdateAccountStatus >> Id=0, Username=, Status=Anonymous 12:50:35 PM|Info|OverlayWindow.Update >> Refreshed overlay topmost status 12:50:38|Info|LogReader.ReadLogFile >> Found LoadingScreen.log. 12:50:39 PM|Info|GameV2.CurrentMode >> LOGIN 12:50:44|Info|LogReader.ReadLogFile >> Found Rachelle.log. 12:50:51|Info|LogReader.ReadLogFile >> Found FullScreenFX.log. 12:50:53 PM|Info|GameV2.CurrentMode >> HUB 12:50:53 PM|Info|LoadingScreenHandler.CheckMirrorStatus >> Mirror status: Ok 12:50:59 PM|Info|OverlayWindow.Update >> Refreshed overlay topmost status 12:51:05 PM|Info|OverlayWindow.Update >> Refreshed overlay topmost status 12:51:06 PM|Info|OverlayWindow.Update >> Refreshed overlay topmost status 12:51:06 PM|Info|OverlayWindow.Update >> Refreshed overlay topmost status 12:51:12 PM|Info|OverlayWindow.Update >> Refreshed overlay topmost status 12:51:16 PM|Info|OverlayWindow.Update >> Refreshed overlay topmost status 12:51:19 PM|Info|Core.UpdateOverlayAsync >> Exited game 12:51:19 PM|Info|Core.UpdateOverlayAsync >> Reset region 12:51:20 PM|Info|LogReaderManager.Stop >> Stopped LogReaders. 12:51:20 PM|Info|GameV2.Reset >> -------- Reset --------- 12:51:20 PM|Info|OpponentSecrets.ClearSecrets >> Cleared secrets 12:51:20 PM|Info|MainWindow.Window_Closing >> Shutting down... 12:51:21 PM|Info|LogReaderManager.Restart >> Restarting LogReaders. 12:51:21 PM|Info|LogReaderManager.Stop >> Stopped LogReaders.

Discordia2023 commented 7 years ago

What version of windows are you guys on? Windows 10 Pro x64 Any difference on windowed vs fullscreen? No difference

My error started when I update my pc (programs, drivers, windows) Programs - Programs most important avast had a new version of the program. Drivers - No updates Windows - Cumulative Update for Windows 10 Version 1607 for x64-based Systems (KB4015438)

MannimStein commented 7 years ago

Windows 10 Pro x 64 for me the issue started before Windows - Cumulative Update for Windows 10 Version 1607 for x64-based Systems (KB4015438) got installed. Also the last program update of Avast on my system was on March 30th. I updated the AMD drivers today. And the Avast virus definitions. And Decktracker. And I think Hearthstone? No difference Fullscreen vs Windowed. Also the Player and Opponent windows show only white with the Deck Tracker Symbol half of the time?

schtrok commented 7 years ago

Win 8.1 here. Problem started after HDT update. I can get the overlay to work in menu but it disapears ingame. I can actually get it to appear by toggling "hide completely" but then it imediately disapears after changing focus to hearthstone

DarthPapaBear commented 7 years ago

Same problem for me after Windows 10 most recent update. I was having issues with the overlay disappearing after alt-tabbing to a different window. Quitting and restarting the tracker fixed it. I have a laptop I have not updated Windows on and the tracker is working with no issues. Hopefully this is fixed soon.

Schugkof commented 7 years ago

Got the same problem when iam outside of Hs and i press Hide in menu it show up but as soon as i go back into hs it just dissapears

azeier commented 7 years ago

Installed all available windows (10) updates on two machines, not able to reproduce it :/.

Maybe some specific setting is causing this? Please try renaming/deleting the %AppData%/HearthstoneDeckTracker/config.xml (options > tracker > settings > open appdata folder) and see if this still happens - close HDT before deleting the file.

Also please make sure you are on the latest HDT version: v1.2.1

DarthPapaBear commented 7 years ago

Can you please describe how to do that more specifically? Is that a directory? A registry entry?

azeier commented 7 years ago
DarthPapaBear commented 7 years ago

Yeah, figured it out, but still no love. Any other suggestions? If I go into options and click on one of the 'hide' options, the overlay appears for a second and disappears again if that helps.

Discordia2023 commented 7 years ago

I have the newly formatted pc with a new copy of HDT and it still has the same problem.

azeier commented 7 years ago

Anyone here, having this issue, with a dev background and willing to debug? I will of course help any way I can.

DarthPapaBear commented 7 years ago

I don't have a dev background, but I am in school for IT so I'm somewhat savvy. I also have a laptop on which the app is still working. I'll help any way I can.

gem85247 commented 7 years ago

having the same issue here windows 8.1, honestly I dont think it has to do with an windows update...

azeier commented 7 years ago

So, some technical context: I think somehow the overlay window is losing it's topmost state, which should be updated in OverlayWindow.Update, called from the main update loop if hearthstone is in foreground. In addition to that, OverlayWindow.UpdatePosition (also called from the main update loop) calls ShowOverlay to ensure hearthstone is actually the window in foreground and receiving clicks. The problem is most likely somewhere in this or related to this.

DarthPapaBear commented 7 years ago

I updated to an optional video driver update and no help. While in the options, I clicked the reset overlay button and the overlay then appears, but when I go back to hearthstone it disappears. I agree that somehow the overlay is losing it's topmost state. Any guesses on a fix or a troubleshooting next step?

MannimStein commented 7 years ago

For me a rollback of the display driver plus a following reboot solved the issue. Just a simple roleback in the Windows device manager, not even a clean install required. The issue appeared after I updated the driver and disappeared after I returned to the previous version. Radeon Software Crimson ReLive Edition 17.4.1 - that's the culprit for me. 17.3.3 works fine.

DarthPapaBear commented 7 years ago

I rolled back to 17.3.3 and still doesn't work.

Discordia2023 commented 7 years ago

It could be a privilege problem. I tried running the HDT with administrator privileges and for the moment seems to be working as it should be.

I do not know why I did not think of it before ...

Forgive my terrible english.

Dazamin commented 7 years ago

Running as admin seems to work for me too, although it means I can't just have HDT auto start anymore

DarthPapaBear commented 7 years ago

Yeah, worked for me too. Thanks a lot Discordia!

Tharrix commented 7 years ago

I've been having the same problem for the past couple of days. Occasionally I can get the overlay to appear if I change settings in HDT or something, but as soon as I click on Hearthstone it disappears behind the game. I can see it in my streaming overlay if I hover my mouse over that window down in the task bar but otherwise go back to Hearthstone and it's gone. HDT is still tracking the games.

I tried the above fixes without success (I haven't tried re-installing Hearthstone yet). The open as admin route is working for now.

mickaellalande commented 7 years ago

I have the same problem on Windows 7 (form few days) but the open as admin doesn't work for me... I've tried to uninstall and install back HDT but nothing works. I can see it if I go in the options : Windows->Topmost but as soon as I click on my Hearthstone windows it disappear. I'm glad to see some other people have the same issue but the admin start doesn't work for me so I start to give up... it's sad because it's a good ad-don.

UPDATE: I tried to uninstall and reinstall hearthstone, but still no change as soon I click on the game the HDT layout disappear.

UPDATE again: I've just got a new thing, my screen froze for a while and it came back for a while (even when click it stayed), but as soon as I went on my other screen and came back it went away again... so it's may be because of 2 screens ? I don't know I'll try to disconnect my second screen to watch if it works, I'll tell you the result when I have time.

gem85247 commented 7 years ago

wow running as admin solved it for me aswell

PuppetMaster000 commented 7 years ago

Ah I wasn't paying attention to this as it was 4 days ago and my issue started today, sorry about that. But even though running as admin works so far, this also seems as a temporary solution. I don't want to sound like a whiny child but it is really not preferable to constantly run as admin to open. I guess something is better than nothing for now at least. Thanks!

MalygosQ commented 7 years ago

run as admin to open dont help

2017-04-07 15:32 GMT+03:00 PuppetMaster000 notifications@github.com:

Ah I wasn't paying attention to this as it was 4 days ago and my issue started today, sorry about that. But even though running as admin works so far, this also seems as a temporary solution. I don't want to sound like a whiny child but it is really not preferable to constantly run as admin to open. I guess something is better than nothing for now at least. Thanks!

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/HearthSim/Hearthstone-Deck-Tracker/issues/3143#issuecomment-292524178, or mute the thread https://github.com/notifications/unsubscribe-auth/AZwjcddFIozklHJXf1KbjoiYpz7uyltGks5rtizpgaJpZM4Mx7Io .

Kamamura commented 7 years ago

Hello, I am having the same problem, made an account just to be able to comment.

Problem started with the 1.2.0 update (Ungoro cards introduction). I thought it was related to new cards not being out yet, but it persisted even after release. The problem manifests as HDT overlay not being visible when HS window has focus. However, when I switch focus to HDS, and for example change Opacity of the overlay, the overlay reappears, and changes opacity and/or position according to settings. However, the second focus returns to HS window, the Overlay immediately disappears - true for Full Screen and Window mode.

However, the overlay is actually being rendered, because if I resize the HS window, or drag it around, the overlay sort of lags behind, and is briefly visible when the HS window is dragged/resized.

The problem disappears when HDT is run as administrator, however, for security reasons, I would prefer to run applications as HDT under a non-privileged user. I will assist in debugging if asked.

Any assistance/solution would be greatly appreciated.

Thank you for your fantastic work.

Madi921 commented 7 years ago

I tried running in administrator, but for me, it dosent working.

Truealex64 commented 7 years ago

I have the same problem since Un'Goro came out. If you set hearthstone to window mod and drag it around you can see HDT overlay behind the hearthstone window, i have no idea how does this work and how to fix this, nothing sad before helped me but thank you for trying!

ManJelL commented 7 years ago

Running the HDT in administrator didnt help me either. I'm using Windows 7 with the latest update. Tryed everything. Why is there no fix after one week?

azeier commented 7 years ago

Why is there no fix after one week?

Because I can't reproduce it and have zero idea what might be causing it.

Kamamura commented 7 years ago

Would any debug output help the author to determine the cause of the problem? I am affected when running the client unprivileged, and I am willing to provide assistance in troubleshooting.

It's clearly related to permissions, perhaps the most recent Windows update changed something critical?

ManJelL commented 7 years ago

It must have something to do with the order of the active windows. It sometimes apears randomly. Also disabling the overlay in the options a few times does make it show up. But it disapears again after you click somewhere in the game.

azeier commented 7 years ago

Can't think of any output that would help.

There's two options really:

  1. Somehow the overlay is just "losing" its topmost state
  2. Somehow hearthstone is set to topmost

It being fixed by permissions don't really make senses to me in either.

I doubt it but worth a shot: Is Hearthstone running as admin by any chance?

azeier commented 7 years ago

Someone give this a try without running it as admin: HDT-1.2.2-overlay-1.zip

Using native SetWindowPos to set the topmost state.

Dazamin commented 7 years ago

Still the same issue, works as admin, not without. As someone else mentioned, you can switch overlay on an off and it will show (and keep showing as long as you stay on the HS window) but disappear if you switch windows and then come back to HS.

Kamamura commented 7 years ago

Tested it, unfortunately, the problem persists. 

  From: Alex Zeier <notifications@github.com>

To: HearthSim/Hearthstone-Deck-Tracker Hearthstone-Deck-Tracker@noreply.github.com Cc: Kamamura kamamura@yahoo.com; Comment comment@noreply.github.com Sent: Monday, April 10, 2017 6:24 PM Subject: Re: [HearthSim/Hearthstone-Deck-Tracker] Overlay doesn't display ingame (#3143)

Someone give this a try without running it as admin: HDT-1.2.2-overlay-1.zipUsing native SetWindowPos to set the topmost state.— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

Kamamura commented 7 years ago

No, Hearthstone runs under my regular user. 

  From: Alex Zeier <notifications@github.com>

To: HearthSim/Hearthstone-Deck-Tracker Hearthstone-Deck-Tracker@noreply.github.com Cc: Kamamura kamamura@yahoo.com; Comment comment@noreply.github.com Sent: Monday, April 10, 2017 6:01 PM Subject: Re: [HearthSim/Hearthstone-Deck-Tracker] Overlay doesn't display ingame (#3143)

Can't think of any output that would help.There's two options really:

rorgier10 commented 7 years ago

I also have the same problem, Hearthstone is on top above the decktracker. Decktracker still functions in all it's ways, like giving the wins and losses and flashing on the start of my turn.

Tried re installing Decktracker multiple times and restarting aswell. Running as admin does not do anything for me. (running windows 7)

Hopefully this gets fixed soon, love this application. If I can help in any just ask.

azeier commented 7 years ago

Is the Hearthstone window set to topmost when this happens? I.e. when in windowed mode, can other windows cover (part of) Hearthstone?

Something like that just happened to me but was gone after maximizing Hearthstone.

rorgier10 commented 7 years ago

Going to try this as soon as the hearthstone servers are working again, I'll update as soon as they work

ManJelL commented 7 years ago

Whatever it is, what is causing this, it got something to do with the latest heartstone update. I didnt install any windows 7 updates until today (set to manual update-mode).

rorgier10 commented 7 years ago

Putting another application on top of hearthstone in windowed is possible like normal, if i put discord on top of hearthstone hearthstone still runs and all, but whenever clicking hearthstone discord goes to the background, but this is the same for all applications.

While moving hearthstone in windowed mode the decks of the decktracker lack behind just a little so you can see them moving behind the hearthstone window and cathing up and going underneath it again.

azeier commented 7 years ago

Under options (advanced) > overlay > window, enable Player and Topmost. Then drag that window over Hearthstone. Does it stay on top when clicking into other windows/Hearthstone?

MonsieurChaunce commented 7 years ago

Hey was just about to respond when you closed it. I'm having the same problem and I'm almost positive it's a layers issue. The tracker will show up when you mess with its setting but as soon as you go back into the game it disappears. The player window will have the same exact behavior unless you check the topmost option for it like you said. Once that's checked it remains visible while everything else is behind hearthstone client.

I should also note that you can sometimes get the normal deck tracker window to stay up in the client while messing with its settings under options, but I have yet to find a reliable way to replicate that behavior it seems hit or miss on what causes it to stay up until you tab out of the client again. Hope this helps with a fix! Good luck