Skip to contentSkip to conversation

: Assertion `file->wbuf_used_bytes < file->wbuf_size_bytes' failed

ALSA - lib 0002172 [email protected] 1 participant 1 message May 29, 2006

lore
Share & tools
lore
#0 lore raw

The following issue has been SUBMITTED.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=2172>
======================================================================
Reported By: sgoodall
Assigned To:
======================================================================

Project:                    ALSA - lib
Issue ID:                   2172
Category:                   0_general
Reproducibility:            always
Severity:                   crash
Priority:                   normal
Status:                     new
======================================================================
Date Submitted:             05-29-2006 20:18 CEST
Last Modified:              05-29-2006 20:18 CEST

======================================================================
Summary: Assertion `file->wbuf_used_bytes <
file->wbuf_size_bytes' failed
Description:
I have my .asoundrc setup to forward PCM data to a fifo file. When the fifo fills up, it triggers the following assert causing whatever program is writing the PCM data to abort.

pcm_file.c:112: snd_pcm_file_add_frames: Assertion `file->wbuf_used_bytes <
file->wbuf_size_bytes' failed.

.asoundrc config

pcm.!default {
type plug
slave.pcm "stdout"
}

pcm.stdout {
type file
file "/tmp/airportfifo"

  slave {
    pcm "hw:0,0"

}
}

where /tmp/airportfifo has been created with "mknod /tmp/airportfifo p"

It seems to wait to write data if the fifo is full initially, but if it is not full and then fills up, this triggers the assert.
======================================================================

Issue History
Date Modified Username Field Change
======================================================================
05-29-06 20:18 sgoodall New Issue
05-29-06 20:18 sgoodall File Added: bt.txt
======================================================================