After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 138582 - [Patch] Running gnome-sound-recorder without GStreamer registry causes crash
[Patch] Running gnome-sound-recorder without GStreamer registry causes crash
Status: RESOLVED FIXED
Product: gnome-media
Classification: Deprecated
Component: Gnome-Sound-Recorder
2.5.x
Other other
: Normal normal
: 2.9.5
Assigned To: gnome media maintainers
gnome media maintainers
: 146068 150595 154613 166545 300846 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2004-03-31 03:36 UTC by Sam Varner
Modified: 2005-04-17 01:19 UTC
See Also:
GNOME target: ---
GNOME version: 2.9/2.10


Attachments
Patch for this problem (762 bytes, text/plain)
2005-01-24 06:24 UTC, Balamurali Viswanathan
  Details
Patch against head sources (1.83 KB, patch)
2005-01-24 06:57 UTC, Balamurali Viswanathan
none Details | Review
Final patch that I checked in (5.49 KB, patch)
2005-01-24 14:15 UTC, Balamurali Viswanathan
none Details | Review

Description Sam Varner 2004-03-31 03:34:52 UTC
Distribution: Unknown
Package: gnome-media
Severity: normal
Version: GNOME2.5.92 2.5.5
Gnome-Distributor: GNOME.Org
Synopsis: Running gnome-sound-recorder without GStreamer registry causes crash
Bugzilla-Product: gnome-media
Bugzilla-Component: Gnome-Sound-Recorder
Bugzilla-Version: 2.5.5
BugBuddy-GnomeVersion: 2.0 (2.5.92)
Description:
Description of the crash:
Error dialog appears

Steps to reproduce the crash:
1. Don't run gst-register after installing GStreamer
2. Launch Sound Recorder
3. 

Expected Results:
Message explaining that there's no (or out-of-date) GStreamer registry

How often does this happen?
Each time

Additional Information:



Debugging Information:

Backtrace was generated from '/usr/bin/gnome-sound-recorder'

[New Thread 1024 (LWP 1889)]
0x40d1e409 in wait4 () from /lib/libc.so.6

Thread 1 (Thread 1024 (LWP 1889))

  • #0 wait4
    from /lib/libc.so.6
  • #1 __check_rhosts_file
    from /lib/libc.so.6
  • #2 waitpid
    at wrapsyscall.c line 172
  • #3 libgnomeui_segv_handle
    at gnome-ui-init.c line 741
  • #4 pthread_sighandler
    at signals.c line 97
  • #5 killpg
    from /lib/libc.so.6
  • #6 abort
    from /lib/libc.so.6
  • #7 g_logv
    at gmessages.c line 522
  • #8 g_log
    at gmessages.c line 541
  • #9 gst_scheduler_factory_make
    at gstscheduler.c line 935
  • #10 gst_pipeline_init
    at gstpipeline.c line 118
  • #11 g_type_create_instance
    at gtype.c line 1595
  • #12 g_object_constructor
    at gobject.c line 1044
  • #13 gst_object_constructor
    at gstobject.c line 196
  • #14 g_object_newv
    at gobject.c line 941
  • #15 g_object_new_valist
    at gobject.c line 984
  • #16 g_object_new
    at gobject.c line 822
  • #17 gst_element_factory_create
    at gstelementfactory.c line 295
  • #18 gst_element_factory_make
    at gstelementfactory.c line 334
  • #19 gst_pipeline_new
    at gstpipeline.c line 151
  • #20 make_play_pipeline
    at gsr-window.c line 1321
  • #21 gsr_window_init
    at gsr-window.c line 1666
  • #22 g_type_create_instance
    at gtype.c line 1595
  • #23 g_object_constructor
    at gobject.c line 1044
  • #24 g_object_newv
    at gobject.c line 941
  • #25 g_object_new_valist
    at gobject.c line 1025
  • #26 g_object_new
    at gobject.c line 822
  • #27 gsr_window_new
    at gsr-window.c line 1509
  • #28 gsr_open_window
    at gnome-recorder.c line 92
  • #29 main
    at gnome-recorder.c line 194
  • #30 __libc_start_main
    from /lib/libc.so.6
  • #0 wait4
    from /lib/libc.so.6




