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

Camera widgets record button crashes application on linux

XMLWordPrintable

    • Linux/Wayland
    • 509843414 (dev), b4fa37aac (6.10), 4ba1849af (6.9), 649932a8c (tqtc/lts-6.8)

      Qt widgets camera crashes when trying to record.

      Does not crash in official 6.9, but in 6.10 dev build.

      Tested system uses ffmpeg.

      Steps to reproduce:
              Open the camera example (widget)
              Press record

      Expected behavior:

      The application should enable recording.

      Observed behavior:

      The application crashes, with the following debug output:

      qt.multimedia.ffmpeg: Using Qt multimedia with FFmpeg version 7.1.1 LGPL version 2.1 or later
      parseSampleFormat: parse error "Object: size 144, type Spa:Pod:Object:Param:Format (262147), id Spa:Enum:ParamId:EnumFormat (3)" "  Prop: key Spa:Pod:Object:Param:Format:mediaType (1), flags 00000000" "    Id 1        (Spa:Enum:MediaType:audio)" "  Prop: key Spa:Pod:Object:Param:Format:mediaSubtype (2), flags 00000000" "    Id 3        (Spa:Enum:MediaSubtype:iec958)" "  Prop: key Spa:Pod:Object:Param:Format:Audio:iec958Codec (65542), flags 00000000" "    Choice: type Spa:Enum:Choice:Enum, flags 00000000 24 4" "      Id 1        (Spa:Enum:AudioIEC958Codec:PCM)" "      Id 1        (Spa:Enum:AudioIEC958Codec:PCM)" "  Prop: key Spa:Pod:Object:Param:Format:Audio:rate (65539), flags 00000000" "    Choice: type Spa:Enum:Choice:Range, flags 00000000 28 4" "      Int 48000" "      Int 32000" "      Int 48000"
      qt.gui.imageio.jpeg: Corrupt JPEG data: premature end of data segment
      qt.multimedia.ffmpeg.encoder: Recording new media with muxer MP4 (MPEG-4 Part 14) to "/home/broved/Videos/video_0003.mp4" with format: QMediaFormat::MPEG4, QMediaFormat::AudioCodec::AAC, QMediaFormat::VideoCodec::H265
      qt.gui.imageio.jpeg: Corrupt JPEG data: premature end of data segment
      qt.gui.imageio.jpeg: Corrupt JPEG data: premature end of data segment
      qt.multimedia.video.frameconverter: QImage convertJPEG(const QVideoFrame &, const VideoTransformation &) : JPEG data does not contain EOI marker
      ASSERT: "avFrame->data[0]" in file /home/broved/qtdev/dev/src/qtmultimedia/src/plugins/multimedia/ffmpeg/recordingengine/qffmpegvideoencoder.cpp, line 199 

      Equipment:

      Logitech C920 HD Pro Webcam

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

            qtmultimediateam Qt Multimedia Team
            broved Bror Vedeld
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes