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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • P2: Important
    • 5.3.0
    • 5.1.1, 5.3.2
    • WebKit
    • None
    • 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

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

        Activity

          People

            annulen Konstantin Tokarev
            thouraya thouraya
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes