Bug 53036 - Assertion 'device->playback_channels || device->capture_channels' failed at modules/alsa/alsa-ucm.c:250, function ucm_get_device_property(). Aborting.
Summary: Assertion 'device->playback_channels || device->capture_channels' failed at m...
Status: RESOLVED FIXED
Alias: None
Product: PulseAudio
Classification: Unclassified
Component: alsa (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: pulseaudio-bugs
QA Contact: pulseaudio-bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-01 12:34 UTC by Tanu Kaskinen
Modified: 2013-06-24 09:30 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Tanu Kaskinen 2012-08-01 12:34:40 UTC
I got this:

Assertion 'device->playback_channels || device->capture_channels' failed at modules/alsa/alsa-ucm.c:250, function ucm_get_device_property(). Aborting.

I have done zero investigation, but I think it happened because the configuration doesn't specify the number of channels for either playback or capture. PulseAudio shouldn't crash on UCM configuration errors.
Comment 1 Tanu Kaskinen 2013-01-07 15:23:37 UTC
I have confirmed (already a while ago) that setting PlaybackChannels/CaptureChannels gets rid of the crash. So, all we now need is a patch that replaces the assertion with proper error handling.
Comment 2 arjun 2013-06-23 02:25:12 UTC
(In reply to comment #1)
> I have confirmed (already a while ago) that setting
> PlaybackChannels/CaptureChannels gets rid of the crash. So, all we now need
> is a patch that replaces the assertion with proper error handlinW: [pulseaudio] pid.c: Stale PID file, overwriting.
E: [pulseaudio] alsa-ucm.c: UCM capture device Mic fetch pcm failed
E: [pulseaudio] alsa-ucm.c: UCM playback device Headphone fetch pcm failed
E: [pulseaudio] alsa-ucm.c: Assertion 'device->playback_channels || device->capture_channels' failed at modules/alsa/alsa-ucm.c:252, function ucm_get_device_property(). Aborting.

And tried adding the PlaybackChannels/CaptureChannels to my ucm profile, but it didn't work.
Comment 3 Tanu Kaskinen 2013-06-24 09:29:00 UTC
I believe this bug is fixed in 4.0.
Comment 4 Tanu Kaskinen 2013-06-24 09:30:51 UTC
I suppose it would be useful to also mention how this was fixed: now if the channels aren't set in the configuration, PulseAudio will default to 2 channels to both directions.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.