-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
spdlog segfault on github windows CI #3107
Comments
The top of the stacktrace is |
I have read the documentation for the Although this is the case with PyQt5, there have been reports of crashes with GItHub Action when using I think the crash is caused by Qt. |
There are different reasons for that, but maybe my conclusions are wrong:
Of course, I may be wrong, I need to create a test case without Qt. Maybe the problem is the combination of Qt/spdlog/Windows github CI? |
I can confirm it's the combination of Qt / spdlog / Windows github CI in release. I tried with doctest, and the test is passing: Sorry for the noise. Now I wonder how I am going to find the problem... |
If the problem only occurs when using QTest, then that is the cause. |
Thank you for your time, I think we can close it... I'm still puzzled by all of this :) |
Ok, we are experiencing a problem on Windows runner in release mode on different repository (some where passing before). So nothing to do with spdlog or Qt apparently... |
For completeness sake: The issue seems to be resolved now with the newest Windows runners. |
Hi, @narnaud and @LeonMatthesKDAB , I meet a very similar crash on Windows. I paste my minimal reproducible example steps in #2902, which use a very simple code, no Qt stuffs: #include <spdlog/spdlog.h>
int main()
{
SPDLOG_INFO("x");
return 0;
} I'm also puzzled with what help solved the KDAB/knut. Just update github action's windows image? Well, my reproduce runs on a local machine, with latest Visual Studio 2022 installed (17.10.3). @narnaud Do you use a exactly same version Visual Studio 2022 in your github action and your local machine? If possible, would you please use my minimal code for reproduce trial? Note that I did not enable Address Sanitizer, and crash only occurs in |
Hi @zchrissirhcz |
@narnaud Thanks for your reply. I also tried spdlog versions My reproduce uses "the latest version", which is And uninstall that version of VS2022, install an older version, |
Resolved (MSVC breaking change): #2902 (comment) |
When using spdlog with Qt, and having tests (using QtTest) in a project, the tests are failing on the Windows CI, only in release mode.
I was able to reduce the problem to a minimal project here: https://github.com/narnaud/tst-release
(don't mind what is in source, that's not the most important).
Spdlog integration
Nothing fancy, just using a git submodule and adding the directory with
add_subdirectory(3rdparty/spdlog)
I'm using the latest spdlog version
Test
Here again, nothing fancy, that's a usual test, that could be reduced to running those lines:
Error
Here is the error I got on the CI (see https://github.com/narnaud/tst-release/actions/runs/9419197367/job/25948425419?pr=5):
It's working nicely on Mac and Linux, it's working nicely on my local Windows machine (same compiler/Qt version) and it's working nicely in debug mode...
I'm out of ideas right now.
The text was updated successfully, but these errors were encountered: