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

std::bad_alloc when trying to play a large video stream

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.1.1, 5.3.2
    • Fix Version/s: 5.3.0
    • Component/s: WebKit
    • Labels:
      None
    • Commits:
      4cb8afd91bfbe845e9bc2e1eff94e33ad8f8865a

      Description

      Hi,

      I'm trying to run a video with a large size (600Mb but I have only 400Mb in my system),

      • Using http protocol, the video starts to play and then I'm getting the following failures:

      sometimes

      "terminate called after throwing an instance of 'std::bad_alloc'
      what(): std::bad_alloc"

      and sometimes

      "GStreamer-ERROR **: gstbuffer.c:542: failed to allocate XXXXXXXXXXX bytes"

      Adding some printfs in StreamingClient::didReceiveData function to know the length of the streamed data, I see a large size (for example: length == 110178407)

      It tries to allocate an amount of memory greater than what we have , which will cause the error.

      Is there any way to decrease the size of the data streamed?
      How it is calculated?

      Is it in relation with the duration?

      If gst-element_querry_duration is returning incorrect duration, does it affects the size of the streamed data?

      I'm using gstreamer 0.10.x and sometimes gst-element_querry_duration() is returning an incorrect duration.

      Many thanks.

        Attachments

        For Gerrit Dashboard: QTBUG-36979
        # Subject Branch Project Status CR V

          Activity

            People

            • Assignee:
              annulen Konstantin Tokarev
              Reporter:
              thouraya thouraya
            • Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:

                Gerrit Reviews

                There are no open Gerrit changes