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

App crash on launch when using QQuickWidget

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • None
    • 5.5.0
    • Quick: Widget
    • None
    • Mac OS X 10.10.4, Linux (unspecified)
    • Linux/X11, macOS

    Description

      On certain Mac machines (apparently ones without a dedicated GPU, although this theory would need more testing), our app, using QtQuickWidget, crashes on launch.

      Looking at the backtrace, here's where the issue is located:

      Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
      0   org.qt-project.QtGui          	0x000000010136e5e4 QOpenGLFramebufferObject::handle() const + 4
      1   org.qt-project.QtQuickWidgets 	0x0000000100cd78e3 0x100cd2000 + 22755
      2   org.qt-project.QtWidgets      	0x0000000102129362 QWidget::event(QEvent*) + 2194
      3   org.qt-project.QtQuickWidgets 	0x0000000100cdabc8 QQuickWidget::event(QEvent*) + 280
      4   org.qt-project.QtWidgets      	0x00000001020ea6fb QApplicationPrivate::notify_helper(QObject*, QEvent*) + 251
      5   org.qt-project.QtWidgets      	0x00000001020edade QApplication::notify(QObject*, QEvent*) + 8318
      6   org.qt-project.QtCore         	0x00000001017c41b3 QCoreApplication::notifyInternal(QObject*, QEvent*) + 115
      7   org.qt-project.QtWidgets      	0x0000000102127d62 QWidgetPrivate::show_helper() + 434
      8   org.qt-project.QtWidgets      	0x0000000102128833 QWidget::setVisible(bool) + 931
      9   org.qt-project.QtWidgets      	0x0000000102127fd0 QWidgetPrivate::showChildren(bool) + 416
      10  org.qt-project.QtWidgets      	0x0000000102127bfc QWidgetPrivate::show_helper() + 76
      11  org.qt-project.QtWidgets      	0x0000000102127f78 QWidgetPrivate::showChildren(bool) + 328
      12  org.qt-project.QtWidgets      	0x0000000102127bfc QWidgetPrivate::show_helper() + 76
      13  org.qt-project.QtWidgets      	0x0000000102128833 QWidget::setVisible(bool) + 931
      14  org.qt-project.QtWidgets      	0x0000000102127fd0 QWidgetPrivate::showChildren(bool) + 416
      15  org.qt-project.QtWidgets      	0x0000000102127bfc QWidgetPrivate::show_helper() + 76
      16  org.qt-project.QtWidgets      	0x0000000102128833 QWidget::setVisible(bool) + 931
      17  com.adriweb.firebird          	0x00000001000196d0 main + 608
      18  com.adriweb.firebird          	0x0000000100004b54 start + 52
      
      stop reason = EXC_BAD_ACCESS (code=1, address=0x8)
          frame #0: 0x000000010136e5e4 QtGui`QOpenGLFramebufferObject::handle() const + 4
      QtGui`QOpenGLFramebufferObject::handle:
      ->  0x10136e5e4 <+4>:  movq   0x8(%rdi), %rax
          0x10136e5e8 <+8>:  movq   (%rax), %rcx
          0x10136e5eb <+11>: xorl   %eax, %eax
          0x10136e5ed <+13>: testq  %rcx, %rcx
      

      rdi being 0, it may be that the framebuffer isn't created [correctly] ?

      Attachments

        Issue Links

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

          Activity

            People

              tvete Paul Olav Tvete
              Adriweb Adrien Bertrand
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes