Bug 73621 - sink-input.c: Assertion 'tchunk.length > 0' failed at pulsecore/sink-input.c
Summary: sink-input.c: Assertion 'tchunk.length > 0' failed at pulsecore/sink-input.c
Status: RESOLVED DUPLICATE of bug 68616
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: 2014-01-14 17:56 UTC by Thiago Santos
Modified: 2014-01-15 00:02 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
log of the issue (122.24 KB, text/plain)
2014-01-14 17:56 UTC, Thiago Santos
Details

Description Thiago Santos 2014-01-14 17:56:06 UTC
Created attachment 92072 [details]
log of the issue

This happened while debugging a gstreamer issue that led pulsesink to configure itself for a stream with a rate of 1. Pulseaudio would abort with:

E: [alsa-sink-ALC269VC Analog] sink-input.c: Assertion 'tchunk.length > 0' failed at pulsecore/sink-input.c:922, function pa_sink_input_peek(). Aborting.

The trace:
Thread 3 (Thread 0x7fffe7fff700 (LWP 1177)):
#0  0x00007ffff6448a1f in __GI_ppoll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>, sigmask=sigmask@entry=0x0)
    at ../sysdeps/unix/sysv/linux/ppoll.c:57
#1  0x00007ffff7b7c6b0 in ppoll (__ss=0x0, __timeout=<optimized out>, __nfds=<optimized out>, __fds=<optimized out>)
    at /usr/include/x86_64-linux-gnu/bits/poll2.h:77
#2  pa_rtpoll_run (p=0x69e4f0, wait_op=wait_op@entry=true) at pulsecore/rtpoll.c:314
#3  0x00007fffed00cf0d in thread_func (userdata=0x69a680) at modules/alsa/alsa-source.c:1527
#4  0x00007ffff7925d08 in internal_thread_func (userdata=0x6c8400) at pulsecore/thread-posix.c:83
#5  0x00007ffff6e28e0e in start_thread (arg=0x7fffe7fff700) at pthread_create.c:311
#6  0x00007ffff64540fd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 2 (Thread 0x7fffecfdf700 (LWP 1176)):
#0  0x00007ffff63a01d5 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#1  0x00007ffff63a3388 in __GI_abort () at abort.c:90
#2  0x00007ffff7b85989 in pa_sink_input_peek (i=i@entry=0x77a680, slength=<optimized out>, chunk=chunk@entry=0x7fffecfdc6e0, 
    volume=volume@entry=0x7fffecfdc6f8) at pulsecore/sink-input.c:853
#3  0x00007ffff7b8cefb in fill_mix_info (s=s@entry=0x6ab050, length=length@entry=0x7fffecfdc628, info=info@entry=0x7fffecfdc6e0, maxinfo=32)
    at pulsecore/sink.c:1015
#4  0x00007ffff7b8ef85 in pa_sink_render_into (s=s@entry=0x6ab050, target=target@entry=0x7fffecfded40) at pulsecore/sink.c:1254
#5  0x00007ffff7b8f4b7 in pa_sink_render_into_full (s=0x6ab050, target=target@entry=0x7fffecfdee10) at pulsecore/sink.c:1338
#6  0x00007fffed00754b in mmap_write (on_timeout=false, polled=false, sleep_usec=<synthetic pointer>, u=0x68a030) at modules/alsa/alsa-sink.c:644
#7  thread_func (userdata=0x68a030) at modules/alsa/alsa-sink.c:1734
#8  0x00007ffff7925d08 in internal_thread_func (userdata=0x6b34b0) at pulsecore/thread-posix.c:83
#9  0x00007ffff6e28e0e in start_thread (arg=0x7fffecfdf700) at pthread_create.c:311
#10 0x00007ffff64540fd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 1 (Thread 0x7ffff7fc1740 (LWP 1172)):
#0  pa_hashmap_iterate (h=h@entry=0x773d30, state=state@entry=0x7fffffffda88, key=key@entry=0x7fffffffda80) at pulsecore/hashmap.c:210
#1  0x00007ffff78f283b in pa_proplist_equal (a=0x773d30, b=b@entry=0x77a040) at pulse/proplist.c:698
#2  0x00007fffe61b78ff in subscription_cb (c=<optimized out>, t=<optimized out>, idx=<optimized out>, userdata=0x7734c0)
    at modules/dbus/iface-stream.c:786
#3  0x00007ffff7b6fb7f in defer_cb (m=<optimized out>, de=<optimized out>, userdata=0x61bc30) at pulsecore/core-subscribe.c:174
#4  0x00007ffff76b4e1a in dispatch_defer (m=0x61ba60) at pulse/mainloop.c:682
---Type <return> to continue, or q <return> to quit---
#5  pa_mainloop_dispatch (m=m@entry=0x61ba60) at pulse/mainloop.c:895
#6  0x00007ffff76b507a in pa_mainloop_iterate (m=m@entry=0x61ba60, block=block@entry=1, retval=retval@entry=0x7fffffffdd88) at pulse/mainloop.c:935
#7  0x00007ffff76b5120 in pa_mainloop_run (m=m@entry=0x61ba60, retval=retval@entry=0x7fffffffdd88) at pulse/mainloop.c:950
#8  0x0000000000406d4d in main (argc=<optimized out>, argv=<optimized out>) at daemon/main.c:1142

I'm also attaching the pulseaudio -vvvvv log here. If needed I can provide more details.

$pulseaudio --version:
returns 4.0
Comment 1 Tanu Kaskinen 2014-01-15 00:02:58 UTC
I believe this is a duplicate of bug 68616 (and fixed already).

*** This bug has been marked as a duplicate of bug 68616 ***


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.