Error : mmap() failed: Cannot allocate memory on Raspberry Pi
Jack
jack at rybn.org
Tue Oct 15 12:29:06 UTC 2019
Hello,
I am using pulsesink element in my python script and using uridecodebin
to read a file in loop.
After a certain number of loop, I get this error :
mmap() failed: Cannot allocate memory
Failed to create permanent mapping for memfd region with ID = 1149243098
0:04:25.967683273 22476 0x72c0d020 ERROR pulse
pulsedeviceprovider.c:450:gst_pulse_device_provider_start:<pulsedeviceprovider0>
Failed to connect: Protocol error
mmap() failed: Cannot allocate memory
Failed to create permanent mapping for memfd region with ID = 661737068
(python3:22476): GStreamer-CRITICAL **: 13:19:59.954:
gst_element_message_full_with_details: assertion 'GST_IS_ELEMENT
(element)' failed
(python3:22476): GStreamer-CRITICAL **: 13:20:00.009: Trying to stop a
GstDeviceProvider v4l2deviceprovider0 which is already stopped
(python3:22476): GStreamer-CRITICAL **: 13:20:00.010: Trying to stop a
GstDeviceProvider pulsedeviceprovider0 which is already stopped
I am on Raspberry Pi with :
armv7l
Distributor ID: Raspbian
Description: Raspbian GNU/Linux 10 (buster)
Release: 10
Codename: buster
GStreamer 1.14.4
I see i can modify /etc/pulse/client.conf to set shm-size-bytes but it
doesn't solve the problem (even if it appears later).
How can i solve this issue on armv7l (Raspberry Pi).
Best!
++
Jack
More information about the gstreamer-devel
mailing list