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. Qt Crash with phonon
Forum Updated to NodeBB v4.3 + New Features

Qt Crash with phonon

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 2.8k Views 1 Watching
  • 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
    sruthihsr
    wrote on last edited by
    #1

    Hi All,

    I am new to Qt. I use Qt 4.7 on fedora 9.I get the following error and a crash
    The inferior stopped because it received a signal from the Operating System.

    Signal name :
    SIGSEGV
    Signal meaning :
    Segmentation fault. on having
    Phonon::MediaObject *music =
    Phonon::createPlayer(Phonon::MusicCategory, Phonon::MediaSource("/root/Desktop/song/abc.mp3"));
    music->play();

    I get similar error with Qmediaplayer demo

    I am posting my cpp file for reference. Please help
    @
    #include <QtGui/QApplication>
    #include "qmlapplicationviewer.h"
    #include <iostream>
    #include <fstream>
    #include <string>
    #include <getopt.h>
    #include <id3/misc_support.h>
    #include <QtGui/QWidget>
    #include <QtGui/QApplication>
    #include <QtCore/QTimerEvent>
    #include <QtGui/QShowEvent>
    #include <QtGui/QIcon>
    #include <QtCore/QBasicTimer>
    #include <QtGui/QAction>

    #include <phonon/audiooutput.h>
    #include <phonon/backendcapabilities.h>
    #include <phonon/effect.h>
    #include <phonon/effectparameter.h>
    #include <phonon/effectwidget.h>
    #include <phonon/mediaobject.h>
    #include <phonon/seekslider.h>
    #include <phonon/videowidget.h>
    #include <phonon/volumeslider.h>
    #include <phonon/mediasource.h>
    #include <Phonon>

    #include <sys/types.h>
    #include <sys/stat.h>

    using namespace std;

    int main(int argc, char *argv[])
    {
    QApplication app(argc, argv);
    app.setApplicationName( "Mu" );

    QmlApplicationViewer viewer;
    viewer.setOrientation(QmlApplicationViewer::ScreenOrientationAuto);
    viewer.setMainQmlFile&#40;QLatin1String("qml/mp02/main.qml"&#41;);
    viewer.showExpanded();
    
    Phonon::MediaObject *music =
    

    Phonon::createPlayer(Phonon::MusicCategory,
    Phonon::MediaSource("/root/Desktop/song/abc.mp3"));
    music->play();
    return app.exec();
    }
    @

    1 Reply Last reply
    0
    • EddyE Offline
      EddyE Offline
      Eddy
      wrote on last edited by
      #2

      Please don't make the same post twice. We will remove the other one, since it doesn't add anything to the showcase you posted in.

      You get a segmentation fault. Did you debug and step i to your code to see on what line the error originates?

      Qt Certified Specialist
      www.edalsolutions.be

      1 Reply Last reply
      0
      • S Offline
        S Offline
        sruthihsr
        wrote on last edited by
        #3

        Thanks for responding.
        The Error is thrown on call of return app.exec();
        internally on call of QmlApplicationViewer::~QmlApplicationViewer()
        {
        delete m_d;
        }

        1 Reply Last reply
        0
        • S Offline
          S Offline
          sruthihsr
          wrote on last edited by
          #4

          I am getting the following errors on executing Qmediaplayer demo.
          @
          (<unknown>:1422): GStreamer-WARNING **: Failed to load plugin '/usr/lib/gstreamer-0.10/libgstdecodebin.so': /usr/local/lib/libgstpbutils-0.10.so.0: undefined symbol: gst_element_link_pads_full

          (<unknown>:1422): GLib-GObject-WARNING **: invalid (NULL) pointer instance

          (<unknown>:1422): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed

          (<unknown>:1422): GLib-GObject-WARNING **: invalid (NULL) pointer instance

          (<unknown>:1422): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed

          (<unknown>:1422): GLib-GObject-WARNING **: invalid (NULL) pointer instance

          (<unknown>:1422): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed

          (<unknown>:1422): GStreamer-CRITICAL **: gst_bin_add: assertion `GST_IS_ELEMENT (element)' failed.
          @
          I have reinstalled Gstreamer , Gstreamer plugin base and Gstreamer plugins good.
          Can anybody help on how to resolve the problem

          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