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

[vcpkg upgrade] vcpkg has crashed (update on not installed packages) #21117

Closed
GitMensch opened this issue Nov 1, 2021 · 10 comments · Fixed by microsoft/vcpkg-tool#1473
Closed
Assignees
Labels
category:vcpkg-bug The issue is with the vcpkg system (including helper scripts in `scripts/cmake/`)

Comments

@GitMensch
Copy link
Contributor

To Reproduce
Steps to reproduce the behavior:

$ git pull
$ ./bootstrap-vcpkg`
$ ./vcpkg upgrade json-c
The following packages are not installed:
    json-c:x86-windows

Error: vcpkg has crashed; no additional details are available.
The source line is D:\a\_work\1\s\src\vcpkg\commands.upgrade.cpp(170)
@PhoebeHui PhoebeHui added the category:vcpkg-bug The issue is with the vcpkg system (including helper scripts in `scripts/cmake/`) label Nov 2, 2021
@PhoebeHui
Copy link
Contributor

@GitMensch, confirmed, this issue could repro with latest vcpkg source, thanks for reporting this issue!

@PhoebeHui PhoebeHui changed the title vcpkg has crashed (update on not installed packages) [vcpkg upgrade] vcpkg has crashed (update on not installed packages) Nov 2, 2021
@Ou7law007
Copy link

I'm getting this error when trying to install any package

A suitable version of 7zip was not found (required v21.7.0). Downloading portable 7zip v21.7.0... Extracting 7zip... A suitable version of 7zip was not found (required v21.7.0). Downloading portable 7zip v21.7.0... Extracting 7zip... Error: vcpkg has crashed; no additional details are available. The source line is D:\a\_work\1\s\src\vcpkg\archives.cpp(100)

@GitMensch
Copy link
Contributor Author

@Ou7law007

That's a different issue from a different source file (commands.upgrade.cpp vs. archives.cpp) in a different case (upgrade of non-existing package vs. vcpgk update and 7zip download/use not working). I suggest to move it to a separate one.

@Ou7law007
Copy link

@Ou7law007

That's a different issue from a different source file (commands.upgrade.cpp vs. archives.cpp) in a different case (upgrade of non-existing package vs. vcpgk update and 7zip download/use not working). I suggest to move it to a separate one.

Thank you for replying.
I completely deleted vcpkg and re cloned/installed it from scratch and it's now working. Should I still create an issue?

@GitMensch
Copy link
Contributor Author

The issue starter was still true when tested two weeks ago - and it includes calling the bootstrap script (via msys calling the bootstrap batch file)

@dg0yt
Copy link
Contributor

dg0yt commented Apr 1, 2022

it includes calling the bootstrap script (via msys calling the bootstrap batch file)

Do you mean running ./bootstrap-vcpkg from MSYS2 bash?
a) Make sure to bootstrap with the .bat version of the script, even on MSYS2
b) Make sure to have only one MSYS2/MinGW runtime in your PATH.

https://github.com/microsoft/vcpkg/blob/master/docs/users/mingw.md#using-mingw-w64-natively-on-windows

@DethRaid
Copy link
Contributor

DethRaid commented Apr 3, 2022

I ran into this issue this morning. I had git pulled to update my local vcpkg right before I hit this error

I got rid of the error by running ./bootstrap-vcpkg.bat

Maybe this will help unblock other people

@PhoebeHui
Copy link
Contributor

This bug still appears with latest version of vcpkg-tool.

PS F:\vcpkg\vcpkg> ./vcpkg upgrade json-c
warning: Starting with the September 2023 release, the default triplet for vcpkg libraries will change from x86-windows to the detected host triplet (x64-windows). To resolve this message, add --triplet x86-windows to keep the same behavior.
error: The following packages are not installed:
    json-c:x86-windows
internal error: D:\a\_work\1\s\src\vcpkg\commands.upgrade.cpp(172): vcpkg has crashed; no additional details are available.
Please open an issue at https://github.com/microsoft/vcpkg/issues/new?template=other-type-of-bug-report.md&labels=category:vcpkg-bug with detailed steps to reproduce the problem.

Copy link

This is an automated message. Per our repo policy, stale issues get closed if there has been no activity in the past 180 days. The issue will be automatically closed in 14 days. If you wish to keep this issue open, please add a new comment.

@github-actions github-actions bot added the Stale label Aug 12, 2024
@CookiePLMonster
Copy link
Contributor

A PR fixing this seems to be open now so commenting to keep this issue open in case this PR needs some questions answered.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:vcpkg-bug The issue is with the vcpkg system (including helper scripts in `scripts/cmake/`)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants