Assertion '(unsigned) data.input_frames_used == in_n_frames' failed at pulsecore/resampler.c:1284, function libsamplerate_resample(). Aborting.

Bug #371061 reported by David Nielsen
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
pulseaudio (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

I have started seeing pulseaudio abort on Koala with the following message:

E: resampler.c: Assertion '(unsigned) data.input_frames_used == in_n_frames' failed at pulsecore/resampler.c:1284, function libsamplerate_resample(). Aborting.
Aborted

The abort occures whenever I attempt to play a file

reproduce:
1) pulseaudio -k && pulseaudio -vvvv
2) play file

pulseaudio:
  Installeret: 1:0.9.14-0ubuntu20
  Kandidat: 1:0.9.14-0ubuntu20
  Versionstabel:
 *** 1:0.9.14-0ubuntu20 0
        500 http://archive.ubuntu.com karmic/main Packages
        100 /var/lib/dpkg/status

Revision history for this message
David Nielsen (davidnielsen-deactivatedaccount) wrote :
Revision history for this message
David McBride (david-mcbride) wrote :

I am also having this problem on a machine I upgraded from Jaunty to Karmic today (Mon May 18th); log from PulseAudio -vvvv attached.

The bug does not always trigger; when playing audio from Banshee, approximately one attempted track playback in 10 will succeed.

This is a regression from Jaunty.

This also impacts Flash playback in Firefox, and can lead to Flash crashing the browser.

Revision history for this message
Dave Gilbert (ubuntu-treblig) wrote :

I saw the same thing today.
pulseaudio 1:0.9.15-1ubuntu3

It seems to have restarted and be working after that though. This is was first thing played (with rhythmbox) after a resume. This is on intel audio with options snd-hda-intel position_fix=2

From user.log:

May 24 12:03:09 davros pulseaudio[6418]: resampler.c: Assertion '(unsigned) data.input_frames_used == in_n_frames' failed at pulsecore/resampler.c:1302, function libsamplerate_resample(). Aborting.
May 24 12:03:09 davros pulseaudio[9524]: pid.c: Stale PID file, overwriting.
May 24 12:03:11 davros pulseaudio[9524]: alsa-sink.c: ALSA woke us up to write new data to the device, but there was actually nothing to write!
May 24 12:03:11 davros pulseaudio[9524]: alsa-sink.c: Most likely this is a bug in the ALSA driver 'snd_hda_intel'. Please report this issue to the ALSA developers.
May 24 12:03:11 davros pulseaudio[9524]: alsa-sink.c: We were woken up with POLLOUT set -- however a subsequent snd_pcm_avail() returned 0 or another value < min_avail.

Changed in pulseaudio (Ubuntu):
status: New → Confirmed
Revision history for this message
David McBride (david-mcbride) wrote :

Commenting out the line :

resample-method = src-linear

... in /etc/pulse/daemon.conf, and restarting, results in crash-free pulseaudio.

Cheers,
David

Revision history for this message
Dave Gilbert (ubuntu-treblig) wrote :

I commented that out and it doesn't seem to have helped much,
but I also changed default-sample-rate to 48000 and that's made a big difference.

Dave

Revision history for this message
Rene Jablonski (son-riab) wrote :

Thank you Dave!

Commenting out default-sample-rate = 48000 helps a lot.

Rene

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Thank you for reporting this bug to Ubuntu.
Ubuntu 9.10 (karmic) reached end-of-life on April 30, 2011.

See this document for currently supported Ubuntu releases:
https://wiki.ubuntu.com/Releases

Please upgrade to the latest version and re-test.

Changed in pulseaudio (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for pulseaudio (Ubuntu) because there has been no activity for 60 days.]

Changed in pulseaudio (Ubuntu):
status: Incomplete → Expired
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.