Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 59D82EE49A3 for ; Wed, 23 Aug 2023 01:54:59 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id AF29C204; Wed, 23 Aug 2023 03:54:07 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz AF29C204 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1692755697; bh=VGpOiurFmJZZ5Kqg2lncgEjGNdYQaC/cxts9mNF5Tes=; h=From:To:In-Reply-To:References:Subject:Date:List-Id:List-Archive: List-Help:List-Owner:List-Post:List-Subscribe:List-Unsubscribe: From; b=By/O5AcPMcZmrL9jhrgUhG5TmdZz9CLb4mUMwuFUlhCoJjFGScZFzWnSIaaRmVKRp vKIp4RqtLr1IAypeP0TkzaJR7fokarPx1107PegciHi7Ue/caqwaI9ycAB/Y5aRi3J +DLWzR6o7hHSBKZ44IkOvzrIEK9Iuk2mxaKDd1g0= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 6C216F80158; Wed, 23 Aug 2023 03:54:07 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 2023CF804F3; Wed, 23 Aug 2023 03:54:07 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 33B16F8022B; Wed, 23 Aug 2023 03:54:04 +0200 (CEST) Received: from webhooks-bot.alsa-project.org (vmi242170.contaboserver.net [207.180.221.201]) by alsa1.perex.cz (Postfix) with ESMTP id AE0CDF800D1 for ; Wed, 23 Aug 2023 03:54:02 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz AE0CDF800D1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit From: GitHub issues - edited To: alsa-devel@alsa-project.org In-Reply-To: <1692755642676728487-webhooks-bot@alsa-project.org> References: <1692755642676728487-webhooks-bot@alsa-project.org> Subject: aplaymidi causes pa_stream_writeable_size() failed - connection terminated Message-Id: <20230823015404.33B16F8022B@alsa1.perex.cz> Date: Wed, 23 Aug 2023 03:54:04 +0200 (CEST) Message-ID-Hash: WBKJR5T3NNJ23PO5PMKRCN6RHT5XL2RM X-Message-ID-Hash: WBKJR5T3NNJ23PO5PMKRCN6RHT5XL2RM X-MailFrom: github@alsa-project.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: alsa-project/alsa-utils issue #232 was edited from symdeb: How to reproduce: 1. Plain Ubuntu 23.04 desktop but with kernel 6.5rc1... rc7 and ALSA UMP & sequencer enabled. 2. play a video with the "video" application. 3. Insert a MIDI 2.0 UMP capable device Note: A Focusrite 18i20 Gen 1 audio interface is used for audio playback and set in Pavucontrol as "pro Audio" 4. run aplaymidi -l or aplaymidi --version within about 30 seconds of plugging in the device. (if longer, the issue is not reproduceable) 6. Audio stops and soon after the error appears stopping the video. pavuctl screen goes blank and reinitializes itself. Unplug the device Wait for about 30 seconds (this is important, sooner the error will appear) Repeat steps 2 and 4 . The error won't occur. ![image](https://github.com/alsa-project/alsa-utils/assets/19564066/9bd6e993-be47-4715-8e6c-5f2a2242027c) This is not unique to aplaymidi, other ALSA clients (aseqdump) may also cause this error. in almost all other applications there is no error, such a web browsers as playing videos in Youtube, the audio playback just stops. some applications , like browsers, can recover by readadjusting the timeline and restarting playback. Some can only recover after closing the application i.e mpv media player. Issue URL : https://github.com/alsa-project/alsa-utils/issues/232 Repository URL: https://github.com/alsa-project/alsa-utils