Sophie

Sophie

distrib > Mandriva > 10.0-com > i586 > by-pkgid > f0a9f2b9c81d34eadc43f527947c0b70 > files > 86

libgstreamer0.7-devel-0.7.4-2mdk.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML
><HEAD
><TITLE
>Troubleshooting GStreamer</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
REL="HOME"
HREF="index.html"><LINK
REL="PREVIOUS"
TITLE="Using GStreamer"
HREF="chapter-using.html"><LINK
REL="NEXT"
TITLE="Building GStreamer from CVS"
HREF="chapter-cvs.html"></HEAD
><BODY
CLASS="sect1"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
></TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="chapter-using.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="chapter-cvs.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="sect1"
><H1
CLASS="sect1"
><A
NAME="chapter-troubleshooting"
>6. Troubleshooting GStreamer</A
></H1
><DIV
CLASS="qandaset"
><DL
><DT
>6.1. <A
HREF="chapter-troubleshooting.html#troubleshooting-missing-plug-in"
>&#13;Some application is telling me that I am missing a plug-in.  What do I do ?
        </A
></DT
><DT
>6.2. <A
HREF="chapter-troubleshooting.html#troubleshooting-old-plug-ins"
>&#13;I get an error that says something like

(process:26626): GLib-GObject-WARNING **: specified instance size for type 
`DVDReadSrc' is smaller than the parent type's `GstElement' instance size
What's  wrong ?
        </A
></DT
><DT
>6.3. <A
HREF="chapter-troubleshooting.html#troubleshooting-segfault"
>&#13;The GStreamer application I used stops with a segmentation fault.  What can
I do ?
        </A
></DT
><DT
>6.4. <A
HREF="chapter-troubleshooting.html#troubleshooting-wiki"
>&#13;I'm having problems building or installing GStreamer. What should I do ?
        </A
></DT
></DL
><DIV
CLASS="qandaentry"
><DIV
CLASS="question"
><P
><A
NAME="troubleshooting-missing-plug-in"
></A
><B
>6.1. </B
>
Some application is telling me that I am missing a plug-in.  What do I do ?
        </P
></DIV
><DIV
CLASS="answer"
><P
><B
> </B
>
Well, start by checking if you really are missing the plug-in.
  <PRE
CLASS="programlisting"
>&#13;gst-inspect (plug-in)
  </PRE
>
and replace (plug-in) with the plug-in you think is missing.
If this doesn't return any result, then you either don't have it or your
registry cannot find it.
        </P
><P
>&#13;If you're not sure either way, then chances are good that you don't have
it.  You should get the plug-in and run gst-register to register it.
How to get the plug-in depends on your distribution.
<P
></P
><UL
><LI
><P
>if you run GStreamer using packages for your distribution, you
should check what packages are available for your distribution and see
if any of the available packages contains the plug-in.
</P
></LI
><LI
><P
>if you run GStreamer from a source install, there's a good chance
the plug-in didn't get built because you are missing an external library.
When you ran configure, you should have gotten output of what plug-ins are
going to be built.  You can re-run configure to see if it's there.
If it isn't, there is a good reason why it is not getting built.
The most likely is that you're missing the library you need for it.
Check the README file in gst-plugins to see what library you need.
Make sure to remember to re-run configure after installing the supporting
library !
</P
></LI
><LI
><P
>&#13;if you run GStreamer from CVS, the same logic applies as for a source install.
Go over the reasons why the plug-in didn't get configured for build.
Check output of config.log for a clue as to why it doesn't get built if
you're sure you have the library needed installed in a sane place.
</P
></LI
></UL
>

        </P
></DIV
></DIV
><DIV
CLASS="qandaentry"
><DIV
CLASS="question"
><P
><A
NAME="troubleshooting-old-plug-ins"
></A
><B
>6.2. </B
>
I get an error that says something like

(process:26626): GLib-GObject-WARNING **: specified instance size for type 
`DVDReadSrc' is smaller than the parent type's `GstElement' instance size
What's  wrong ?
        </P
></DIV
><DIV
CLASS="answer"
><P
><B
> </B
></P
></DIV
></DIV
><DIV
CLASS="qandaentry"
><DIV
CLASS="question"
><P
><A
NAME="troubleshooting-segfault"
></A
><B
>6.3. </B
>
The GStreamer application I used stops with a segmentation fault.  What can
I do ?
        </P
></DIV
><DIV
CLASS="answer"
><P
><B
> </B
>
There are two things you can do.  If you compiled GStreamer with specific
optimization compilation flags, you should try recompiling GStreamer,
the application and the plug-ins without any optimization flags.  This allows
you to verify if the problem is due to optimization or due to bad code.
Second, it will also allow you to provide a reasonable backtrace in case
the segmentation fault still occurs.
        </P
><P
>&#13;The second thing you can do is look at the backtrace to get an idea of where
things are going wrong, or give us an idea of what is going wrong.
To provide a backtrace, you should
<P
></P
><OL
TYPE="1"
><LI
><P
>&#13;  run the application in gdb by starting it with
  <PRE
CLASS="programlisting"
>&#13;    gdb (gst-application)
  </PRE
>
  (If the application is in a source tree instead of installed on the system,
  you might want to put "libtool" before "gdb")
</P
></LI
><LI
><P
>&#13;  Pass on the command line arguments to the application by typing
  <PRE
CLASS="programlisting"
>&#13;    set args (the arguments to the application)
  </PRE
>
  at the (gdb) prompt
</P
></LI
><LI
><P
>&#13;  Type "run" at the (gdb) prompt and wait for the application to
  segfault.  The application will run a lot slower, however.
</P
></LI
><LI
><P
>&#13;  After the segfault, type "bt" to get a backtrace.  This is a stack of
  function calls detailing the path from main () to where the code is
  currently at.
</P
></LI
><LI
><P
>&#13;  If the application you're trying to debug contains threads, it is also
  useful to do
  <PRE
CLASS="programlisting"
>&#13;    info threads
  </PRE
>
  and get backtraces of all of the threads involved, by switching to
  a different thread using "thread (number)" and then again requesting
  a backtrace using "bt".
</P
></LI
><LI
><P
>&#13;  If you can't or don't want to work out the problem yourself, a copy and paste
  of all this information should be included in your 
  <A
HREF="chapter-using.html#using-bugs-where"
>bug report</A
>.
</P
></LI
></OL
>
        </P
></DIV
></DIV
><DIV
CLASS="qandaentry"
><DIV
CLASS="question"
><P
><A
NAME="troubleshooting-wiki"
></A
><B
>6.4. </B
>
I'm having problems building or installing GStreamer. What should I do ?
        </P
></DIV
><DIV
CLASS="answer"
><P
><B
> </B
>
We've started a step-by-step 
<A
HREF="http://gstreamer.net/wiki/?DichotomousKey"
TARGET="_top"
>&#13;troubleshooting guide</A
>. 
Look there before asking, your problem might already have been solved by 
someone else.
        </P
></DIV
></DIV
></DIV
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="chapter-using.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="chapter-cvs.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>Using GStreamer</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
>&nbsp;</TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Building GStreamer from CVS</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>