------- Bug moved to this database by unknown@bugzilla.gnome.org 2004-03-30 22:34 -------


Unknown version 2.5.5 in product gnome-media. Setting version to "1.112.0".
Unknown platform unknown. Setting to default platform "Other".
Unknown milestone "unknown" in product "gnome-media".
   Setting to default milestone for this product, '---'
Setting to default status "UNCONFIRMED".
Setting qa contact to the default for this product.
   This bug either had no qa contact or an invalid one.

Comment 1 Kjartan Maraas 2004-04-15 21:00:02 UTC
Has this been addressed in gstreamer or does it need to be fixed in every app?
Comment 2 Thomas Vander Stichele 2004-05-06 16:59:32 UTC
g-s-r is using gnome_program_init with a pointer to gst's popt table.

I'll check into how with this setup it can be made to not assert.

I'm pretty sure though that gtk does the same thing if it cannot initialize.
Comment 3 Vincent Noel 2004-08-20 19:03:42 UTC
*** Bug 150595 has been marked as a duplicate of this bug. ***
Comment 4 Elijah Newren 2004-11-08 20:05:49 UTC
*** Bug 146068 has been marked as a duplicate of this bug. ***
Comment 5 David Lodge 2004-12-13 21:26:19 UTC
*** Bug 154613 has been marked as a duplicate of this bug. ***
Comment 6 Stephane Loeuillet 2004-12-22 12:12:34 UTC
no gstreamer registry means broken gstreamer installation, no ?
Comment 7 Kjartan Maraas 2005-01-11 21:40:13 UTC
Yeah, it means it's broken, but maybe the user should get some feedback and a
message to run gst-register-0.x instead of the app just crashing.
Comment 8 Ronald Bultje 2005-01-11 23:00:42 UTC
I don't know of a single distribution that doesn't run gst-register
automatically... I suppose you're right, but current versions just g_error()...
Comment 9 David Lodge 2005-01-12 00:12:19 UTC
SuSE 9.1 doesn't run gst-register automatically (or didn't when I installed it).

It's still avoiding the point - a program should never crash - would it be too 
hard to bring up an error dialogue stating "gst-register isn't running"?
Comment 10 Ronald Bultje 2005-01-12 07:19:44 UTC
I'll try to get a proper change in. It's not so much hard, as much as we're just
used to the current behaviour. Might be wrong, but it's legacy...
Comment 11 Balamurali Viswanathan 2005-01-24 06:24:33 UTC
Created attachment 36436 [details]
Patch for this problem

Ronald, Patch as per your suggestions on IRC. Thanks.
Comment 12 Balamurali Viswanathan 2005-01-24 06:57:13 UTC
Created attachment 36437 [details] [review]
Patch against head sources
Comment 13 Ronald Bultje 2005-01-24 10:39:58 UTC
Go ahead and apply (you have GNOME CVS access, right?). While you're at it, can
you apply the very same patch to gnome-volume-control and gnome-cd? They use
GStreamer as well. The patch would be exactly the same. :).
Comment 14 Balamurali Viswanathan 2005-01-24 14:14:40 UTC
Thanks Ronald. Did the same changes to gnome-cd and gnome-volume-control.
Marking this bug as fixed. For gnome-cd I have put this check under #ifdef
HAVE_GST. Thanks
Comment 15 Balamurali Viswanathan 2005-01-24 14:15:48 UTC
Created attachment 36449 [details] [review]
Final patch that I checked in
Comment 16 Ronald Bultje 2005-01-24 15:56:24 UTC
Good work, thanks Bala. I'll add this to the manual, too, at some point.
Comment 17 Ronald Bultje 2005-02-07 13:17:13 UTC
*** Bug 166545 has been marked as a duplicate of this bug. ***
Comment 18 Elijah Newren 2005-04-17 01:19:14 UTC
*** Bug 300846 has been marked as a duplicate of this bug. ***