-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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::basic_logger_st crash on qt 6.8.0 #3211
Comments
What error message ( EDIT: By the way, if you upgraded Qt and now it crashes, then it is a Qt problem. |
[]> What error message (
_ex.what() Unable to capture and reality;but the way,I compiled the same source code using VS2022, and on that testing device, it also crashed,When I compiled using vs2019, it ran well on that testing [device;] |
The phenomenon I found here is that VS2019 can run when compiled, but VS2022 will definitely crash on the testing device. If needed, I can provide remote access to the testing device (todesk or 向日葵) |
If the cause of the crash is |
If the Qt upgrade is unrelated and the MSVC version is triggering the problem, then it is possible that #3145 is a duplicate. Is it possible that the version of MSVC runtime on the development machine and the test device do not match? See also: |
try { QString _name = tr("Modbus"); QString _logpath = QString("%1/log/%2/%3.txt").arg(qApp->applicationDirPath(),_name,QDate::currentDate().toString("yyyy-MM-dd")); std::shared_ptr<spdlog::logger> _log = spdlog::basic_logger_st(_name.toLocal8Bit().data(), _logpath.toLocal8Bit().data()); } catch (const spdlog::spdlog_ex &_ex) { qDebug() << __FILE__ << __FUNCTION__ << __LINE__ ; qDebug() << "basic_logger_st fail:" << _ex.what(); }
the above code works well on Qt5.15.2 and Qt6.7.0,but it keeps crashing afer upgrading to 6.8.The development environment is win11,i7-12700h,16G(it also runs well),The operating environment is win10,i5-1135g7,8g(This device always crashes and abnormalities cannot be captured),Please help me, thank you!
The text was updated successfully, but these errors were encountered: