QDateTime ASSERT
Unsolved
General and Desktop
-
Hello!
I am using a QDateTime. I was using for days without problems but today, I have this error in debug mode:
ASSERT: "byId[size_t(id)] == nullptr" in file time\qcalendar.cpp, line 103 Debug Error!
And this are the lines that are failing:
QString sCurrentTime = QDateTime::currentDateTime().time().toString("hh:mm:ss"); ui->labelStartTimeValue->setText(sCurrentTime);
What I am doing wrong?
Thank you very much!
-
Please provide a minimal, compilable example and a valid backtrace. The assert there should not happen - looks like a calendar backend is loaded twice.
We also need your OS and Qt version. -
I would say it's related to https://codereview.qt-project.org/c/qt/qtbase/+/309673
-
@SylvainM Yes, 5.15.3 will contain the fix.