From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6651481528729600000 X-Received: by 2002:a17:906:6847:: with SMTP id a7mr329303ejs.16.1549465884979; Wed, 06 Feb 2019 07:11:24 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a50:b656:: with SMTP id c22ls6228093ede.0.gmail; Wed, 06 Feb 2019 07:11:24 -0800 (PST) X-Google-Smtp-Source: AHgI3IbozefrkCcjBoDINcbP2Lv9Js7cbQLswQ5p5q8ySu0LRKWEdxNbtd147ZBmARU0OYXdna1e X-Received: by 2002:a05:6402:71a:: with SMTP id w26mr449456edx.11.1549465884553; Wed, 06 Feb 2019 07:11:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549465884; cv=none; d=google.com; s=arc-20160816; b=LnmVb6LC0eHpYvuzV8JoNUS4r0dUhblfd4x1nkeAWZFN/3JxPgdydot0PrpzOqkcIR 928X0OChnQj0s/lP5QyQnNJhBLfdi5m06sLQCmEEHHuAGJ4LQrloBfeO2W31xAEZ3q6M 1ovhrJqnTJv9/V37yV0MaEyN8Qw6rU6RR6IeQW/UBV5TZRCdKAirkZZ5+QJi77XNM+cc iZXTWI3rYMfUBdLQDjr+AiVKi74ekpQaHRSfGTDeKA0LHWESMhyXfRYrm7m/d7n/B21I v4ZfYo8hpNEa8x11a9yCjZHAmyOjZ/j8vHmnieweLixY5EXEm5eb+vBlQ8OjPH0S4QAo LesA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:references:cc:to:subject; bh=fNizcCO4/yNEUWahhBY0aLF8qcB/yqrBmMRNRAqn6TE=; b=Yd5zugjYv64FwUspn7eofAvP2AQZRI73Z+YKZXQkVskSfVnySWwucb4KW8RRssteJq ZQNTTtvO12Wy5uLFyN8tTOLTeSiXvo4Lp+gYT3W5whorTm3DmGNJBnhBGnNvqGETwT7z etm461ZSfn/msOyw/kloPQCqQGiVa7Fvihil3Kqn3zhXZ87Ued/DAHDOv2v4TSUJ85+P M2066NwceZkajgsAPj6TAJD2O8icaa0OO+7WXJdwMt1u+jMs2Tsb9bFFQW5DhLoF7b5i ZNI8/zPCg1ddj60oRGWlXVr79EGC5QJT9cltncgU1oCV5PJoXCMtJKevLYOAPMMdI29X S+7Q== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of claudius.heine.ext@siemens.com designates 192.35.17.28 as permitted sender) smtp.mailfrom=claudius.heine.ext@siemens.com Return-Path: Received: from goliath.siemens.de (goliath.siemens.de. [192.35.17.28]) by gmr-mx.google.com with ESMTPS id a3si824646eda.0.2019.02.06.07.11.24 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 Feb 2019 07:11:24 -0800 (PST) Received-SPF: pass (google.com: domain of claudius.heine.ext@siemens.com designates 192.35.17.28 as permitted sender) client-ip=192.35.17.28; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of claudius.heine.ext@siemens.com designates 192.35.17.28 as permitted sender) smtp.mailfrom=claudius.heine.ext@siemens.com Received: from mail1.sbs.de (mail1.sbs.de [192.129.41.35]) by goliath.siemens.de (8.15.2/8.15.2) with ESMTPS id x16FBNEb014721 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 6 Feb 2019 16:11:24 +0100 Received: from [139.25.69.181] (linux-ses-ext02.ppmd.siemens.net [139.25.69.181]) by mail1.sbs.de (8.15.2/8.15.2) with ESMTP id x16FBN48023367; Wed, 6 Feb 2019 16:11:23 +0100 Subject: Re: [BUG?] 'ResourceWarning: unclosed file <_io.BufferedReader name=xx>' while parsing recipes To: Jan Kiszka , "[ext] Henning Schild" Cc: isar-users References: <20190128104916.02c2ad28@md1za8fc.ad001.siemens.net> From: Claudius Heine Message-ID: <88fee4f0-6a6e-6b63-8a83-d6f7b29a2075@siemens.com> Date: Wed, 6 Feb 2019 16:11:23 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-TUID: j5nSAvHX+jA3 Hi Jan, On 06/02/2019 15.59, Jan Kiszka wrote: > On 28.01.19 12:27, [ext] Jan Kiszka wrote: >> On 28.01.19 10:49, [ext] Henning Schild wrote: >>> Am Mon, 28 Jan 2019 10:45:23 +0100 >>> schrieb "[ext] Claudius Heine" : >>> >>>> Hi, >>>> >>>> I get those warnings in my log: >>>> >>>>       Parsing recipes...WARNING: >>>> /builds/ebsy/debian/isar/meta-isar/recipes-core/images/isar-image-base.bb: >>>> >>>> :15: ResourceWarning: unclosed file <_io.BufferedReader >>>> name=32> >>>> >>>>       WARNING: >>>> /builds/ebsy/debian/isar/meta-isar/recipes-core/images/isar-image-debug.bb: >>>> >>>> :15: ResourceWarning: unclosed file <_io.BufferedReader >>>> name=30> >>> >>> I think we have all seen those ... >> >> I'm getting even more warnings these days, right after finishing the >> build: >> >> Exception ignored when trying to write to the signal wakeup fd: >> BlockingIOError: [Errno 11] Resource temporarily unavailable >> >>> >>>> They don't seem to have any effect, but are annoying. Does anyone >>>> know what those mean and how to fix them? I guess they start >>>> appearing on a bitbake update. Should they be investigated? >>> >>> and made the same observations, asked ourselfs the same questions. >>> I also think it came with the bitbake update and i think it should be >>> investigated and resolved. >>> >> >> Yes, agreed. Maybe the first try should be updating bitbake and check >> if the issue persists. Or check if its git history suggests that >> something was changed in this direction. > > Just browsed some bitbake commits for other reasons: > > http://git.openembedded.org/bitbake/commit/?id=afee3f594e1510051a0b18e430e92549caf72fa2 > > > Looks like an update will do it. I am not sure. They fix an unclosed socket, but our error is an unclosed file. There exception occures with '.../lib/bb/main.py:481' ours '...images/isar-image-debug.bb'. I guess that it is a similar issue this patch fixes, but IMO that one doesn't look like it fixes our problem. Anyway thanks for looking that up! Claudius -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-54 Fax: (+49)-8142-66989-80 Email: ch@denx.de