rafael2k / darkice

DarkIce is a live audio streamer. It records audio from an audio interface (e.g. sound card), encodes it and sends it to a streaming server. This is the official development repository of Darkice.
http://www.darkice.org
200 stars 47 forks source link

darkice segfaults when resampling 192kHz jackd for an opus stream #126

Open refutationalist opened 7 years ago

refutationalist commented 7 years ago

Hello. I've tried this with the Arch Linux AUR package (I'm the maintainer, if that helps) and with what's in git. I'm running jackd at 192k, which is necessary for the task I'm working on.

DarkIce is configured thusly: ./configure --with-aacplus --with-opus --with-samplerate

The configuration file I am using is:

[general] duration = 0 bufferSecs = 2

[input] device = jack sampleRate = 192000 bitsPerSample = 16 channel = 2 jackClientName = livestream

[icecast2-0] bitrateMode = cbr format = opus bitrate = 64 server = localhost port = 8000 sampleRate=48000 channel = 1 password = hackme mountPoint = opus name = OPUS 24k Live Stream description = Testing genre = Live Radio public = no

I've tried different bitrates and such, no avail. MP3 resampling works fine.

Here's how it usually segfaults:

Error in `darkice': realloc(): invalid pointer: 0x0000561e2beed640 ======= Backtrace: ========= /usr/lib/libc.so.6(+0x72bdd)[0x7fc5e21b4bdd] /usr/lib/libc.so.6(+0x792ec)[0x7fc5e21bb2ec] Segmentation fault (core dumped)

Let me know if you need any other debugging data. I've tried this on three systems, all Arch Linux.

refutationalist commented 7 years ago

It occurs to me that I've got it set at bitsPerSample at 16, when jackd is configured for 32. IIRC, that's unrelated,but I thought I would point it out.

zouppen commented 6 years ago

I can confirm the bug, also using 192k input sample rate, 16-bit depth and Opus. Similar configuration file to user refutationalist. DarkIce 1.3-0.1 on Ubuntu, amd64.