{"id":18340,"url":"https://patchwork.libcamera.org/api/1.1/covers/18340/?format=json","web_url":"https://patchwork.libcamera.org/cover/18340/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/1.1/projects/1/?format=json","name":"libcamera","link_name":"libcamera","list_id":"libcamera_core","list_email":"libcamera-devel@lists.libcamera.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20230305230603.3697024-1-dev@flowerpot.me>","date":"2023-03-05T23:06:02","name":"[libcamera-devel,0/1] fix: pipeline handlers: Stop exponential calls to `createPipelineHandlers`","submitter":{"id":154,"url":"https://patchwork.libcamera.org/api/1.1/people/154/?format=json","name":"Sophie Friedrich","email":"dev@flowerpot.me"},"mbox":"https://patchwork.libcamera.org/cover/18340/mbox/","series":[{"id":3789,"url":"https://patchwork.libcamera.org/api/1.1/series/3789/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=3789","date":"2023-03-05T23:06:02","name":"fix: pipeline handlers: Stop exponential calls to `createPipelineHandlers`","version":1,"mbox":"https://patchwork.libcamera.org/series/3789/mbox/"}],"comments":"https://patchwork.libcamera.org/api/covers/18340/comments/","headers":{"Return-Path":"<libcamera-devel-bounces@lists.libcamera.org>","X-Original-To":"parsemail@patchwork.libcamera.org","Delivered-To":"parsemail@patchwork.libcamera.org","Received":["from lancelot.ideasonboard.com (lancelot.ideasonboard.com\n\t[92.243.16.209])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id 9140DBE080\n\tfor <parsemail@patchwork.libcamera.org>;\n\tSun,  5 Mar 2023 23:06:52 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id BB5606267A;\n\tMon,  6 Mar 2023 00:06:51 +0100 (CET)","from mout-p-102.mailbox.org (mout-p-102.mailbox.org\n\t[80.241.56.152])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 59C6061EE1\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon,  6 Mar 2023 00:06:49 +0100 (CET)","from smtp1.mailbox.org (smtp1.mailbox.org\n\t[IPv6:2001:67c:2050:b231:465::1])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\tkey-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits)\n\tserver-digest SHA256) (No client certificate requested)\n\tby mout-p-102.mailbox.org (Postfix) with ESMTPS id 4PVHQZ5fPrz9sbg;\n\tMon,  6 Mar 2023 00:06:46 +0100 (CET)"],"DKIM-Signature":["v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org;\n\ts=mail; t=1678057611;\n\tbh=JMDj3Ki654fMLqp0+npK52clEojWmhoFdupV/ZiTV24=;\n\th=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post:\n\tList-Help:List-Subscribe:From:Reply-To:Cc:From;\n\tb=FPcDpuKJRzfsmZOhcgl5CBMVQ4Oj+py3u6b1CSWGunBj4XYvpsCGbXWS3hzUQhixo\n\tz+Ghpay7ZU/mQV7J5MD/Tewb16g8yVZzK0mNzU9XTuKTWnA1TW+HCVAUmfA24iUhaq\n\tf0fUVQ6i3ot6KtpSvQeyo3DEEsMlOpdkpVousk+dfiALaQ129yfk2OCodAvVoKgClS\n\toWX35M3WjkICxKZcGemOwI3/4QAv1wG55WQ2Rqa8Sl8c2XtAdOJHvsEEHclOYi40qC\n\tDuUfBdIt1uggNkIjQz3MljDQk8/eZzoWlsJ+cZyUXLmouRsjrMMGxi7FlT8mao+Kwb\n\tqEg3GcCx17l2w==","v=1; a=rsa-sha256; c=relaxed/relaxed; d=flowerpot.me;\n\ts=MBO0001; t=1678057606;\n\th=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n\tto:to:cc:cc:mime-version:mime-version:\n\tcontent-transfer-encoding:content-transfer-encoding;\n\tbh=USrzZlVppTqPEhfXNbZA9UAF91HNCs7XERjoI13gt3k=;\n\tb=P6zz+H0aSqa1eGAGXrBEpAwrnh2y/h4oH6ygKHaUVxVMicl3gkqAh0f16eJeU/jr5QUBHI\n\tl8O5u68S4cnW5PHr1TYDWcVA/kVHRxWJxsChsgde1m+cpvLOmhVtLLHenLI2K6aIQPp1AN\n\tyjntnsFyfClrDTis1/ORRa+2VTd2Jc0jlUp6sFjK9+6AChPocaL22DOb1kzSFnXFWEMh5W\n\t7dTmjo6TiiFAkblz5qvHR9bBXklPrY1JkUTPDy7+aBtkVFkrho/BhvVj08IGMlkPws1aDG\n\t4c86uQoai1/cGrjCXE5p2fOj58v8IkoQneeoiEusr+t9C88EK9pdqz4sKS1Cxg=="],"Authentication-Results":"lancelot.ideasonboard.com; dkim=pass (2048-bit key; \n\tunprotected) header.d=flowerpot.me\n\theader.i=@flowerpot.me header.b=\"P6zz+H0a\"; \n\tdkim-atps=neutral","To":"libcamera-devel@lists.libcamera.org","Date":"Mon,  6 Mar 2023 00:06:02 +0100","Message-Id":"<20230305230603.3697024-1-dev@flowerpot.me>","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","X-Rspamd-Queue-Id":"4PVHQZ5fPrz9sbg","Subject":"[libcamera-devel] [PATCH 0/1] fix: pipeline handlers: Stop\n\texponential calls to `createPipelineHandlers`","X-BeenThere":"libcamera-devel@lists.libcamera.org","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"<libcamera-devel.lists.libcamera.org>","List-Unsubscribe":"<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>","List-Archive":"<https://lists.libcamera.org/pipermail/libcamera-devel/>","List-Post":"<mailto:libcamera-devel@lists.libcamera.org>","List-Help":"<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>","List-Subscribe":"<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>","From":"Sophie Friedrich via libcamera-devel\n\t<libcamera-devel@lists.libcamera.org>","Reply-To":"Sophie Friedrich <dev@flowerpot.me>","Cc":"Sophie Friedrich <dev@flowerpot.me>","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"},"content":"While implementing the libusb enumeration through udev I noticed that\ncreatePipelineHandlers would be called exponentially often after each\ntime I cycle plugged a usb device. As it turns out there seems to be a\nbug in the camera manager which would result in `createPipelineHandlers`\nto be called exponentially often after each emitted event on\n`devicesAdded`.\n\nI was able to reliable call the above mentioned function over a\nthousand times after hotplugging my device only 10 times.\n\n\nSophie Friedrich (1):\n  fix: pipeline handlers: Stop exponential explosive calls to\n    createPipelineHandlers\n\n src/libcamera/camera_manager.cpp | 3 +--\n 1 file changed, 1 insertion(+), 2 deletions(-)"}