E: shm.c: mmap() failed: Cannot allocate memory

Bug #317537 reported by Shirish Agarwal
22
This bug affects 3 people
Affects Status Importance Assigned to Milestone
gstreamer0.10 (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

Binary package hint: rhythmbox

Hi all,
 This is on jaunty . While trying to play songs I get the above error.

$ rhythmbox
E: shm.c: mmap() failed: Cannot allocate memory
E: shm.c: mmap() failed: Cannot allocate memory

And it goes on and on.

what should I do?

So what could be the issue?

ProblemType: Bug
Architecture: i386
DistroRelease: Ubuntu 9.04
Package: rhythmbox 0.11.6svn20090108-0ubuntu1
ProcEnviron:
 PATH=(custom, user)
 LANG=en_IN
 SHELL=/bin/bash
SourcePackage: rhythmbox
Uname: Linux 2.6.28-4-generic i686

Revision history for this message
Shirish Agarwal (shirishag75) wrote :
Revision history for this message
Pedro Villavicencio (pedro) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. Please try to obtain a valgrind log following the instructions at https://wiki.ubuntu.com/Valgrind and attach the file to the bug report. This will greatly help us in tracking down your problem.

Changed in rhythmbox:
importance: Undecided → Medium
status: New → Incomplete
Revision history for this message
Shirish Agarwal (shirishag75) wrote :

Adding the valgrind log. Hope its useful.

Revision history for this message
Shirish Agarwal (shirishag75) wrote :

I also got this when trying to play/use rhythmbox as well.

(rhythmbox:21159): RhythmDB-CRITICAL **: rhythmdb_entry_ref: assertion `entry != NULL' failed

(rhythmbox:21159): RhythmDB-CRITICAL **: rhythmdb_entry_get_ulong: assertion `entry != NULL' failed

lots of times as well.

Revision history for this message
Shirish Agarwal (shirishag75) wrote :

Hi all,
    I dunno if this affects it or not but my /etc/pulse/default.pa has

load-module module-hal-detect tsched=0 (line 51)

Could this be affecting it?

Revision history for this message
Pedro Villavicencio (pedro) wrote :

May you please install the dbgsym packages for both gstreamer and rhythmbox? looks like a gstreamer issue, btw does gst-launch playbin uri=file:///to/the/files works ok ? or you get the same issue? thanks.

Revision history for this message
Shirish Agarwal (shirishag75) wrote :
Download full text (3.6 KiB)

Pedro,
 I have an issue when installing the -dbgsym files.

$ sudo aptitude install gstreamer0.10-pulseaudio-dbgsym gstreamer0.10-alsa-dbgsym
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
The following packages are BROKEN:
  gnome-dbg
The following NEW packages will be installed:
  gstreamer0.10-alsa-dbgsym gstreamer0.10-pulseaudio-dbgsym
The following packages will be REMOVED:
  gstreamer0.10-plugins-base-dbg{a} gstreamer0.10-plugins-good-dbg{a}
0 packages upgraded, 2 newly installed, 2 to remove and 0 not upgraded.
Need to get 162kB of archives. After unpacking 11.9MB will be freed.
The following packages have unmet dependencies:
  gnome-dbg: Depends: gstreamer0.10-plugins-base-dbg but it is not installable
             Depends: gstreamer0.10-plugins-good-dbg but it is not installable
The following actions will resolve these dependencies:

Remove the following packages:
gnome-dbg

Leave the following dependencies unresolved:
bug-buddy recommends gnome-dbg
rhythmbox-dbg recommends gstreamer0.10-plugins-base-dbg
rhythmbox-dbg recommends gstreamer0.10-plugins-good-dbg
Score is -839

Accept this solution? [Y/n/q/?] q
Abandoning all efforts to resolve these dependencies.
Abort.

gstreamer0.10-pulseaudio only has

$ aptitude search gstreamer0.10-pulseaudio
i gstreamer0.10-pulseaudio - GStreamer plugin for PulseAudio
p gstreamer0.10-pulseaudio-dbgsym - debug symbols for package gstreamer0.10-pulseaudio

Just trying for gstreamer0.10 gets me this

$ aptitude search gstreamer0.10-db*
p gstreamer0.10-doc - GStreamer core documentation and manuals
p libgstreamer0.10-dev - GStreamer core development files
p libgstreamer0.10-dev-dbgsym - debug symbols for package libgstreamer0.10-dev

same for gstreamer0.10-alsa

$ aptitude search gstreamer0.10-alsa
i gstreamer0.10-alsa - GStreamer plugin for ALSA
p gstreamer0.10-alsa-dbgsym - debug symbols for package gstreamer0.10-alsa

The moot problem here seems to be that gnome has only a gnome-dbg

$ sudo aptitude install gstreamer0.10-plugins-base-dbgsym gstreamer0.10-plugins-good-dbgsym
[sudo] password for shirish:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
The following packages are BROKEN:
  gnome-dbg
The following NEW packages will be installed:
  gstreamer0.10-plugins-base-dbgsym gstreamer0.10-plugins-good-dbgsym
The following packages will be REMOVED:
  gstreamer0.10-plugins-base-dbg{a} gstreamer0.10-plugins-good-dbg{a}
0 packages upgraded, 2 newly installed, 2 to remove and 0 not upgraded.
Need to get 4066kB of archives. After unpacking 2335kB will be freed.
The following packages have unmet dependencies:
  gnome-dbg: Depends: gstreamer0.10-plugins-base-dbg but it is not installable
             Depends: gstreamer0.10-plugins-good-dbg b...

Read more...

Revision history for this message
Shirish Agarwal (shirishag75) wrote :

As far as your other thing the file plays but there is an error.

$ gst-launch playbin uri=file:///home/shirish/Music/02-light-my-fire.mp3
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstAudioSinkClock
WARNING: from element /GstPlayBin:playbin0: Internal GStreamer error: clock problem. Please file a bug at http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer.
Additional debug info:
gstbin.c(2240): gst_bin_do_latency_func (): /GstPlayBin:playbin0:
Failed to configure latency of 0:00:00.000000000

.

Revision history for this message
Shirish Agarwal (shirishag75) wrote :

The full output of the file.

$ gst-launch playbin uri=file:///home/shirish/Music/02-light-my-fire.mp3
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstAudioSinkClock
WARNING: from element /GstPlayBin:playbin0: Internal GStreamer error: clock problem. Please file a bug at http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer.
Additional debug info:
gstbin.c(2240): gst_bin_do_latency_func (): /GstPlayBin:playbin0:
Failed to configure latency of 0:00:00.000000000
Got EOS from element "playbin0".
Execution ended after 427683239552 ns.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
FREEING pipeline ...

Revision history for this message
Shirish Agarwal (shirishag75) wrote : Re: [Bug 317537] Re: E: shm.c: mmap() failed: Cannot allocate memory

Hi all,
 Could be a gstreamer issue as this keeps showing up.

pidgin:24778): GStreamer-CRITICAL **:
Trying to dispose element play, but it is not in the NULL state.
You need to explicitly set elements to the NULL state before
dropping the final reference, to allow them to clean up.

