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

Program crushed (somthing wrong with std::mutex) when using MSVC Version 17.11.6 ,but it work right in MSVC Version 17.10.5 #3278

Closed
AuroraLime opened this issue Nov 30, 2024 · 2 comments

Comments

@AuroraLime
Copy link

AuroraLime commented Nov 30, 2024

Hello,my program excutes a very simple code spdlog::info("Welcome to info spdlog!");, but it crashed.
image
This problem occurs in MSVC Version 17.11.6. Then I retried in another computer which installs MSVC Version 17.10.5 and it works right.
image
Thanks for watching.
There are some info about the environment that occurs problem

  • Visual Studio with Cmake
  • Qt 6.7.3
  • C++20
  • MSVC Version 17.11.6
  • Using a include version of spdlog
  • windows11
@gabime
Copy link
Owner

gabime commented Nov 30, 2024

This is known issue with the newer versions of msvc #3212 and #3145 (and https://stackoverflow.com/questions/78598141/first-stdmutexlock-crashes-in-application-built-with-latest-visual-studio). Try to install the latest version of Microsoft Visual C++ Redistributable and reboot.

@AuroraLime
Copy link
Author

Thanks,it works right under the latest version of VCTools(Version 14.42.34433).

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

No branches or pull requests

2 participants