Bug 11781 - bitbake --observe-only may get KeyError
Summary: bitbake --observe-only may get KeyError
Status: ACCEPTED
Alias: None
Product: BitBake
Classification: Build System, Metadata & Runtime
Component: bitbake (show other bugs)
Version: 2.4
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 6.2
Assignee: Richard Purdie
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks: 13023
  Show dependency tree
 
Reported: 2017-07-11 10:01 UTC by Robert Yang
Modified: 2026-10-01 15:48 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Yang 2017-07-11 10:01:12 UTC
Steps:
$ . ../poky/oe-init-build-env-memres .
$ bitbake world
In another terminal:
$ . ../poky/oe-init-build-env-memres .
Run the following command and Ctrl-C several times:
$ bitbake --observe-only
Traceback (most recent call last):
  File "/buildarea/lyang1/poky/bitbake/lib/bb/ui/knotty.py", line 441, in main
    helper.eventHandler(event)
  File "/buildarea/lyang1/poky/bitbake/lib/bb/ui/uihelper.py", line 42, in eventHandler
    del self.running_tasks[event.pid]
KeyError: 43646
Comment 1 Robert Yang 2017-09-05 01:12:37 UTC
The bitbake --observer doesn't work atm, we need go on working on it in 2.5
Comment 2 Pavel Zhukov 2022-09-01 10:00:07 UTC
Taking this bug to check if it's still valid as I took https://bugzilla.yoctoproject.org/show_bug.cgi?id=10731 already.