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 742296 - Getting aborted (core dumped) when directories are large (around 6000)
Getting aborted (core dumped) when directories are large (around 6000)
Status: RESOLVED OBSOLETE
Product: rygel
Classification: Applications
Component: general
0.20.x
Other Linux
: Normal critical
: ---
Assigned To: rygel-maint
rygel-maint
Depends on:
Blocks:
 
 
Reported: 2015-01-04 03:48 UTC by rt
Modified: 2018-05-22 12:53 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Here's the file as an attachment (37.05 KB, text/plain)
2015-01-05 12:48 UTC, rt
Details
crash when I type G_MESSAGES_DEBUG=all rygel -g 5 > rygelcrash.txt (952.59 KB, application/x-compress)
2015-01-06 15:03 UTC, rt
Details

Description rt 2015-01-04 03:48:20 UTC
Getting aborted (core dumped) when directories are large around 6000 files and sub directories.  I'm using ubuntu 14.04 64bit.  I installed it from the ubuntu repos  rygel 0.20.3-1ubuntu2

Here's my configuration

# Configuration file for Rygel

# General configuration options

[general]
# Set it to 'false' if you want to only use the streaming part of Rygel and/or
# don't want it to advertize itself on the UPnP network. If you want to
# completely disable rygel, just don't run it then. :)
upnp-enabled=true

# Set it to 'false' if you want to disable transcoding support.
enable-transcoding=false

# Where video files should be saved if allow-upload is true.
# Defaults to @VIDEOS@, the standard videos folder (typically ${HOME}/Videos).
video-upload-folder=@VIDEOS@

# Where music files should be saved if allow-upload is true
# Defaults to @MUSIC@, the standard music folder (typically ${HOME}/Music).
music-upload-folder=@MUSIC@

# Where picture files should be saved if allow-upload is true
# Defaults to @PICTURES@, the standard picture folder (typically ${HOME}/Pictures).
picture-upload-folder=@PICTURES@

# Default media engine to load. If not specified, the engine directory is
# searched recursively and the first engine found is loaded.
media-engine=librygel-media-engine-gst.so

# List of network interfaces to attach rygel to. You can also use network IP or
# even ESSID for wireless networks on Linux. Leave it blank for dynamic
# configuration.
interface=wlan0;

# The port to run HTTP server on. 0 means dynamic.
port=16000

# Comma-separated list of domain:level pairs to specify log level thresholds for
# individual domains. domain could be either 'rygel', name of a plugin or '*'
# for all domains. Allowed levels are:
#
# 1=critical
# 2=error
# 3=warning
# 4=message/info
# 5=debug
log-level=*:4

# Allow upload of media files?
allow-upload=false

# Allow deletion of media folders and files?
allow-deletion=true

# Semicolon-separated list of device user-agents (or parts thereof) that need
# a downgrade in the UPnP device versions
# WARNING /!\: Only change this setting when told to do so or when you know
#              what you're doing. If you find that adding your device makes it
#              working with Rygel, please file a bug at
#              https://bugzilla.gnome.org/enter_bug.cgi?product=Rygel&component=IOP
#              so we can include it in future releases.
#force-downgrade-for=Allegro-Software-WebClient;SEC_HHP;SEC HHP;Mediabolic-IMHTTP/1;TwoPlayer;Reciva;FDSSDP;Portable SDK for UPnP devices;Darwin

# Plugin specific sections
#
# Some options are generic and some are specific to each plugin.
# The generic ones are:
#
# * enabled: As the name suggests, to enable or disable the plugin.
# * title: The title of the plugin to advertise to UPnP clients. This can
#          contain the following automatically substituted keywords:
#       * @REALNAME@: The real name of the user as returned by
#                     g_get_real_name() function of glib library.
#       * @USERNAME@: The user name of the user as returned by
#                     g_get_user_name() function of glib library.
#       * @HOSTNAME@: The host name of the machine rygel is running on, as
#                     returned by g_get_host_name() function of glib library.
#

# Options related to the used media backend.
# The options shown in this configuration file are specific to GStreamer.

[GstMediaEngine]

# List of active transcoders. To disable one, remove from list.
transcoders=mp3;lpcm;mp2ts;wmv;aac;avc

# Options that apply to the renderer framework in general

[Renderer]

# Default showtime in seconds to use for images in playlists if dlna:lifetime
# is not set. DLNA wants something between 5 and 15 seconds.
image-timeout=15

[Tracker]
enabled=false
share-pictures=true
share-videos=true
share-music=true
strict-sharing=false
title=@REALNAME@'s media

[MediaExport]
enabled=true
title=@REALNAME@'s media
# List of URIs to export. Following variables are automatically substituted by
# the appropriate XDG standard media folders by Rygel for you.
#
#       * @MUSIC@: The standard music folder (typically ${HOME}/Music).
#       * @VIDEOS@: The standard videos folder (typically ${HOME}/Videos).
#       * @PICTURES@: The standard pictures folder (typically ${HOME}/Pictures).
#


