terminate called without an active exception
Unsolved
General and Desktop
-
Hi, I am working on eglfs with qt-everywhere-opensource-src-5.9.7. I got a terminate error which can be simulated by a sample. It works fine on linuxfb. Is it a bug on eglfs?
I find it crash at "if (!surface->surfaceHandle())" of makeCurrent in qtbase/src/gui/kernel/qopenglcontext.cpp.Here is the error message:
pure virtual method called
terminate called without an active exception
AbortedHere is the sample code:
#include <QApplication>
#include <QtWidgets>int main(int argc, char *argv[])
{
QApplication a(argc, argv);QWidget *m_lpFirstTmpWindow; m_lpFirstTmpWindow = new QWidget(); m_lpFirstTmpWindow->show(); m_lpFirstTmpWindow->hide(); QWidget *m_lpSecondTmpWindow; m_lpSecondTmpWindow = new QWidget(); m_lpSecondTmpWindow->show(); delete m_lpFirstTmpWindow; m_lpFirstTmpWindow = NULL; return a.exec();
}
-
Still error with deleteLater(). Maybe I have to keep the m_lpFirstTmpWindow. But I am confused why it works fine on linuxfb.