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. Multimedia Seg Fault on load
Forum Updated to NodeBB v4.3 + New Features

Multimedia Seg Fault on load

Scheduled Pinned Locked Moved Unsolved General and Desktop
9 Posts 3 Posters 870 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.
  • S Offline
    S Offline
    sc20cah
    wrote on last edited by
    #1

    Hi guys im trying to run the media player example from the qt creator welcome page. My issue is that as soon as it reaches the line to create the player i get a seg fault.

    I have tried the following:

    • Running on Qt Version 5.15.1 ( i have also tried a different project with a player on versions 5.13.0 and 5.13.2)

    • I have installed ubuntu-restricted-extras for media codecs and ubuntu-restricted-addons

    • i have installed gstreamer

    I am running on PopOs 21.04 if anyone has any insight.

    Thank you

    jsulmJ 1 Reply Last reply
    0
    • S sc20cah

      Hi guys im trying to run the media player example from the qt creator welcome page. My issue is that as soon as it reaches the line to create the player i get a seg fault.

      I have tried the following:

      • Running on Qt Version 5.15.1 ( i have also tried a different project with a player on versions 5.13.0 and 5.13.2)

      • I have installed ubuntu-restricted-extras for media codecs and ubuntu-restricted-addons

      • i have installed gstreamer

      I am running on PopOs 21.04 if anyone has any insight.

      Thank you

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @sc20cah Run through debugger and post the stack trace after crash

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      2
      • S Offline
        S Offline
        sc20cah
        wrote on last edited by
        #3

        This?

        32011d44-8489-46f5-bbf7-0b3d226231d6-image.png

        A 1 Reply Last reply
        0
        • S sc20cah

          This?

          32011d44-8489-46f5-bbf7-0b3d226231d6-image.png

          A Offline
          A Offline
          anil_arise
          wrote on last edited by
          #4

          @sc20cah Check your constructor of Player class, may be any object in that is not properly initialised, and post your constructor code.

          S 1 Reply Last reply
          0
          • A anil_arise

            @sc20cah Check your constructor of Player class, may be any object in that is not properly initialised, and post your constructor code.

            S Offline
            S Offline
            sc20cah
            wrote on last edited by
            #5

            @anil_arise

            I dont think it will be, it is happening on every multimedia app including the example one provided by Qt called 'Media Player Example' without any changes

            jsulmJ A 2 Replies Last reply
            0
            • S sc20cah

              @anil_arise

              I dont think it will be, it is happening on every multimedia app including the example one provided by Qt called 'Media Player Example' without any changes

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @sc20cah Try to update your graphics drivers. What graphics hardware do you have? (NVidia, AMD, Intel, comething else)
              You can also test with Qt provided by your distribution.

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              S 1 Reply Last reply
              0
              • S sc20cah

                @anil_arise

                I dont think it will be, it is happening on every multimedia app including the example one provided by Qt called 'Media Player Example' without any changes

                A Offline
                A Offline
                anil_arise
                wrote on last edited by anil_arise
                #7

                @sc20cah Is media file running by gstreamer command line on your system? gst-play-1.0 or gst-launch-1.0

                example : gst-launch-1.0 playbin uri=file:///path_to_media/1234.mp4

                if not then you need to install gstreamer dependencies; gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly libavcodec-extra gstreamer1.0-libav gstreamer1.0-fluendo-mp3 chromium-codecs-ffmpeg-extra libdvd-pkg

                1 Reply Last reply
                0
                • jsulmJ jsulm

                  @sc20cah Try to update your graphics drivers. What graphics hardware do you have? (NVidia, AMD, Intel, comething else)
                  You can also test with Qt provided by your distribution.

                  S Offline
                  S Offline
                  sc20cah
                  wrote on last edited by
                  #8

                  @jsulm
                  I am running Nvidia 470.86 with an rtx 2060 and same error after update

                  @anil_arise
                  When I run the command u gave I get 'failed to create playbin element' I have tried reinstalling all the plugins you have listed and still the same error. Also, when it gets to installing gstreamer-1.9-fluendo-mp3 it says it has no installation candidate.

                  A 1 Reply Last reply
                  0
                  • S sc20cah

                    @jsulm
                    I am running Nvidia 470.86 with an rtx 2060 and same error after update

                    @anil_arise
                    When I run the command u gave I get 'failed to create playbin element' I have tried reinstalling all the plugins you have listed and still the same error. Also, when it gets to installing gstreamer-1.9-fluendo-mp3 it says it has no installation candidate.

                    A Offline
                    A Offline
                    anil_arise
                    wrote on last edited by
                    #9

                    @sc20cah As per your debugger screenshot, qt media player using default media streamer is Gstreamer, so

                    1. Install and resolve gstreamer with its dependencies .
                    2. If plugins of gstreamer are correctly configured/installed . example1 or example2 will be run without error.
                    3. then compile your qt media player program.
                    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