uris=@MUSIC@;/home/rt/Videos/1 tv;/home/rt/Videos/1 health;/home/rt/Videos/1 new energy;/home/rt/Videos/1 Audio books/1 Abraham-Hicks Stuff;

extract-metadata=true
monitor-changes=true
virtual-folders=true

[Playbin]
enabled=true
title=Audio/Video playback on @HOSTNAME@

[ZDFMediathek]
enabled=false
# List of ids of broadcasts
rss=508
update-interval=1800
video-format=wmv

[GstLaunch]
enabled=false
launch-items=audiotestsrc;videotestsrc;videotestoverlay
audiotestsrc-title=Audiotestsrc
audiotestsrc-mime=audio/x-wav
audiotestsrc-launch=audiotestsrc ! wavenc
videotestsrc-title=Videotestsrc
videotestsrc-mime=video/mpeg
videotestsrc-launch=videotestsrc ! ffenc_mpeg2video ! mpegtsmux
videotestoverlay-title=Videotestsrc with timeoverlay 2
videotestoverlay-mime=video/mpeg
videotestoverlay-launch=videotestsrc ! timeoverlay ! ffenc_mpeg2video ! mpegtsmux

[Test]
enabled=false

[ExampleServerPluginVala]
enabled=false

[ExampleServerPluginC]
enabled=false

[ExampleRendererPluginVala]
enabled=false

[ExampleRendererPluginC]
enabled=false

[MPRIS]
enabled=false

[External]
enabled=false
Comment 1 rt 2015-01-04 03:52:29 UTC
This is what I get
rt@simon:~$ rygel
Rygel-Message: rygel-main.vala:87: Rygel v starting…
Rygel-Message: New plugin 'MediaExport' available
Segmentation fault (core dumped)
Comment 2 rt 2015-01-04 03:58:11 UTC
I Also get this

