From owner-freebsd-multimedia@freebsd.org Sun Jul 30 10:58:32 2017 Return-Path: Delivered-To: freebsd-multimedia@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 08AC1DB461F for ; Sun, 30 Jul 2017 10:58:32 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [IPv6:2a01:4f8:c17:6c4b::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C605F6D11B for ; Sun, 30 Jul 2017 10:58:31 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2016.home.selasky.org (unknown [62.141.129.119]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 6A337260191; Sun, 30 Jul 2017 12:58:28 +0200 (CEST) Subject: Re: snd_uaudio monitor recording To: Marcel Bonnet Cc: FreeBSD multimedia References: From: Hans Petter Selasky Message-ID: Date: Sun, 30 Jul 2017 12:56:19 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Jul 2017 10:58:32 -0000 On 07/28/17 15:55, Marcel Bonnet wrote: > 2.1 But, when I started YouTube (chromium browser), virtual_oss > stopped with a message: Floating point exception . After crash, I had > no sound anymore. I had to re run virtual_oss to get system sound > again. Hi, Can you open the core dump with GDB and get the backtrace? Maybe you need to compile virtual_oss with DEBUG from the ports tree. I believe this is some kind of low hanging fruit - division by zero. --HPS From owner-freebsd-multimedia@freebsd.org Sun Jul 30 20:46:55 2017 Return-Path: Delivered-To: freebsd-multimedia@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7A041DC1DE4 for ; Sun, 30 Jul 2017 20:46:55 +0000 (UTC) (envelope-from marcelbonnet@gmail.com) Received: from mail-oi0-x22c.google.com (mail-oi0-x22c.google.com [IPv6:2607:f8b0:4003:c06::22c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3C2DE80273 for ; Sun, 30 Jul 2017 20:46:55 +0000 (UTC) (envelope-from marcelbonnet@gmail.com) Received: by mail-oi0-x22c.google.com with SMTP id g131so168709543oic.3 for ; Sun, 30 Jul 2017 13:46:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=CpPlM0aOC5Ev/U/Dgpe4UHw4z8WuKRqxQzUhSR5+FyE=; b=Jef2pPrTQevqdBBO55cFbP8sZfn3Zf+eY3rJQbuP1x8tb7UbZLCViNXBgYC/tXZ7bA VJBapzdzPU/NHLQDZPpg+9CeM7lRumZ2I/USvRASn75Zzp+/YMTo9q4v7XyBeMTAPl0e 1vOOfhpnGG8j7+Fd+lA5fQASoWyaExvnzk8KlDY30uRsBegtx+8bd67hjswU9t+PWr/c RyslkmnDPOi8altDV4VNjHn5WChM8IEW6HfRg87VNf9s0rGXLOgrUGQa5AFTXn5juw0d neymMnzWUFQ1XkFuSIM7t57/dBQDskGw9wsdZKy0lqnI3fVlI19hdGe0QHj0jA2Tmvrh DBjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=CpPlM0aOC5Ev/U/Dgpe4UHw4z8WuKRqxQzUhSR5+FyE=; b=gRPege6IqEgMiYJyFcLySYeySnQsu2K4Dm4YgYMRIG0g6IeE0vd01/SQwOEh+rOWzU xH79XOaaANb+of3HXrk584vniRFGn6fPCmAXOoRA/cab/PCUCqZIG8l0pm8M076FRdCv UODH9AgLP/asNeXiWiPvlqz5JoQy9RLypTFpWWSV0t2hL7QcKki0z2vAy62sajOerOxc bDnIifjflt/oOaWRVdndJoHOu6caqbfyHSTXY8jXRPTXxAtZGFiAf8F7ej/2loefi4aV oVPhgRqzZvm4L0H1h0GmrHB13PbBZB3L/3AiKVhaGvmmhqN8nFfxOQBNeBTbm4MAgfWx vaVg== X-Gm-Message-State: AIVw1139F8UNcPe71boFbBKscxm+q5k9Znzbsjf3182qoobKY6aKE37i beEgHQaEqlvlsDmO3/VyZRdSn1vgPg68 X-Received: by 10.202.179.85 with SMTP id c82mr3175272oif.5.1501447614303; Sun, 30 Jul 2017 13:46:54 -0700 (PDT) MIME-Version: 1.0 Received: by 10.74.134.3 with HTTP; Sun, 30 Jul 2017 13:46:53 -0700 (PDT) In-Reply-To: References: From: Marcel Bonnet Date: Sun, 30 Jul 2017 17:46:53 -0300 Message-ID: Subject: Re: snd_uaudio monitor recording To: Hans Petter Selasky Cc: FreeBSD multimedia Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Jul 2017 20:46:55 -0000 On 30 July 2017 at 07:56, Hans Petter Selasky wrote: > On 07/28/17 15:55, Marcel Bonnet wrote: >> >> 2.1 But, when I started YouTube (chromium browser), virtual_oss >> stopped with a message: Floating point exception . After crash, I had >> no sound anymore. I had to re run virtual_oss to get system sound >> again. > > > Hi, > > Can you open the core dump with GDB and get the backtrace? > > Maybe you need to compile virtual_oss with DEBUG from the ports tree. > > I believe this is some kind of low hanging fruit - division by zero. > > --HPS Hello! Is this the repo? https://github.com/hselasky/virtual_oss Below, is the backtrace. Thank you. [@machine tmp #] gdb /usr/local/sbin/virtual_oss virtual_oss.core GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "amd64-marcel-freebsd"... Core was generated by `virtual_oss'. Program terminated with signal 8, Arithmetic exception. Reading symbols from /usr/lib/libbluetooth.so.4...done. Loaded symbols for /usr/lib/libbluetooth.so.4 Reading symbols from /usr/lib/libsdp.so.4...done. Loaded symbols for /usr/lib/libsdp.so.4 Reading symbols from /usr/lib/libcuse.so.1...done. Loaded symbols for /usr/lib/libcuse.so.1 Reading symbols from /lib/libthr.so.3...done. Loaded symbols for /lib/libthr.so.3 Reading symbols from /lib/libm.so.5...done. Loaded symbols for /lib/libm.so.5 Reading symbols from /usr/local/lib/libsamplerate.so.0...done. Loaded symbols for /usr/local/lib/libsamplerate.so.0 Reading symbols from /lib/libc.so.7...done. Loaded symbols for /lib/libc.so.7 Reading symbols from /libexec/ld-elf.so.1...done. Loaded symbols for /libexec/ld-elf.so.1 #0 0x000000000040969f in vclient_ioctl_oss (pdev=0x801c27000, fflags=2, cmd=1074548754, peer_data=0x10000) at virtual_main.c:1324 1324 (voss_dsp_samples / div) * pvc->channels * vclient_sample_bytes(pvc); [New Thread 801c19c00 (LWP 100783/)] [New Thread 801c19700 (LWP 100782/)] [New Thread 801c19200 (LWP 100781/)] [New Thread 801c18d00 (LWP 100780/)] [New Thread 801c18800 (LWP 100779/)] [New Thread 801c18300 (LWP 100778/)] [New Thread 801c17e00 (LWP 100777/)] [New Thread 801c17900 (LWP 100776/)] [New Thread 801c17400 (LWP 100775/)] [New Thread 801c16f00 (LWP 100774/)] [New Thread 801c16a00 (LWP 100773/)] [New Thread 801c16500 (LWP 100772/)] [New Thread 801c16000 (LWP 100579/)] (gdb) -- Marcel Bonnet From owner-freebsd-multimedia@freebsd.org Sun Jul 30 21:01:16 2017 Return-Path: Delivered-To: freebsd-multimedia@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5AA02DC229C for ; Sun, 30 Jul 2017 21:01:16 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 435A780B87 for ; Sun, 30 Jul 2017 21:01:16 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: by mailman.ysv.freebsd.org (Postfix) id 4252FDC229A; Sun, 30 Jul 2017 21:01:16 +0000 (UTC) Delivered-To: multimedia@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3FD5ADC2299 for ; Sun, 30 Jul 2017 21:01:16 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1728780B82 for ; Sun, 30 Jul 2017 21:01:16 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v6UL01s7038712 for ; Sun, 30 Jul 2017 21:01:15 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Message-Id: <201707302101.v6UL01s7038712@kenobi.freebsd.org> From: bugzilla-noreply@FreeBSD.org To: multimedia@FreeBSD.org Subject: Problem reports for multimedia@FreeBSD.org that need special attention Date: Sun, 30 Jul 2017 21:01:15 +0000 X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Jul 2017 21:01:16 -0000 To view an individual PR, use: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=(Bug Id). The following is a listing of current problems submitted by FreeBSD users, which need special attention. These represent problem reports covering all versions including experimental development code and obsolete releases. Status | Bug Id | Description ------------+-----------+--------------------------------------------------- Open | 220785 | audio/jack: Add and enable COOKEDMODE option, Use 1 problems total for which you should take action. From owner-freebsd-multimedia@freebsd.org Sun Jul 30 22:10:48 2017 Return-Path: Delivered-To: freebsd-multimedia@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EB685DC36A3 for ; Sun, 30 Jul 2017 22:10:48 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [IPv6:2a01:4f8:c17:6c4b::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A03CE828B4 for ; Sun, 30 Jul 2017 22:10:48 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2016.home.selasky.org (unknown [62.141.129.119]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 709862607A0; Mon, 31 Jul 2017 00:10:45 +0200 (CEST) Subject: Re: snd_uaudio monitor recording To: Marcel Bonnet Cc: FreeBSD multimedia References: From: Hans Petter Selasky Message-ID: <579d149d-7f44-3290-0adc-fbed8e48316e@selasky.org> Date: Mon, 31 Jul 2017 00:08:36 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/mixed; boundary="------------572D96BB2DE5A55BDCD567D7" Content-Language: en-US X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Jul 2017 22:10:49 -0000 This is a multi-part message in MIME format. --------------572D96BB2DE5A55BDCD567D7 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit On 07/30/17 22:46, Marcel Bonnet wrote: > On 30 July 2017 at 07:56, Hans Petter Selasky wrote: >> On 07/28/17 15:55, Marcel Bonnet wrote: >>> >>> 2.1 But, when I started YouTube (chromium browser), virtual_oss >>> stopped with a message: Floating point exception . After crash, I had >>> no sound anymore. I had to re run virtual_oss to get system sound >>> again. >> >> >> Hi, >> >> Can you open the core dump with GDB and get the backtrace? >> >> Maybe you need to compile virtual_oss with DEBUG from the ports tree. >> >> I believe this is some kind of low hanging fruit - division by zero. >> >> --HPS > > Hello! > > Is this the repo? https://github.com/hselasky/virtual_oss > > Below, is the backtrace. > Hi, Can you try the attached patch? --HPS --------------572D96BB2DE5A55BDCD567D7 Content-Type: text/x-patch; name="voss.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="voss.diff" Index: virtual_main.c =================================================================== --- virtual_main.c (revision 3948) +++ virtual_main.c (working copy) @@ -1029,6 +1029,33 @@ return (vclient_setup_buffers(pvc, 0, 0, channels, 0, 0)); } +/* greatest common divisor, Euclid equation */ +static uint64_t +vclient_gcd_64(uint64_t a, uint64_t b) +{ + uint64_t an; + uint64_t bn; + + while (b != 0) { + an = b; + bn = a % b; + a = an; + b = bn; + } + return (a); +} + +static uint64_t +vclient_scale(uint64_t value, uint64_t mul, uint64_t div) +{ + uint64_t gcd = vclient_gcd_64(mul, div); + + mul /= gcd; + div /= gcd; + + return ((value * mul) / div); +} + static int vclient_ioctl_oss(struct cuse_dev *pdev, int fflags, unsigned long cmd, void *peer_data) @@ -1050,8 +1077,7 @@ vclient_t *pvc; vblock_t *pvb; - uint64_t rem; - uint64_t div; + uint64_t bytes; int len; int error; @@ -1300,31 +1326,22 @@ case SNDCTL_DSP_CURRENT_IPTR: case SNDCTL_DSP_CURRENT_OPTR: memset(&data.oss_count, 0, sizeof(data.oss_count)); - /* compute sample ratio */ - rem = voss_dsp_sample_rate % pvc->sample_rate; - div = voss_dsp_sample_rate / pvc->sample_rate; - /* compute division error */ - rem *= (voss_dsp_blocks - pvc->start_block); - rem /= pvc->sample_rate; - /* compute output samples */ - data.oss_count.samples = (voss_dsp_blocks - pvc->start_block - rem) * - (voss_dsp_samples / div) * pvc->channels; + /* compute input/output samples */ + data.oss_count.samples = + vclient_scale((voss_dsp_blocks - pvc->start_block) * voss_dsp_samples, + pvc->sample_rate, voss_dsp_sample_rate) * pvc->channels; break; case SNDCTL_DSP_GETOPTR: case SNDCTL_DSP_GETIPTR: memset(&data.oss_count_info, 0, sizeof(data.oss_count_info)); - /* compute sample ratio */ - rem = voss_dsp_sample_rate % pvc->sample_rate; - div = voss_dsp_sample_rate / pvc->sample_rate; - /* compute division error */ - rem *= (voss_dsp_blocks - pvc->start_block); - rem /= pvc->sample_rate; - /* compute output samples */ - rem = (voss_dsp_blocks - pvc->start_block - rem) * - (voss_dsp_samples / div) * pvc->channels * vclient_sample_bytes(pvc); - data.oss_count_info.bytes = rem; - data.oss_count_info.blocks = rem / pvc->buffer_size; - data.oss_count_info.ptr = rem; + /* compute input/output bytes */ + bytes = + vclient_scale((voss_dsp_blocks - pvc->start_block) * voss_dsp_samples, + pvc->sample_rate, voss_dsp_sample_rate) * pvc->channels * + vclient_sample_bytes(pvc); + data.oss_count_info.bytes = bytes; + data.oss_count_info.blocks = bytes / pvc->buffer_size; + data.oss_count_info.ptr = bytes; break; case SNDCTL_DSP_HALT_OUTPUT: pvc->tx_enabled = 0; --------------572D96BB2DE5A55BDCD567D7-- From owner-freebsd-multimedia@freebsd.org Mon Jul 31 05:24:38 2017 Return-Path: Delivered-To: freebsd-multimedia@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C6154DCA3DD for ; Mon, 31 Jul 2017 05:24:38 +0000 (UTC) (envelope-from marcelbonnet@gmail.com) Received: from mail-oi0-x22d.google.com (mail-oi0-x22d.google.com [IPv6:2607:f8b0:4003:c06::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 882B8685B9 for ; Mon, 31 Jul 2017 05:24:38 +0000 (UTC) (envelope-from marcelbonnet@gmail.com) Received: by mail-oi0-x22d.google.com with SMTP id g131so174118158oic.3 for ; Sun, 30 Jul 2017 22:24:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=R/CTaDjkEgHcvaVqIg4n2IHLcwl7j/SlxVf/vessYc4=; b=Fq9B6ltGkjAmiuEcjuFXVBZltrZ4l6looJiJBmbv7iLzDvkZZ8xS3vwzW5hJ6b7XSZ M5Skk40jnwf5wZiYD3GF9JGv3bWE95CRtKOZMKFjjsZaNqPV7LbHRh0lX4A45jvT2u9s Q/Ff5vUiuZ3OVFkDyqDioParbjOPacnhWAPWjus9MnfSkwbWtLVrR9+WjP1zmEW+Vak7 hNbNkDaJcwzVppKK6PdyBUQH+i6NEZ1+4WfPBqZCtLEPB4GCKEf6cl2wWdRiOGRw6aUS 3MffcUj79WB0UtZ1qgsfplM1PsZdNrIYDcDkph4a01da5qCoX8eYbLSz/jWwowqKwD2t +D5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=R/CTaDjkEgHcvaVqIg4n2IHLcwl7j/SlxVf/vessYc4=; b=CPk6WwtrK6FanxLMW05dOZNEoRVmJtGmygxlUZtYSE6mxbgF3Z6O2H6OcbL+9IczL/ gdwkez0GMPNmOVCrslR9TEpXdQ0BKHinFidYNbGQe688jPdvMw8TCtaCRPSiskK/rkTD QuTJE2BnUymoQZUv6kQ4Um8ryI6v5SpgLhKH9YtRTXZx9U86DTTe8SfxGP2Y1FLchWEs 9yjYZt5vCNLBbSDRtqlcCryHFvUs2Twsw2K6JXnRxPkiJs/PAvqUXutMqdCwRNuEnKpN MrxjUGlNYVqoS6JSVNUDxiGmnG/IJJyk6XRvcoouVP32efeMEKSyrpx0wmx0cdwLyNvV eAuA== X-Gm-Message-State: AIVw113EPeogYv/3hhfP+5Y2gfsZNnhXV0TFfdh2nbLivpUE+/YoWL6I ruS5LJkiMKCL+YWfp1O3CjknRQqaOA== X-Received: by 10.202.87.2 with SMTP id l2mr12435134oib.277.1501478677730; Sun, 30 Jul 2017 22:24:37 -0700 (PDT) MIME-Version: 1.0 Received: by 10.74.134.3 with HTTP; Sun, 30 Jul 2017 22:24:36 -0700 (PDT) In-Reply-To: <579d149d-7f44-3290-0adc-fbed8e48316e@selasky.org> References: <579d149d-7f44-3290-0adc-fbed8e48316e@selasky.org> From: Marcel Bonnet Date: Mon, 31 Jul 2017 02:24:36 -0300 Message-ID: Subject: Re: snd_uaudio monitor recording To: Hans Petter Selasky Cc: FreeBSD multimedia Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Jul 2017 05:24:38 -0000 On 30 July 2017 at 19:08, Hans Petter Selasky wrote: > On 07/30/17 22:46, Marcel Bonnet wrote: >> >> On 30 July 2017 at 07:56, Hans Petter Selasky wrote: >>> >>> On 07/28/17 15:55, Marcel Bonnet wrote: >>>> >>>> >>>> 2.1 But, when I started YouTube (chromium browser), virtual_oss >>>> stopped with a message: Floating point exception . After crash, I had >>>> no sound anymore. I had to re run virtual_oss to get system sound >>>> again. >>> >>> >>> >>> Hi, >>> >>> Can you open the core dump with GDB and get the backtrace? >>> >>> Maybe you need to compile virtual_oss with DEBUG from the ports tree. >>> >>> I believe this is some kind of low hanging fruit - division by zero. >>> >>> --HPS >> >> >> Hello! >> >> Is this the repo? https://github.com/hselasky/virtual_oss >> >> Below, is the backtrace. >> > > Hi, > > Can you try the attached patch? > > --HPS > The patch was rejected: I tried from the ports tree (with svn up first; and either from your distfile's MASTER_SITE). But I applied it manually to virtual_main.c (I cloned the github repo) and it works! - chrome do not crashes virtual_oss anymore - now I can record the played back material from Chrome - but still not recording Firefox sound - at least no crashes with FF Thank you so much! -- Marcel Bonnet From owner-freebsd-multimedia@freebsd.org Mon Jul 31 06:34:16 2017 Return-Path: Delivered-To: freebsd-multimedia@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 964B4DCB0D2 for ; Mon, 31 Jul 2017 06:34:16 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [IPv6:2a01:4f8:c17:6c4b::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5E84369F35 for ; Mon, 31 Jul 2017 06:34:16 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2016.home.selasky.org (unknown [62.141.129.119]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 327502600CA; Mon, 31 Jul 2017 08:34:14 +0200 (CEST) Subject: Re: snd_uaudio monitor recording To: Marcel Bonnet Cc: FreeBSD multimedia References: <579d149d-7f44-3290-0adc-fbed8e48316e@selasky.org> From: Hans Petter Selasky Message-ID: <9232e78b-5bed-a52d-326b-e3d1c3847cd0@selasky.org> Date: Mon, 31 Jul 2017 08:32:04 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Jul 2017 06:34:16 -0000 On 07/31/17 07:24, Marcel Bonnet wrote: > - but still not recording Firefox sound - at least no crashes with FF Hi, I think this is because Firefox uses pulseaudio. If you uninstall pulseaudio it will start using OSS directly. --HPS From owner-freebsd-multimedia@freebsd.org Fri Aug 4 22:29:07 2017 Return-Path: Delivered-To: freebsd-multimedia@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AB631DCC56B for ; Fri, 4 Aug 2017 22:29:07 +0000 (UTC) (envelope-from andyf@andyit.com.au) Received: from alpine.spintel.net.au (alpine.spintel.net.au [IPv6:2407:e400:1::b]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 55E3F7E79E for ; Fri, 4 Aug 2017 22:29:07 +0000 (UTC) (envelope-from andyf@andyit.com.au) Received: from drunkfish.andyit.com.au (unknown [210.1.210.40]) by alpine.spintel.net.au (Postfix) with ESMTPS id 4E0DF4C2D4E for ; Sat, 5 Aug 2017 08:28:55 +1000 (AEST) Received: from snuggles.andyit.com.au (snuggles.andyit.com.au [172.22.2.2]) by drunkfish.andyit.com.au (8.15.2/8.15.2) with ESMTP id v74MSsKv052514 for ; Sat, 5 Aug 2017 08:28:54 +1000 (AEST) (envelope-from andyf@andyit.com.au) Message-ID: <5984F526.8090800@andyit.com.au> Date: Sat, 05 Aug 2017 08:28:54 +1000 From: Andy Farkas User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:13.0) Gecko/20120614 Thunderbird/13.0 MIME-Version: 1.0 To: freebsd-multimedia@freebsd.org Subject: avidemux-2.6.11_5 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Aug 2017 22:29:07 -0000 I'm trying to build avidemux from ports but it doesn't work: root@myhost:/usr/ports/multimedia/avidemux # make all ===> avidemux-2.6.11_5 has known vulnerabilities: avidemux-2.6.11_5 is vulnerable: ffmpeg -- multiple vulnerabilities CVE: CVE-2015-8663 CVE: CVE-2015-8662 WWW: https://vuxml.FreeBSD.org/freebsd/4bae544d-06a3-4352-938c-b3bcbca89298.html ... Really? Vulnerabilities from 2015? How does the official package builder build this package? Yes, I see the message that says use 'make DISABLE_VULNERABILITIES=yes' Also it seems the latest version is 2.6.20 -andyf