(pidgin:24778): GStreamer-CRITICAL **: gst_element_set_state:
assertion `GST_IS_ELEMENT (element)' failed

(pidgin:24778): GStreamer-CRITICAL **: gst_object_unref: assertion
`((GObject *) object)->ref_count > 0' failed

(pidgin:24778): GStreamer-CRITICAL **: gst_element_set_state:
assertion `GST_IS_ELEMENT (element)' failed

(pidgin:24778): GStreamer-CRITICAL **: gst_object_unref: assertion
`((GObject *) object)->ref_count > 0' failed

(pidgin:24778): GStreamer-CRITICAL **: gst_element_set_state:
assertion `GST_IS_ELEMENT (element)' failed

(pidgin:24778): GStreamer-CRITICAL **: gst_object_unref: assertion
`((GObject *) object)->ref_count > 0' failed

(pidgin:24778): GStreamer-CRITICAL **:
Trying to dispose element play, but it is not in the NULL state.
You need to explicitly set elements to the NULL state before
dropping the final reference, to allow them to clean up.
--
          Regards,
          Shirish Agarwal
  My quotes in this email licensed under CC 3.0
http://creativecommons.org/licenses/by-nc/3.0/
http://flossexperiences.wordpress.com
065C 6D79 A68C E7EA 52B3 8D70 950D 53FB 729A 8B17

Revision history for this message
Pedro Villavicencio (pedro) wrote :

re-assigning to gstreamer for now then, thanks.

Changed in rhythmbox:
status: Incomplete → New
Revision history for this message
Sergei (Nolar) Vasilyev (nolar) wrote :

Maybe related to bug with gstreamer-pulseaudio plugin, described here: https://bugzilla.redhat.com/show_bug.cgi?id=470000
It was fixed ~2009-01-15 and pushed to fedora updates ~2009-01-23.
Waiting it in Ubuntu updates (it is a security issue, i think, as it some kind of resource leaking).

Revision history for this message
Pedro Villavicencio (pedro) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. You reported this bug a while ago and there hasn't been any activity in it recently. We were wondering is this still an issue for you? May you please try the same with Karmic? Thanks in advance.

Changed in gstreamer0.10 (Ubuntu):
status: New → Incomplete
Revision history for this message
Pedro Villavicencio (pedro) wrote :

We are closing this bug report because it lacks the information we need to investigate the problem, as described in the previous comments. Please reopen it if you can give us the missing information, and don't hesitate to submit bug reports in the future. To reopen the bug report you can click on the current status, under the Status column, and change the Status back to New. Thanks again!.

Changed in gstreamer0.10 (Ubuntu):
status: Incomplete → Invalid
dino99 (9d9)
Changed in gstreamer0.10 (Ubuntu):
status: Invalid → New
Revision history for this message
dino99 (9d9) wrote :

here is the output seen in .xsession-errors after installing wine 1.1.32 on karmic32:

fixme:system:SetProcessDPIAware stub!
fixme:dwmapi:DwmIsCompositionEnabled 0x33cda4
fixme:iphlpapi:NotifyAddrChange (Handle 0x285e8d8, overlapped 0x285e8e0): stub
fixme:iphlpapi:GetAdaptersAddresses no support for IPv6 addresses
fixme:shell:DllCanUnloadNow stub
wine: configuration in '/home/oem/.wine' has been updated.
mmap() failed: Ne peut allouer de la mémoire
mmap() failed: Ne peut allouer de la mémoire
mmap() failed: Ne peut allouer de la mémoire
mmap() failed: Ne peut allouer de la mémoire
mmap() failed: Ne peut allouer de la mémoire
mmap() failed: Ne peut allouer de la mémoire
mmap() failed: Ne peut allouer de la mémoire
mmap() failed: Ne peut allouer de la mémoire
mmap() failed: Ne peut allouer de la mémoire
mmap() failed: Ne peut allouer de la mémoire
fixme:msg:pack_message msg 14 (WM_ERASEBKGND) not supported yet
fixme:msg:pack_message msg 14 (WM_ERASEBKGND) not supported yet

these " mmap failed to allocate memory" warnings have appeared after config wine thru its menu (wineconfig): i suppose that was produced when i've checked default sound setting then validate (alsa 1.0.20+dfsg-1ubuntu5)

Revision history for this message
dino99 (9d9) wrote : apport-collect data

Architecture: i386
CheckboxSubmission: 0e856621e764f27871668a8d860c3158
CheckboxSystem: edda5d4f616ca792bf437989cb597002
DistroRelease: Ubuntu 9.10
NonfreeKernelModules: nvidia
Package: wine (not installed)
ProcEnviron:
 SHELL=/bin/bash
 PATH=(custom, user)
 LANG=fr_FR.UTF-8
ProcVersionSignature: Ubuntu 2.6.31-14.48-generic
Uname: Linux 2.6.31-14-generic i686
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare
XsessionErrors:
 (gnome-settings-daemon:2701): GLib-CRITICAL **: g_propagate_error: assertion `src != NULL' failed
 (gnome-settings-daemon:2701): GLib-CRITICAL **: g_propagate_error: assertion `src != NULL' failed
 (polkit-gnome-authentication-agent-1:2757): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed
 (nautilus:2742): Eel-CRITICAL **: eel_preferences_get_boolean: assertion `preferences_is_initialized ()' failed
 (nautilus:4091): Eel-CRITICAL **: eel_preferences_get_boolean: assertion `preferences_is_initialized ()' failed

tags: added: apport-collected
Revision history for this message
dino99 (9d9) wrote :

apport-collect info is false : installed package is wine 1.1.32-0untu1~ppa2

i've reported this bug on winehq but they says that's not a WINE bug, so does alsa might be reported ?

Revision history for this message
Sebastien Bacher (seb128) wrote :

don't reopen closed bugs but open a new bug on wine rather for the new issue

Changed in gstreamer0.10 (Ubuntu):
status: New → Invalid
Revision history for this message
Sebastien Bacher (seb128) wrote :

it's also not clear the new comments and the bug described are the same issue

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.