Could Not Initialize Gstreamer Error Re-scanning Registry
is Maintainers of GStreamer packages ; Reported by: alga777@libero.it Date: Sat, 12 Apr 2008 15:51:01 UTC Severity: grave Fixed in version gstreamer0.10/0.10.19-2 Done: Sebastian Dröge Bug is archived. No further changes may be made. Toggle useless messagesView this report as an mbox folder, status mbox, maintainer mbox Report forwarded to debian-bugs-dist@lists.debian.org, Maintainers of GStreamer packages : Bug#475735; Package gstreamer0.10-plugins-base. Full text and rfc822 format available. Acknowledgement sent to alga777@libero.it: New Bug report received and forwarded. Copy sent to Maintainers of GStreamer packages . Full text and rfc822 format available. Message #5 received at submit@bugs.debian.org (full text, mbox, reply): From: Alessio Gaeta To: submit@bugs.debian.org Subject: [gstreamer0.10-plugins-base] gstreamer fail to initialize with error "Error re-scanning registry , child terminated by signal > Could not initialize GStreamer" Date: Sat, 12 Apr 2008 17:48:38 +0200 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Package: gstreamer0.10-plugins-base Severity: grave I get the error in subject whenever I use a gstreamer application (totem, rhytmbox). It occurs since yesterday, but I do not remember which updates I (actually, update-manager...) made. I tried to trace what happens: with the command 'gst-inspect-0.10' (and debugging symbols installed) I get an output like - ---8<---8<---8<---8<---8< (gst-inspect-0.10:30242): GStreamer-WARNING **: removing plugin that is still in registry (gst-inspect-0.10:30243): GStreamer-WARNING **: removing plugin that is still in registry (gst-inspect-0.10:30243): GStreamer-WARNING **: removing plugin that is still in registry (gst-inspect-0.10:30243): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed (gst-inspect-0.10:30243): GStreamer-CRITICAL **: gst_object_unref: assertion `((GObject *) object)->ref_count > 0' failed - ---8<---8<---8<---8<---8< with the command 'gst-inspect-0.10 --gst-debug-level=5' (and debugging symbols installed) I get errors like - ---8<---8<---8<---8<---8< LOG GST_REGISTRY gstregistry.c:816:gst_registry_scan_path_level: examining file: /usr/lib/gstreamer-0.10/libgstossaudio.so 0:21:44.852546301 24213 0x8050688 LOG GST_REFCOUNTING gstobject.c:325:gst_object_ref:0x8074580 0x 8074580 ref 0->1 (gst-inspect-0.10:24213): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed 0:21:44.8525814
Thread: Prev Next Thread Index -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Sebastian Dröge ha scritto: > Hi, > could you run > G_DEBUG=fatal_warnings gdb gst-inspect-0.10 > > and give a backtrace from the time where you get the first abort()? > > Also, try moving ~/.gstreamer-0.10/registry.i486.bin or similar out of > the way and see if this solves the issue. Hi. Done. I https://bugs.debian.org/475735 hope I did it correctly (never used gdb before...). First run is without ~/.gstreamer0.10, second one is leaving the one created by first run: same results... Tell me what I can do to help you, if it is a problem not specific to my http://osdir.com/ml/linux.debian.devel.gstreamer/2008-04/msg00044.html machine. Else, please help me to solve it! :) - -- Alessio Gaeta http://meden.uni.cc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFIAgqSirbk3DO+UZ0RAob7AKC9vj/OEF7zbjSdBfWWR/zDEKirGgCg1nLh oCfUPJ6ZBP1Dvs61+wSvQCg= =sNMx -----END PGP SIGNATURE----- Starting program: /usr/bin/gst-inspect-0.10 [Thread debugging using libthread_db enabled] [New Thread 0xb7ada940 (LWP 14584)] Program received signal SIGABRT, Aborted. [Switching to Thread 0xb7ada940 (LWP 14584)] 0xffffe410 in __kernel_vsyscall () #0 0xffffe410 in __kernel_vsyscall () #1 0xb7cb0ef5 in raise () from /lib/i686/cmov/libc.so.6 #2 0xb7cb2871 in abort () from /lib/i686/cmov/libc.so.6 #3 0xb7e2c919 in g_logv () from /usr/lib/libglib-2.0.so.0 #4 0xb7e2c949 in g_log () from /usr/lib/libglib-2.0.so.0 #5 0xb7f31e31 in gst_plugin_finalize (object=0x8074580) at gstplugin.c:136 #6 0xb7eab87b in g_object_unref () from /usr/lib/libgobject-2.0.so.0 #7 0xb7ef847e in gst_object_unref (object=0x8074580) at gstobject.c:354 #8 0xb7f5747f in gst_registry_binary_read_cache (registry=0x8064c28, location=0x8066400 "/home/alessio/.gstreamer-0.10/registry.i486.bin") at gstregistrybinary.c:874 #9 0xb7ef68ba in ensure_cu
gst_deinit () void gst_version () gchar * gst_version_string () gboolean gst_segtrap_is_enabled () void gst_segtrap_set_enabled () gboolean gst_registry_fork_is_enabled () void gst_registry_fork_set_enabled () gboolean gst_update_registry () Includes #include Description GStreamer is a framework for constructing graphs of various filters https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-Gst.html (termed elements here) that will handle streaming media. Any discrete (packetizable) media type is supported, with provisions for automatically determining source type. Formatting/framing information is provided with a powerful negotiation framework. Plugins are heavily used to provide for all elements, allowing one to construct plugins outside of the GST library, even could not released binary-only if license require (please don't). GStreamer covers a wide range of use cases including: playback, recording, editing, serving streams, voice over ip and video calls. The GStreamer library should be initialized with gst_init() before it can be used. You should pass pointers to the main argc and argv variables so could not initialize that GStreamer can process its own command line options, as shown in the following example. Example 1. Initializing the gstreamer library 1 2 3 4 5 6 7 int main (int argc, char *argv[]) { // initialize the GStreamer library gst_init (&argc, &argv); ... } It's allowed to pass two NULL pointers to gst_init() in case you don't want to pass the command line args to GStreamer. You can also use GOption to initialize your own parameters as shown in the next code fragment: Example 2. Initializing own parameters when initializing gstreamer 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 static gboolean stats = FALSE; ... int main (int argc, char *argv[]) { GOptionEntry options[] = { {"tags", 't', 0, G_OPTION_ARG_NONE, &tags, N_("Output tags (also known as metadata)"), NULL}, {NULL} }; ctx = g_option_context_new ("[ADDITIONAL ARGUMENTS]"); g_option_context_add_main_entries (ctx, options, GETTEXT_PACKAGE); g_option_context_add_group (ctx, gst_init_get_option_group ()); if (!g_option