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

QSocketNotifier: Invalid socket & Segmentation fault, when playing video with Phonon + GStreamer on i.MX28EVK.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • 4.7.2
    • None

    Description

      I have a problem with showing video on the mx28EVK using Qt phonon and gstreamer.

      The application is terminated with the following console message:
      QSocketNotifier: Invalid socket 11 and type 'Read', disabling...
      Segmentation fault
      root@mx28evk ~$

      The reason seems to be some kind of memory problem. The QSocketNotifier is a problem with file descriptor.

      The error occurs when loading the video file. It occurs both when using H264 or MPEG4 video format. The size of the file does not affect the behaviour.

      The following two versions of the code result in the error:

      MainWindow::MainWindow()

      { qWarning() << "***start"; Phonon::VideoPlayer *player = new Phonon::VideoPlayer(Phonon::VideoCategory, this); qWarning() << "***load"; player->load(Phonon::MediaSource("file:///root/AAC-H264-MP4/test.mp4")); //This command causes the error qWarning() << "***play"; // player->play(); qWarning() << "***playing"; }

      MainWindow::MainWindow()

      { qWarning() << "***start"; Phonon::MediaObject *mediaObject = new Phonon::MediaObject(this); Phonon::VideoWidget *videoWidget = new Phonon::VideoWidget(this); Phonon::createPath(mediaObject, videoWidget); mediaObject->setCurrentSource(Phonon::MediaSource("file:///root/AAC-H264-MP4/test.mp4")); //This command causes the error }

      I attach a file with the console output for the second code alternative.

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            knamwenn Mats Wennergren
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes