Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.12.0, 5.12.1
-
None
-
Qt 5.12.1 and Emscripten 1.38.21.
-
-
ca32a373b31b087b602ca555151e01ed8ea601c1 (qt/qtbase/dev)
Description
WASM apps crash on windows close. It seems that it happens only when I use the window close button, because I use close() slot with a special QPushButton as temporary solution and it works fine.
Minimalist example.
#include <QApplication> #include <QString> #include <QLabel> #include <QDialog> #include <QWidget> /* * QWidget - crash sometimes * QDialog - crash much more often */ class Window : public QWidget /*QDialog*/ { public: Window(const QString &str, QWidget *parent = 0): QWidget/*QDialog*/(parent), l(str, this) { } private: QLabel l; }; int main(int argc, char *argv[]) { QApplication a(argc, argv); Window *w1=new Window("w1"); Window *w2=new Window("w2"); Window *w3=new Window("w3"); w1->show(); w2->show(); w3->show(); return a.exec(); }
I made a video demonstrations of the problem, because it is seems to be non-deterministic and it does not always happen even with the same user behavior.