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

Segfault in QSGRenderContext::initialize with QtWebEngine

    XMLWordPrintable

Details

    • 79121a0827df365468a02db20179d2c2d5ae720d

    Description

      Similarly to QTCREATORBUG-15992, an user of my application reported an immediate segfault here:

      #0  __strstr_sse2_unaligned () at ../sysdeps/x86_64/multiarch/strstr-sse2-unaligned.S:40
      #1  0x00007fffe7a063ea in QSGRenderContext::initialize(QOpenGLContext*) () from /home/teto/.local/lib/python3.5/site-packages/PyQt5/Qt/lib/libQt5Quick.so.5
      #2  0x00007fffe79fb842 in QSGEngine::initialize(QOpenGLContext*) () from /home/teto/.local/lib/python3.5/site-packages/PyQt5/Qt/lib/libQt5Quick.so.5
      #3  0x00007fffed29f0f5 in ?? () from /home/teto/.local/lib/python3.5/site-packages/PyQt5/Qt/lib/libQt5WebEngineWidgets.so.5
      #4  0x00007ffff003a71d in ?? () from /home/teto/.local/lib/python3.5/site-packages/PyQt5/Qt/lib/libQt5Widgets.so.5
      #5  0x00007ffff003a83a in QOpenGLWidget::resizeEvent(QResizeEvent*) () from /home/teto/.local/lib/python3.5/site-packages/PyQt5/Qt/lib/libQt5Widgets.so.5
      #6  0x00007fffed29f369 in ?? () from /home/teto/.local/lib/python3.5/site-packages/PyQt5/Qt/lib/libQt5WebEngineWidgets.so.5
      #7  0x00007ffff001b00e in QWidget::event(QEvent*) () from /home/teto/.local/lib/python3.5/site-packages/PyQt5/Qt/lib/libQt5Widgets.so.5
      #8  0x00007fffed29f5f9 in ?? () from /home/teto/.local/lib/python3.5/site-packages/PyQt5/Qt/lib/libQt5WebEngineWidgets.so.5
      #9  0x00007fffeffd552c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /home/teto/.local/lib/python3.5/site-packages/PyQt5/Qt/lib/libQt5Widgets.so.5
      #10 0x00007fffeffdc220 in QApplication::notify(QObject*, QEvent*) () from /home/teto/.local/lib/python3.5/site-packages/PyQt5/Qt/lib/libQt5Widgets.so.5
      #11 0x00007ffff0aa531e in sipQApplication::notify(QObject*, QEvent*) () from /home/teto/.local/lib/python3.5/site-packages/PyQt5/QtWidgets.so
      #12 0x00007ffff5990ae0 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /home/teto/.local/lib/python3.5/site-packages/PyQt5/Qt/lib/libQt5Core.so.5
      #13 0x00007ffff00134d2 in QWidgetPrivate::sendPendingMoveAndResizeEvents(bool, bool) () from /home/teto/.local/lib/python3.5/site-packages/PyQt5/Qt/lib/libQt5Widgets.so.5
      #14 0x00007ffff00179a6 in QWidgetPrivate::show_helper() () from /home/teto/.local/lib/python3.5/site-packages/PyQt5/Qt/lib/libQt5Widgets.so.5
      #15 0x00007ffff00178f0 in QWidgetPrivate::showChildren(bool) () from /home/teto/.local/lib/python3.5/site-packages/PyQt5/Qt/lib/libQt5Widgets.so.5
      #16 0x00007ffff00179c2 in QWidgetPrivate::show_helper() () from /home/teto/.local/lib/python3.5/site-packages/PyQt5/Qt/lib/libQt5Widgets.so.5
      #17 0x00007ffff001a635 in QWidget::setVisible(bool) () from /home/teto/.local/lib/python3.5/site-packages/PyQt5/Qt/lib/libQt5Widgets.so.5
      #18 0x00007fffed4cee54 in sipQWebEngineView::setVisible(bool) () from /home/teto/.local/lib/python3.5/site-packages/PyQt5/QtWebEngineWidgets.so
      #19 0x00007ffff0017958 in QWidgetPrivate::showChildren(bool) () from /home/teto/.local/lib/python3.5/site-packages/PyQt5/Qt/lib/libQt5Widgets.so.5
      #20 0x00007ffff00179c2 in QWidgetPrivate::show_helper() () from /home/teto/.local/lib/python3.5/site-packages/PyQt5/Qt/lib/libQt5Widgets.so.5
      #21 0x00007ffff001a635 in QWidget::setVisible(bool) () from /home/teto/.local/lib/python3.5/site-packages/PyQt5/Qt/lib/libQt5Widgets.so.5
      #22 0x00007ffff09b9f7c in sipQWidget::setVisible(bool) () from /home/teto/.local/lib/python3.5/site-packages/PyQt5/QtWidgets.so
      #23 0x00007fffefffcd3f in QStackedLayout::setCurrentIndex(int) () from /home/teto/.local/lib/python3.5/site-packages/PyQt5/Qt/lib/libQt5Widgets.so.5
      #24 0x00007fffefffd2ba in QStackedLayout::insertWidget(int, QWidget*) () from /home/teto/.local/lib/python3.5/site-packages/PyQt5/Qt/lib/libQt5Widgets.so.5
      #25 0x00007ffff0168096 in QTabWidget::insertTab(int, QWidget*, QIcon const&, QString const&) () from /home/teto/.local/lib/python3.5/site-packages/PyQt5/Qt/lib/libQt5Widgets.so.5
      #26 0x00007ffff0168154 in QTabWidget::insertTab(int, QWidget*, QString const&) () from /home/teto/.local/lib/python3.5/site-packages/PyQt5/Qt/lib/libQt5Widgets.so.5
      #27 0x00007ffff0853648 in meth_QTabWidget_insertTab () from /home/teto/.local/lib/python3.5/site-packages/PyQt5/QtWidgets.so
      

      I plan to submit a fix for this, just thought I'd open a bug for completeness' sake and in case someone else stumbles upon the same issue.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            srutledg Shawn Rutledge
            the compiler Florian Bruhin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes