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

Crash during media capture with OpenGL-based rhi

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P1: Critical
    • 6.2.3, 6.3.0 Alpha, 6.3
    • 6.2.2
    • Multimedia
    • None
    • macOS
    • ab4bbff493795bbfe1ef13fe464557a62bb7661a (qt/qtmultimedia/6.2) 2f4c163aae2b08eae27d302f7c535f37bd349509 (qt/qtmultimedia/dev)

    Description

      Steps to reproduce: 

      1) Set the rhi backend to opengl

      2) Launch the recorder example

      Preview shows a green picture with a few "characters" on preview or recording area and the following warning is outputted

      Accelerated macOS Open video supports BRGA only, got CV pixel format 846624121.
      

       3) Press the record button

      App crashes with backtrace:

      Process 3087 stopped
      * thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x26010d4f9d60)
          frame #0: 0x000000010ec65adf AppleIntelHD3000GraphicsGLDriver`GhalInterface::incrementVertexBufferRefCount(void*) + 9
      AppleIntelHD3000GraphicsGLDriver`GhalInterface::incrementVertexBufferRefCount:
      ->  0x10ec65adf <+9>:  movb   $0x0, 0x38(%rsi)
          0x10ec65ae3 <+13>: movq   0x30(%rsi), %rax
          0x10ec65ae7 <+17>: lock   
          0x10ec65ae8 <+18>: addl   $0x10000, 0x10(%rax)      ; imm = 0x10000 
      Target 0: (recorder) stopped.
      (lldb) bt
      * thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x26010d4f9d60)
        * frame #0: 0x000000010ec65adf AppleIntelHD3000GraphicsGLDriver`GhalInterface::incrementVertexBufferRefCount(void*) + 9
          frame #1: 0x000000010ec2f539 AppleIntelHD3000GraphicsGLDriver`bool GHAL3D::CGen6PublicStateProcessor::SendStateTemplate<false>(unsigned char*&) + 2617
          frame #2: 0x000000010ea1e395 AppleIntelHD3000GraphicsGLDriver`glrAppleSyncState + 356
          frame #3: 0x000000010ecbc828 AppleIntelHD3000GraphicsGLDriver`glrRenderVertexArray + 1002
          frame #4: 0x000000010e232153 GLEngine`glDrawElements_ACC_Exec + 412
          frame #5: 0x00000001010d9132 QtGui`___lldb_unnamed_symbol5092$$QtGui + 2322
          frame #6: 0x00000001010db645 QtGui`___lldb_unnamed_symbol5101$$QtGui + 261
          frame #7: 0x00000001002cbde1 QtQuick`QSGRhiLayer::toImage() const + 177
          frame #8: 0x00000001001a984f QtQuick`QQuickItemGrabResult::render() + 255
          frame #9: 0x0000000101778a43 QtCore`___lldb_unnamed_symbol1916$$QtCore + 803
          frame #10: 0x000000010022f3b8 QtQuick`QQuickWindowPrivate::renderSceneGraph(QSize const&, QSize const&) + 936
          frame #11: 0x00000001002bd8d2 QtQuick`___lldb_unnamed_symbol3931$$QtQuick + 1938
          frame #12: 0x00000001002325fa QtQuick`QQuickWindow::event(QEvent*) + 4538
          frame #13: 0x0000000101726d0d QtCore`QCoreApplicationPrivate::notify_helper(QObject*, QEvent*) + 333
          frame #14: 0x00000001017268f9 QtCore`QCoreApplication::notifyInternal2(QObject*, QEvent*) + 169
          frame #15: 0x0000000100e115d5 QtGui`QPlatformWindow::deliverUpdateRequest() + 69
          frame #16: 0x000000010739781b libqcocoa.dylib`___lldb_unnamed_symbol1057$$libqcocoa.dylib + 251
          frame #17: 0x00000001073805ac libqcocoa.dylib`___lldb_unnamed_symbol745$$libqcocoa.dylib + 796
          frame #18: 0x00007fff6d1d0658 libdispatch.dylib`_dispatch_client_callout + 8
          frame #19: 0x00007fff6d1d2818 libdispatch.dylib`_dispatch_continuation_pop + 414
          frame #20: 0x00007fff6d1e24be libdispatch.dylib`_dispatch_source_invoke + 2084
          frame #21: 0x00007fff6d1dbb6d libdispatch.dylib`_dispatch_main_queue_callback_4CF + 618
          frame #22: 0x00007fff332dfb23 CoreFoundation`__CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
          frame #23: 0x00007fff3329f7aa CoreFoundation`__CFRunLoopRun + 2042
          frame #24: 0x00007fff3329e953 CoreFoundation`CFRunLoopRunSpecific + 466
          frame #25: 0x00007fff31eb9abd HIToolbox`RunCurrentEventLoopInMode + 292
          frame #26: 0x00007fff31eb97d5 HIToolbox`ReceiveNextEventCommon + 584
          frame #27: 0x00007fff31eb9579 HIToolbox`_BlockUntilNextEventMatchingListInModeWithFilter + 64
          frame #28: 0x00007fff304ff039 AppKit`_DPSNextEvent + 883
          frame #29: 0x00007fff304fd880 AppKit`-[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1352
          frame #30: 0x00007fff304ef58e AppKit`-[NSApplication run] + 658
          frame #31: 0x0000000107362008 libqcocoa.dylib`___lldb_unnamed_symbol265$$libqcocoa.dylib + 2120
          frame #32: 0x000000010172fbe6 QtCore`QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 470
          frame #33: 0x0000000101726f22 QtCore`QCoreApplication::exec() + 130
          frame #34: 0x000000010000a5f7 recorder`main(argc=1, argv=0x00007ffeefbff978) at main.cpp:67:12
          frame #35: 0x00007fff6d229cc9 libdyld.dylib`start + 1
          frame #36: 0x00007fff6d229cc9 libdyld.dylib`start + 1

      Attachments

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

        Activity

          People

            dorisverria Doris Verria
            dorisverria Doris Verria
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes