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 88AF0C04FFE for ; Tue, 14 May 2024 19:44:05 +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 637796C0; Tue, 14 May 2024 21:43:52 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 637796C0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1715715842; bh=f9Bic9XEfzxy+q20FtX8eQhRUTyN2Y699IGiFjTrcB4=; 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=db+AkYAbSemR8UWmA8sXYpMAzq6f6pqEhIFQw9n9yTNXEH7ZtJYMfxgwR5PnNgkTq +yEtLQrbUdD5DVZ25rqR4BJlXJ+rUUBvZpmMxBo9YrgUL2X2TvCSDUd46DMudSQw0B OI3VblnqipeeXqkzUazHuRE4OJgX4/YeCjiS0w7A= Received: by alsa1.perex.cz (Postfix, from userid 50401) id A7BE5F8058C; Tue, 14 May 2024 21:43:30 +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 39066F805A0; Tue, 14 May 2024 21:43:30 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 6F7FCF80224; Tue, 14 May 2024 21:43:25 +0200 (CEST) Received: from webhooks-bot.alsa-project.org (vmi242170.contaboserver.net [207.180.221.201]) by alsa1.perex.cz (Postfix) with ESMTP id 58F2AF800E9 for ; Tue, 14 May 2024 21:43:21 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 58F2AF800E9 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit From: GitHub issues - opened To: alsa-devel@alsa-project.org In-Reply-To: <1715715801664961576-webhooks-bot@alsa-project.org> References: <1715715801664961576-webhooks-bot@alsa-project.org> Subject: HCtl event callback gives "Fatal Python error: drop_gil: drop_gil: GIL is not locked" Message-Id: <20240514194325.6F7FCF80224@alsa1.perex.cz> Date: Tue, 14 May 2024 21:43:25 +0200 (CEST) Message-ID-Hash: KRZG6UTTBDAXD5DFOAA4GHYYS56QYTV3 X-Message-ID-Hash: KRZG6UTTBDAXD5DFOAA4GHYYS56QYTV3 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.9 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-python issue #11 was opened from HEnquist: I'm running the [hctltest2.py](https://github.com/alsa-project/alsa-python/blob/master/test/hctltest2.py) test. Then change one of the controls, I tried the "Z Test Volume" that gets numid 4: `amixer -D hw:0 cset numid=4 5` This generates and event, which runs the callback function. That results in the test script crashing, with: ``` Fatal Python error: drop_gil: drop_gil: GIL is not locked Python runtime state: initialized Thread 0x00007cae1adbc740 (most recent call first): File "/home/henrik/repos/camilladsp-controller/hctltest2.py", line 25 in event_callback Current thread 0x00007cae1adbc740 (most recent call first): File "/home/henrik/repos/camilladsp-controller/hctltest2.py", line 63 in Extension modules: pyalsa.alsahcontrol (total: 1) Aborted (core dumped) ``` Tested on manjaro with python 3.11, and latest alsa-python. Issue URL : https://github.com/alsa-project/alsa-python/issues/11 Repository URL: https://github.com/alsa-project/alsa-python