wslbridge2 icon indicating copy to clipboard operation
wslbridge2 copied to clipboard

assertion "hRes == 0" failed: file "GetVmId.cpp", line 181, function: HRESULT GetVmId(GUID*, GUID*)

Open nufeng1999 opened this issue 3 years ago • 5 comments

assertion "hRes == 0" failed: file "GetVmId.cpp", line 181, function: HRESULT GetVmId(GUID*, GUID*)

nufeng1999 avatar Aug 22 '22 11:08 nufeng1999

For quick fix, download the CI artifact from here https://ci.appveyor.com/project/Biswa96/wslbridge2/build/job/q3y0vyk50s27up5b/artifacts. Extract it in existing wslbridge2 directory.

⭐ One caveat. If you are using WSL Preview from Store run wsl.exe first, close it, then wslbridge2.exe. It is a execution permission issue which will be solved with https://github.com/mintty/wsltty.appx. Not ready yet.

Biswa96 avatar Aug 22 '22 14:08 Biswa96

For quick fix, download the CI artifact from here https://ci.appveyor.com/project/Biswa96/wslbridge2/build/job/q3y0vyk50s27up5b/artifacts. Extract it in existing wslbridge2 directory.

⭐ One caveat. If you are using WSL Preview from Store run wsl.exe first, close it, then wslbridge2.exe. It is a execution permission issue which will be solved with https://github.com/mintty/wsltty.appx. Not ready yet.

The url you provided said 'The build job does not contain any artifacts', how can I get the CI artifact?

halsn avatar Aug 28 '22 09:08 halsn

Here is the new build https://ci.appveyor.com/project/Biswa96/wslbridge2/builds/44602285/job/ijt8cc3ft1pdq64s/artifacts. I shall try to provide a tagged release ASAP.

Biswa96 avatar Aug 28 '22 09:08 Biswa96

Here is the new build https://ci.appveyor.com/project/Biswa96/wslbridge2/builds/44602285/job/ijt8cc3ft1pdq64s/artifacts. I shall try to provide a tagged release ASAP.

Thanks a lot, it works!

halsn avatar Aug 28 '22 10:08 halsn

I have added the workaround in v0.9 release. The program can be downloaded from there.

The issue has not been fixed yet. I have a fix for that but it requires the current user to be a member of Hyper-V Administrator group. But it requires this command to be run as admin net localgroup "Hyper-V Administrators" %user% /add once.

Biswa96 avatar Sep 01 '22 04:09 Biswa96

Please try the CI artifacts from here https://ci.appveyor.com/project/Biswa96/wslbridge2/builds/45244286/job/dtg7beug6j48fyst/artifacts. Extract both files from that zip file in existing installation. It should work with both WSL Preview and system WSL without any workaround.

Biswa96 avatar Nov 01 '22 15:11 Biswa96

This issue has been fixed in version 0.10. Please test the binaries. If the problem persists feel free to reopen this issue. Thank you ❤️

Biswa96 avatar Nov 08 '22 15:11 Biswa96