Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-73678

Crash on windows close

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.14.0 Alpha
    • 5.12.0, 5.12.1
    • GUI: Window management
    • None
    • Qt 5.12.1 and Emscripten 1.38.21.
    • WebAssembly
    • 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.

      Attachments

        1. examples.zip
          9.08 MB
        2. videos.zip
          1.19 MB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            lpotter Lorn Potter
            andrey_yashkin Andrey Yashkin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes