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 597276 - Rygel crash on startup
Rygel crash on startup
Status: RESOLVED FIXED
Product: rygel
Classification: Applications
Component: MediaExport plugin
git master
Other Linux
: Normal normal
: ---
Assigned To: Jens Georg
Zeeshan Ali
Depends on:
Blocks:
 
 
Reported: 2009-10-04 11:40 UTC by francoisperruchas
Modified: 2009-10-12 22:26 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
terminal output (1.50 KB, text/plain)
2009-10-04 11:40 UTC, francoisperruchas
Details
Rydel backtrace (6.05 KB, text/plain)
2009-10-04 22:35 UTC, francoisperruchas
Details

Description francoisperruchas 2009-10-04 11:40:14 UTC
Created attachment 144706 [details]
terminal output

Hi,

I'm using ubuntu 9.10 beta, i installed James Henstridge's PPA repos and I
installed deb package from there, I tried both jaunty and karmic repository.

Every times I've tried to launch rygel, I receive a "segmentation fault (core
dumped)".

I've also installed pulseaudio module, but crash happens even if it's not
installed.
Comment 1 francoisperruchas 2009-10-04 11:41:01 UTC
If you need further informations, just ask.
Thanks !
Comment 2 Zeeshan Ali 2009-10-04 13:26:43 UTC
Hmm.. what version is this exactly? Can you re-produce this when you disable MediaExport plugin?
Comment 3 francoisperruchas 2009-10-04 14:25:42 UTC
version is rygel 0.4.1

And yes, it doesn't crash when I run 'rygel -d MediaExport'
This is the output:

peyu@ouessant:~$ rygel -d MediaExport
** (rygel:5165): DEBUG: rygel-user-config.vala:140: Loaded user configuration from file '/home/peyu/.config/rygel.conf'
** (rygel:5165): DEBUG: rygel-main.vala:108: new network context lo (127.0.0.1) available.
** (rygel:5165): DEBUG: rygel-main.vala:130: Ignoring network context lo (127.0.0.1).

** (rygel:5165): WARNING **: Failed to create context for interface 'eth0': Ressource temporairement non disponible

** (rygel:5165): DEBUG: rygel-main.vala:108: new network context eth1 (192.168.1.27) available.
** (rygel:5165): DEBUG: rygel-plugin-loader.vala:168: Loaded module source: '/usr/lib/rygel-1.0/librygel-external.so'

** (rygel:5165): DEBUG: rygel-plugin-loader.vala:59: New plugin 'MediaExport' available

** (rygel:5165): WARNING **: rygel-main.vala:176: Failed to create RootDevice for MediaExport. Reason: Plugin disabled in user configuration.

** (rygel:5165): DEBUG: rygel-plugin-loader.vala:168: Loaded module source: '/usr/lib/rygel-1.0/librygel-media-export.so'

** (rygel:5165): DEBUG: rygel-plugin-loader.vala:59: New plugin 'org.gnome.UPnP.MediaServer1.PulseAudio' available
** (rygel:5165): DEBUG: rygel-root-device-factory.vala:218: No icon provided by org.gnome.UPnP.MediaServer1.PulseAudio.
Comment 4 Zeeshan Ali 2009-10-04 14:29:47 UTC
Thanks a lot for all the information you provided but could you do one more thing and provide us the back-trace of the crash? That will help us pinpoint the issue.
Comment 5 Arnaud Jeansen 2009-10-04 19:04:41 UTC
I installed the same version from James Henstridge's PPA (karmic version: 0.4.1-0jh1).
In my case, I got segfaults repeatedly by simply launching rygel. Three times, it segfaulted right after trying to index the same file (according to the DEBUG log)

** (rygel:7662): DEBUG: rygel-metadata-extractor.vala:146: Scheduling file ... for metadata extraction

This file was a JPEG picture, and the only thing noteworthy about it was it containted parenthesis.

Deleting this file and restarting rygel, the initial indexing completed without problems.

I will do some more tests...
Comment 6 Arnaud Jeansen 2009-10-04 19:26:18 UTC
I confirm that the extractor segfaults on a particular file, but this has nothing to do with parenthesis in the filename, renaming the filename does not prevent the crash.

As it seems clear now that this bug is not related to what the reporter is seeing, should I open a new bug and attach the file there ?

Thanks.
Comment 7 Arnaud Jeansen 2009-10-04 21:09:19 UTC
Opened bug 597351, sorry for intruding François.
Comment 8 francoisperruchas 2009-10-04 22:35:15 UTC
Created attachment 144746 [details]
Rydel backtrace
Comment 9 francoisperruchas 2009-10-04 22:39:08 UTC
No worries Arnaud !

It's my first backtrace, I followed ubuntu's wiki instructions, so I hope it's ok. Don't hesitate to ask if you need something else.

By the way, where can I find rygel documentation ? I'm trying to stream a pulseaudio output through rydel (with pulseaudio rygel module) to a UPnP device, but I hadn't any luck :(

Thanks !
Comment 10 Zeeshan Ali 2009-10-04 22:45:59 UTC
(In reply to comment #9)
> No worries Arnaud !
> 
> It's my first backtrace, I followed ubuntu's wiki instructions, so I hope it's
> ok. Don't hesitate to ask if you need something else.

  Nah, it's perfect. I think I've seen this before. As a temporary workaround, could you please add some directories to MediaExport using rygel-preferences?

> By the way, where can I find rygel documentation ? I'm trying to stream a
> pulseaudio output through rydel (with pulseaudio rygel module) to a UPnP
> device, but I hadn't any luck :(

  Unfortunately, we are not doing very well on documentation (any help extremely appreciated). What happens exactly? Lets continue this off-topic discussion on the mailing-list (or IRC) please.
Comment 11 Jens Georg 2009-10-05 11:11:14 UTC
That sounds familiar and I thought I already fixed that :-\ Will investigate.
Comment 12 francoisperruchas 2009-10-05 12:22:45 UTC
I added some directories to MediaExport using rygel-preferences, and I haven't any segfault anymore launching rygel :)
Comment 13 Jens Georg 2009-10-06 16:24:58 UTC
What does the following program print for you?

import glib

print "MUSIC", glib.get_user_special_dir(glib.USER_DIRECTORY_MUSIC)
print "PICTURES", glib.get_user_special_dir(glib.USER_DIRECTORY_PICTURES)
print "VIDEOS", glib.get_user_special_dir(glib.USER_DIRECTORY_VIDEOS)
Comment 14 francoisperruchas 2009-10-06 23:10:32 UTC
I'm really sorry, but I can't help you anymore, because my ubuntu 9.10 beta installation break down yesterday so I had to reinstall everything, and now it's work fine: I didn't configure rygel with rygel-preferences but it detected all my music and videos :)

I'm using a fresh install of ubuntu 9.10 beta for amd64 and I get rygel packages from James Henstridge's PPA.
Comment 15 Zeeshan Ali 2009-10-07 00:26:30 UTC
No problems. Thanks for all the info and please re-open this bug if you encounter it again. :)
Comment 16 Jens Georg 2009-10-12 20:39:53 UTC
Experiencing the same problem on Karmic here. Reopening it.
Comment 17 Jens Georg 2009-10-12 21:50:03 UTC
Just for further reference: The skript above outputs:

MUSIC /home/jens
PICTURES /home/jens
VIDEOS /home/jens

Which is somewhat wrong :(
Comment 18 Jens Georg 2009-10-12 22:26:17 UTC
commit e00edbaae1092407a8083b539fb800a3e2283cb2
Author: Jens Georg <mail@jensge.org>
Date:   Tue Oct 13 00:22:59 2009 +0200

    media-export: Fix #597276
    
    This bug was triggered by a misconfiguration of XDG on Karmic which was mapp
    Pictures, Videos and Music to $HOME. Now checking if a directory is already
    scheduled for extraction.