Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QtMultimedia 5.5 , mp4 playing crashes *** stack smashing detected ***

QtMultimedia 5.5 , mp4 playing crashes *** stack smashing detected ***

Scheduled Pinned Locked Moved Unsolved General and Desktop
8 Posts 2 Posters 2.8k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • plc66P Offline
    plc66P Offline
    plc66
    wrote on last edited by
    #1

    Hello,

    I am trying to figure out why my app crashes with *** stack smashing detected *** when I try to play a mp4 file. avi file do work very well.

    The code is very simple:

    Video {
            id: video
            anchors.rightMargin: 0
            anchors.leftMargin: 0
            anchors.topMargin: 0
            anchors.bottomMargin: 0
            anchors.fill: parent
            source: "file:///home/pilou/OSVR_Projects/testMp4.mp4"
            autoPlay: true
        }
    
    

    I am using Ubuntu 15.10 both on a laptop and a desktop , and I come across the same problem twice.

    Checked all my packages etc, all seem OK.

    Can anyone replicate ? Any idea ?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Does it happen with all .mp4 files ?

      What version of Qt are you using ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • plc66P Offline
        plc66P Offline
        plc66
        wrote on last edited by
        #3

        Hello SGaist,

        Thanks for taking the time to reply.

        Tried actually some of the other video examples and every time I have the same issue.
        *** Stack smashing detected ***
        Tried with various mp4s samples from different locations. Same error.
        Also tried with other formats, avi works fine , mkv crashes, mpeg works fine ... hmmm ?
        I can play the movies with VLC and the files are not corrupted. So I would appear to have the adequate codec pack installed.

        Using Qt 5.5.0 gcc 64bit.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Can you run your application through a debugger ?

          That would allow to determine if its within Qt or the GStreamer plugin used.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • plc66P Offline
            plc66P Offline
            plc66
            wrote on last edited by
            #5

            Hello!
            Running the app with valgrind, and seg fault 6.

            ==3317== Process terminating with default action of signal 6 (SIGABRT)
            ==3317== at 0x74A4267: raise (raise.c:55)
            ==3317== by 0x74A5EC9: abort (abort.c:89)
            ==3317== by 0x74E7BF2: __libc_message (libc_fatal.c:175)
            ==3317== by 0x7587E3B: __fortify_fail (fortify_fail.c:38)
            ==3317== by 0x7587DDF: __stack_chk_fail (stack_chk_fail.c:28)
            ==3317== by 0x2E3FE1C1: ??? (in /usr/lib/x86_64-linux-gnu/gstreamer-0.10/libgstfaad.so)
            ==3317== by 0x207414EA: ??? (in /usr/lib/x86_64-linux-gnu/libgstaudio-0.10.so.0.25.0)
            ==3317== by 0x21478DFE: gst_pad_set_caps (in /usr/lib/x86_64-linux-gnu/libgstreamer-0.10.so.0.30.0)
            ==3317== by 0x2147ABCA: ??? (in /usr/lib/x86_64-linux-gnu/libgstreamer-0.10.so.0.30.0)
            ==3317== by 0x2147E627: gst_pad_push (in /usr/lib/x86_64-linux-gnu/libgstreamer-0.10.so.0.30.0)
            ==3317== by 0x211DC67F: gst_base_parse_push_frame (in /usr/lib/x86_64-linux-gnu/libgstbase-0.10.so.0.30.0)
            ==3317== by 0x211DDADF: ??? (in /usr/lib/x86_64-linux-gnu/libgstbase-0.10.so.0.30.0)
            ==3317== by 0x2147AB30: ??? (in /usr/lib/x86_64-linux-gnu/libgstreamer-0.10.so.0.30.0)
            ==3317== by 0x2147E627: gst_pad_push (in /usr/lib/x86_64-linux-gnu/libgstreamer-0.10.so.0.30.0)
            ==3317== by 0x24FEDABF: ??? (in /usr/lib/x86_64-linux-gnu/gstreamer-0.10/libgstcoreelements.so)
            ==3317== by 0x214A3FB2: ??? (in /usr/lib/x86_64-linux-gnu/libgstreamer-0.10.so.0.30.0)
            ==3317== by 0xAE9A2FD: ??? (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.4600.1)
            ==3317== by 0xAE99964: ??? (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.4600.1)
            ==3317== by 0x83BE6A9: start_thread (pthread_create.c:333)
            ==3317== by 0x7575E9C: clone (clone.S:109)

            Looks like it is gstreamer related.

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Strange, I thought Qt 5.5 was using GStreamer 1 by default

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • plc66P Offline
                plc66P Offline
                plc66
                wrote on last edited by
                #7

                I came across the problem of gstreamer version , and it seems that Qt still uses the gstreamer 0.10... despite the port to 1.X being allegedly in the pipeline for a while.
                I had to fiddle around with ppas to get some apps to compile fine with 15.10.
                Still stuck with the same problem.

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  The port is done, see here

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  0

                  • Login

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups
                  • Search
                  • Get Qt Extensions
                  • Unsolved