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

VideoSink has issue with mapping VideoFrame after restart camera session.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P1: Critical
    • None
    • 6.6
    • Multimedia
    • None
    • Android
    • 2023wk20FOQtforAndroid

    Description

      I have faced issues related to Camera and VideoSink on Android 13.
      I am trying to get each frame for post-process.

      Flow: When the camera is started I can successfully get all needed frames by VideoSink, but then I need to stop the session (camera) to show some other data and then get back to the camera and collect frames again.

      Issue: By using VideoSink, after Start->Stop->Start camera I can see this issue:
      F libc    : Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x18 in tid 12683 (qtMainLoopThrea), pid 12660 (project.example)

      SIGSEGV appears when I am trying to map the VideoFrame in the second session (after camera start->stop->start)

      didWeMapTheFrame = static_cast<QVideoFrame>(frame).map(QVideoFrame::ReadOnly);

      Also, the video output is black.

      Here is a simple project to reproduce it:
      https://gitlab.com/iberezhn/testvideosink

      Steps to reproduce the issue: Run the application, press the STOP button, and then press the START button. (You can make more iterations to see that the video output is black and the frame is not valid and can not be mapped)

      Attachments

        Issue Links

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

          Activity

            People

              bartlomiejmoskal Bartlomiej Moskal
              iberezhn Igor B
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes