Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uneven permissions #2738

Open
curt1ce opened this issue Aug 8, 2016 · 71 comments
Open

Uneven permissions #2738

curt1ce opened this issue Aug 8, 2016 · 71 comments

Comments

@curt1ce
Copy link

curt1ce commented Aug 8, 2016

I never had this issue till the latest update I just downloaded.
image

That is the error message I keep on receiving. I tried everything it says there and still can't fix the problem. Any and all help is greatly appreciated. Thanks

@azeier
Copy link
Member

azeier commented Aug 8, 2016

Maybe try reinstalling HDT (https://hsdecktracker.net).

Did anything on your machine change? New users added, windows updates, etc since it worked?

@Psycho58
Copy link

Psycho58 commented Aug 8, 2016

Hey,
Same problem here, since the last patch keep showing the same message.
Sometimes it works, I don't know why, but 90% of the time the error shows.
I tried every combination to make it work but nothing.
Thanks and hope you can find the solution

@Psycho58
Copy link

Psycho58 commented Aug 8, 2016

Me again,
I have also some problems with another lay-out program (Overwolf / Heartharena) that won't appear on game and I cannot open it on game. Could it be a problem from Blizzard (I doubt it, because every one will have the same problem) or me and curt1ce and maybe others have exactly the same problem.
Thanks

@curt1ce
Copy link
Author

curt1ce commented Aug 9, 2016

I have already tried reinstalling it multiple times to no avail. I can't even get mine to work at all. It says that error message every single time. Also, nothing has changed on my PC. I have the same everything from the last time HDT worked.

@azeier
Copy link
Member

azeier commented Aug 9, 2016

Two things you could try:

  • Set your account to (non-)administrator - depending on what it currently is.
  • See if reinstalling Hearthstone helps.

@Psycho58
Copy link

Psycho58 commented Aug 9, 2016

Hey,
I tried both things you said but didn't work. however I have probably found the solution.
Try to launch Battle.net in administrator mode, than launch Hearthstone from battle.net, and finally launch in administrator mode the Hearthstone tracker. It worked for me.
Hope it will work the other times as well.
Thanks

@curt1ce
Copy link
Author

curt1ce commented Aug 9, 2016

I tried another account and reinstalling and tried what Psycho58 said multiple times already and still can't get it to work. Any other possible solutions?

@TheSaintBol
Copy link

TheSaintBol commented Aug 20, 2016

same issue here tried reinstall HS and HDT ans stop closing all issues pls

@gendalv
Copy link

gendalv commented Oct 12, 2016

1.1.1 started to get this issue, also can't export decks, don't have opponent played cards list, doesn't sum the damage.
Has tried uninstall logs&data via built-in tool, launching as amin hdt&battlenet.

@blaice
Copy link

blaice commented Nov 27, 2016

I am having the same issue. Not only did 1.1.1 fail to update automatically, but when I installed it, it completely shat on what was once a good app. The app is so buggy and unstable now it is unbearable. I can't even use it anymore. FULL uninstall more than 3 times, tried running EVERYthing as admin and not and back and etc. Making your app unusable is not intuitive. I liked it a lot before. Too bad. Gotta look for a new one now.

@azeier
Copy link
Member

azeier commented Nov 27, 2016

What do you mean by "before"? HDT has not changed much in a long time.

@blaice
Copy link

blaice commented Nov 27, 2016

The version before 1.1.1 is what I mean by "changed." As an update is a literal inclusion of the definition change, as in changing from previous build? The previous build is better is what I'm implying, and 1.1.1 is regression at it's finest.

@blaice
Copy link

blaice commented Nov 27, 2016

The website also does not enable previous builds to be accessed, so my only access is to a dysfunctional version. Otherwise I would download the previous working version again.

@jleclanche
Copy link
Member

@blaice Uneven permissions means you are not running HDT and Hearthstone (usually, the Battle.net launcher) as the same user. Usually, that means you're running the Battle.net launcher as admin.

Previous builds can be accessed from the Github releases list (older releases). But I would instead highly recommend you fix how you are running Battle.net / Hearthstone, because this is usually a source of other potential issues. We see it a lot with users who previously tried to work around Battle.net bugs by running it as admin and leave it like that.

@blaice
Copy link

blaice commented Nov 27, 2016

@jleclanche I am sorry you believe I am inept, but not only did I change the compatibility for bnet launcher, hearthstone, and the deck tracker, but I also tried changing the compatibility for all three in the roaming app data section—and it has made literally no difference. It works when I first install it maybe a couple times at max, then continues not to work for the next dozen or more times I try it (this is without changing anything). Thanks for the info about older releases though; I will look into downloading the previous version and see if it rectifies this new problem.

@jleclanche
Copy link
Member

@blaice I didn't say anything like that, and I get that you're upset but I'd really like it if you toned down the hostility. Both @azeier and I are trying to help you fix this.

Previous releases are here (most recent first): https://github.com/HearthSim/Hearthstone-Deck-Tracker/releases

If you're willing to debug this further, I'd recommend starting with the task manager (running as admin) and taking a look at which process is owned by which user. If you can confirm that both HDT and Battle.net are correctly running as the same user, then this could be a different issue.

@blaice
Copy link

blaice commented Nov 27, 2016

@jleclanche There are like 4 different access points to bnet launchers though for some reason unbeknownst to me. Blizzard I guess. I will also try changing compat for those as well. So far, it has seemed to help. I'll see as I try to use it a few more times, but I had to change compat for literally 4 different bnet access points....

@jleclanche
Copy link
Member

Yes, the Battle.net launcher itself has an "agent" background process and further subprocesses the apps it launches. It's a tangled mess.

@blaice
Copy link

blaice commented Nov 27, 2016

@jleclanche Apologies if you sensed hostility, but the tone is hard to tell in text. I appreciate the help, was just frustrated I changed nothing, yet it stopped working. Will see if it stays working.

@FamiliesAndDragons
Copy link

As many people have stated above. I've done everything already listed and im also having the same problem.

@Demonsuji
Copy link

Thanks for adding me to this thread. What's the best way to be notified of news related to these issues?

@azeier
Copy link
Member

azeier commented Dec 11, 2016

@Demonsuji Github should automatically subscribe you to issues you comment on. Otherwise you can find the button for it on the right.

@azeier
Copy link
Member

azeier commented Dec 15, 2016

Can someone get me the HDT log from a session where this happens?

@nicoell
Copy link

nicoell commented Dec 30, 2016

Ran into this problem too, here's the HDT log.
Decktracker & Hearthstone run normally, not as admin:
http://pastebin.com/1HX5qav9
Decktracker run as admin, Hearthstone normally:
http://pastebin.com/5zPVx6DP

@MikeMNN
Copy link

MikeMNN commented Jan 7, 2017

Also attaching my logs
hdt_log_1483779284.txt
But even without attaching, can say, that you have Win Api issures. I had same problems in C++ few time ago, but it is too hard to remember, what solution I had found.. Problem also was in snapshoting processes and trying to get their info. One thing I can tell you confidently, solution was found a nd it was in another WinApi functions for working with processes. Not sure, that in C# there same methods, but think it would be stupid from Microsoft make it only for one language

@kissoff
Copy link

kissoff commented Sep 24, 2017

Same issue here. Following.

@riQQ
Copy link
Collaborator

riQQ commented Mar 13, 2018

Could someone try the following test program, that tries to open the Hearthstone process with a reduced set of access rights:

@azeier
Copy link
Member

azeier commented Mar 15, 2018

I just randomly had this issue too for a while, starting Hearthstone via the button in HDT seemed to work for me.

@Doyle4869
Copy link

I just set HDT to open as admin and restarted PC and now it works fine.
Needed the restart tho.

@riQQ
Copy link
Collaborator

riQQ commented May 24, 2018

Testing with a user showed that opening the process with reduced process access works (ProcessAccess.PROCESS_QUERY_INFORMATION | ProcessAccess.PROCESS_VM_READ) while opening it with full access fails.

riQQ added a commit to riQQ/HearthMirror that referenced this issue Jun 3, 2018
@Jaroslove17
Copy link

Had this annoying problem,tried many things,didnt help at all. Adding these folders into firewall exception list solved the problem for me. I have Avast antivirus. Those folders are in C:/users/username/AppData/Local/
image
I suppose antivirus senses unexisting danger from Decktracker interacting with Hearthstone,like adware viruses infect browsers.

riQQ added a commit to riQQ/Hearthstone-Deck-Tracker that referenced this issue Aug 8, 2018
Use minimal process access rights to determine the path of the Hearthstone
executable. This should help with HearthSim#2738 in some cases.
azeier pushed a commit that referenced this issue Aug 9, 2018
Use minimal process access rights to determine the path of the Hearthstone
executable. This should help with #2738 in some cases.
@riQQ
Copy link
Collaborator

riQQ commented Aug 9, 2018

Here's a test release that might fix this issues for some of you: https://github.com/HearthSim/HDT-dev-builds/releases/download/v1.7.2-dev3668/HDT-Installer.exe

This version will overwrite your current installation (keeps settings, stats etc) and automatically update to the next stable release once available.

Let me know if you notice any issues.

@riQQ
Copy link
Collaborator

riQQ commented Aug 28, 2018

Is anyone still having this issue?

@riQQ riQQ changed the title Uneven permissions. Uneven permissions. Aug 28, 2018
@riQQ riQQ changed the title Uneven permissions. Uneven permissions Aug 28, 2018
@Nurgz
Copy link

Nurgz commented Jun 6, 2019

I have this issue as of the most recent patch. nothing I try fixes it. I've tried re-installing both and I've tried running in admin. HDT works, but it won't sync with my game so my data hasn't uploaded since before the new patch.

I have no idea how to fix it, but I hope someone can help as inn keeper doesn't work any more neither so I have no options now.

@Nurgz
Copy link

Nurgz commented Jun 6, 2019

hey guys. sorry for all the comments. just letting you know that my issue was also with avast. I actually had 2 anti virus software packages running simultaneously. after removing avast, decktracker updated right away.

If anyone runs into this issue, it might be your firewall or something.

@battlezones
Copy link

battlezones commented Jul 30, 2019

After years of running this brilliant app with no issues, all of a sudden I am getting the Uneven permissions problem as of this week, with nothing apparently changing.

Have tried all things suggested, including re-installing Hearthstone and HDT multiple times, running both as admin, resetting the log files, checking log locations. I have checked both Hearthstone and HDT are firewall enabled on Windows Defender.

The only thing I can think that has changed is that Windows Defender recently wanted me to enable Tamper Protection, which I did. But have since disabled Windows Defender as a test to see if that's the issue, but the Uneven permissions problem with HDT still persists (Windows Defender is now back on :) )

If I run HDT as admin, then the message doesn't appear, but deck tracking etc doesn't work.

The strange thing is that probably 1 in 20 times it works as intended, but I can't seem to replicate the conditions, and it seems fairly random when it does occasionally work.

I have dropped 2 log files, the first one is from when I did get a session working. The second one where the issue occurs, was just after when I closed Hearthstone and re-opened it. This was just a few minutes after the successful session...

I would love a solution to this, as it's very frustrating. The only thing I can think of for me is a PC reset, but it seems drastic when HDT clearly can work, and has been working well for ages.

hdt_log_1564446835.txt
hdt_log_1564447000.txt

@riQQ
Copy link
Collaborator

riQQ commented Jul 31, 2019

@battlezones the logs for the good and bad case look as expected.

Can you post a log of the following scenariao you mentioned:

If I run HDT as admin, then the message doesn't appear, but deck tracking etc doesn't work.

@battlezones
Copy link

@battlezones the logs for the good and bad case look as expected.

Can you post a log of the following scenariao you mentioned:

If I run HDT as admin, then the message doesn't appear, but deck tracking etc doesn't work.

Log when running as administrator.

hdt_log_1564612061.txt

@Nurgz
Copy link

Nurgz commented Jul 31, 2019 via email

@battlezones
Copy link

Only solution for me ended up to do a partial factory reset (PC needed a tidy up anyway so wasn't that disruptive), HDT back to working correctly again.

@riQQ
Copy link
Collaborator

riQQ commented Aug 14, 2019

Excerpt from battlezones' log:

11:23:42 PM|Warning|Core.Initialize >> HearthMirror Exception: System.ArgumentNullException: Value cannot be null.
Parameter name: value
   at System.BitConverter.ToInt32(Byte[] value, Int32 startIndex)
   at HearthMirror.ProcessView.GetExport(String name) in C:\projects\hearthstone-deck-tracker\HearthMirror\HearthMirror\ProcessView.cs:line 167
   at HearthMirror.Mirror.get_Root() in C:\projects\hearthstone-deck-tracker\HearthMirror\HearthMirror\Mirror.cs:line 46
   at HearthMirror.Reflection.GetAccountIdInternal() in C:\projects\hearthstone-deck-tracker\HearthMirror\HearthMirror\Reflection.cs:line 642
   at HearthMirror.Reflection.TryGetInternal[T](Func`1 action, Boolean clearCache) in C:\projects\hearthstone-deck-tracker\HearthMirror\HearthMirror\Reflection.cs:line 35

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests