Closed soykot2910 closed 2 months ago
I don't understand the cause of throw spdlog::spdlog_ex()
.
Please provide the error message as it is printed to STDERR by the error handler: https://github.com/gabime/spdlog/wiki/Error-handling
If you are using Visual Studio, the code in your project that caused the error can be found in the backtrace. Can you provide that?
It seems to be caused by trying to register a logger with the same name.
But this same code works in my different laptop.
If the problem does not occur on different machines, then it is probably a problem with the machine's environment.
There is a version difference. I am getting an error with the updated version(1.14.1), but it works fine with the older version on my other machine.
If the versions are different, it is not surprising that the libraries behave differently. The developer should make the changes that accompany the library version upgrade.
And spdlog began checking for duplicate logger names in version 0.9.0 (2f8e22d828bc48c41aaf2d5836b3dc9088a27284), which was released more than 8 years ago.
It seems like this issue is related to the new version of Visual Studio.
Recently MSVC made a destructive change to std::mutex
(#3145, windows - First std::mutex::lock() crashes in application built with latest Visual Studio 2022 - Stack Overflow).
However, your problem does not appear to be related to std::mutex
.
You should report it to Microsoft.
Error Details: Function: throw_spdlog_ex(std::string msg) File: common-inl.h Line: 69 Exception Thrown: spdlog::spdlog_ex at memory location 0x00000028280FE7A8 Triggered during: Moving a message string (std::move(msg)) in SPDLOG_THROW.
Environment: Windows 11 Microsoft Visual Studio Professional 2022 (64-bit) Version 17.9.7