stadia2xbox icon indicating copy to clipboard operation
stadia2xbox copied to clipboard

The process cannot access the file because it is being used by another process

Open shorty789 opened this issue 3 years ago • 4 comments

Would love to provide more information, this is unfortunately the only thing I receive when I try to run the app. Happy to help get you get to the bottom of this though. This error happens when I run the exe as admin or standard user. image

shorty789 avatar Oct 28 '21 01:10 shorty789

Is that windows 11? I have some hacky powershell script in the code that disables/enables the controller in device manager to free it from other processes. Might not work in 11 anymore

Try this:

  1. Plug controller in
  2. Manually go to Device Manager and disable and then enable game controller device
  3. Run program as admin

bakapear avatar Oct 28 '21 07:10 bakapear

Heya, yea this is on windows 11. I tried those steps as outlined and no luck unfortunately :( - I will see if I can test it out on a windows 10 machine if I have any spares around.

shorty789 avatar Oct 28 '21 19:10 shorty789

I have been having a play about with this a bit more, i removed the reference to powershell entirely and I am still getting that exact error message. I got the same error on a win10 vm.

shorty789 avatar Oct 31 '21 12:10 shorty789

Usually the controller gets locked by common programs like your Web Browser or Steam/Epic/Discord but if it produces the same error on a clean win10 vm then I have no clue how to solve the issue.

You can try out alternatives instead: https://github.com/MWisBest/StadiEm (Has to be built manually right now but has clever code to get device access) https://github.com/71/stadiacontroller (Does not force exclusive mode but you'll end up with 2 controllers in device list) https://github.com/csutorasa/XOutput#hidguardian-exclusive-mode

bakapear avatar Oct 31 '21 14:10 bakapear