Rygel-Message: rygel-main.vala:87: Rygel v starting…
Rygel-Message: New plugin 'MediaExport' available
Segmentation fault (core dumped)
rt@simon:~$ rygel
Rygel-Message: rygel-main.vala:87: Rygel v starting…
Rygel-Message: New plugin 'MediaExport' available
MediaExport-Message: 'file:///home/rt/Videos/1%20tv/1%20TV%20categories/1%20vocal%20testing' harvested
Rygel-Message: rygel-thumbnailer.vala:132: No D-Bus thumbnailer available
Stream with high frequencies VQ coding
Stream with high frequencies VQ coding
MediaExport-Message: 'file:///home/rt/Videos/1%20tv/1%20TV%20categories' harvested
*** Error in `rygel': double free or corruption (!prev): 0x00007f20584c2000 ***
Aborted (core dumped)
Comment 3 Jens Georg 2015-01-05 11:19:12 UTC
Can you get a backtrace for those crashes? I rather suspect an issue with one of the files.

https://wiki.gnome.org/Community/GettingInTouch/Bugzilla/GettingTraces
Comment 4 rt 2015-01-05 12:12:01 UTC
ok, where is the core dump located and what's it's file name?
Comment 5 rt 2015-01-05 12:46:52 UTC
Here's what came back

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7371f80 in g_type_value_table_peek () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
(gdb) thread apply all bt

Thread 12 (Thread 0x7fffd1d99700 (LWP 21713))

  • #0 read
    at ../sysdeps/unix/syscall-template.S line 81
  • #1 ??
    from /usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstcoreelements.so
  • #2 ??
    from /usr/lib/x86_64-linux-gnu/libgstbase-1.0.so.0
  • #3 ??
    from /usr/lib/x86_64-linux-gnu/libgstbase-1.0.so.0
  • #4 ??
    from /usr/lib/x86_64-linux-gnu/libgstbase-1.0.so.0
  • #5 ??
    from /usr/lib/x86_64-linux-gnu/libgstreamer-1.0.so.0
  • #6 gst_pad_pull_range
    from /usr/lib/x86_64-linux-gnu/libgstreamer-1.0.so.0
  • #7 gst_proxy_pad_getrange_default
    from /usr/lib/x86_64-linux-gnu/libgstreamer-1.0.so.0
  • #8 ??
    from /usr/lib/x86_64-linux-gnu/libgstbase-1.0.so.0
  • #9 ??
    from /usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgsttypefindfunctions.so
  • #10 gst_type_find_factory_call_function
    from /usr/lib/x86_64-linux-gnu/libgstreamer-1.0.so.0
  • #11 gst_type_find_helper_get_range
    from /usr/lib/x86_64-linux-gnu/libgstbase-1.0.so.0
  • #12 ??
    from /usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstcoreelements.so
  • #13 ??
    from /usr/lib/x86_64-linux-gnu/libgstreamer-1.0.so.0
  • #14 ??
    from /lib/x86_64-linux-gnu/libglib-2.0.so.0
  • #15 ??
    from /lib/x86_64-linux-gnu/libglib-2.0.so.0
  • #16 start_thread
    at pthread_create.c line 312
  • #17 clone
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S line 111

Thread 1 (Thread 0x7ffff7fc3880 (LWP 21699))

  • #0 g_type_value_table_peek
    from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
  • #1 g_value_unset
    from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
  • #2 gst_structure_free
    from /usr/lib/x86_64-linux-gnu/libgstreamer-1.0.so.0
  • #3 ??
    from /usr/lib/x86_64-linux-gnu/libgstreamer-1.0.so.0
  • #4 ??
    from /usr/lib/x86_64-linux-gnu/libgstreamer-1.0.so.0
  • #5 g_main_context_dispatch
    from /lib/x86_64-linux-gnu/libglib-2.0.so.0
  • #6 ??
    from /lib/x86_64-linux-gnu/libglib-2.0.so.0
  • #7 g_main_loop_run
    from /lib/x86_64-linux-gnu/libglib-2.0.so.0
  • #8 rygel_main_run
    at rygel-main.c line 383
  • #9 rygel_main_main
    at rygel-main.c line 1326
  • #10 main
    at rygel-main.c line 1359

Comment 6 rt 2015-01-05 12:48:46 UTC
Created attachment 293815 [details]
Here's the file as an attachment

Here's the file as an attachment
Comment 7 rt 2015-01-05 12:51:43 UTC
I did a backtrace posted above but couldn't find a file name that maybe causing the crash.  Any ideas how to find the file name causing this?
Comment 8 rt 2015-01-06 15:03:47 UTC
Created attachment 293942 [details]
crash when I type G_MESSAGES_DEBUG=all rygel -g 5 > rygelcrash.txt

crash error when I type G_MESSAGES_DEBUG=all rygel -g 5 > rygelcrash.txt
Comment 9 rt 2015-01-06 15:06:58 UTC
Comment on attachment 293942 [details]
crash when I type G_MESSAGES_DEBUG=all rygel -g 5 > rygelcrash.txt

Please note that the place it crashes varies every time I run the G_MESSAGES_DEBUG=all rygel -g 5 > rygelcrash.txt
command
Comment 10 Jens Georg 2015-01-07 07:07:05 UTC
can you run gst-discover-1.0 on the last file in the log?
Comment 11 rt 2015-01-07 07:27:57 UTC
sure here you go

rt@simon:~/Videos/1 tv/1 TV categories$ gst-discoverer-1.0 SSE\ Talks\ -\ 40\ Hz\ Brainwaves\ and\ Higher\ Consciousness\ 2_3.mp4 
Analyzing file:///home/rt/Videos/1%20tv/1%20TV%20categories/SSE%20Talks%20-%2040%20Hz%20Brainwaves%20and%20Higher%20Consciousness%202_3.mp4
Done discovering file:///home/rt/Videos/1%20tv/1%20TV%20categories/SSE%20Talks%20-%2040%20Hz%20Brainwaves%20and%20Higher%20Consciousness%202_3.mp4

Topology:
  container: Quicktime
    video: H.264
    audio: MPEG-4 AAC

Properties:
  Duration: 0:09:59.956666666
  Seekable: yes
  Tags: 
      datetime: 2009-07-29T03:00:02Z
      QT atom: 00000019677373740000001164617461000000010000000030:None:R3N0U2VnbWVudCwgZmxhZ3M9KEdzdFNlZ21lbnRGbGFncylHU1RfU0VHTUVOVF9GTEFHX05PTkUsIHJhdGU9KGRvdWJsZSkxLCBhcHBsaWVkLXJhdGU9KGRvdWJsZSkxLCBmb3JtYXQ9KEdzdEZvcm1hdClHU1RfRk9STUFUX1RJTUUsIGJhc2U9KGd1aW50NjQpMCwgb2Zmc2V0PShndWludDY0KTAsIHN0YXJ0PShndWludDY0KTAsIHN0b3A9KGd1aW50NjQpMTg0NDY3NDQwNzM3MDk1NTE2MTUsIHRpbWU9KGd1aW50NjQpMCwgcG9zaXRpb249KGd1aW50NjQpMCwgZHVyYXRpb249KGd1aW50NjQpMTg0NDY3NDQwNzM3MDk1NTE2MTU7AA__:YXBwbGljYXRpb24veC1nc3QtcXQtZ3NzdC10YWcsIHN0eWxlPShzdHJpbmcpaXR1bmVzOwA_
      container format: ISO MP4/M4A
      audio codec: MPEG-4 AAC audio
      maximum bitrate: 151040
      bitrate: 126600
      video codec: H.264 / AVC

rt@simon:~/Videos/1 tv/1 TV categories$
Comment 12 Jens Georg 2015-01-20 07:39:02 UTC
Mhm. Odd.
Comment 13 Jens Georg 2015-09-10 06:45:19 UTC
Can you re-try with gupnp-dlna 0.10.3? Earlier versions had a bad memory leak which could hit you when you have lots of music files.
Comment 14 GNOME Infrastructure Team 2018-05-22 12:53:31 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/rygel/issues/80.