Bug 11781

Summary: bitbake --observe-only may get KeyError
Product: [Build System, Metadata & Runtime] BitBake Reporter: Robert Yang <liezhi.yang>
Component: bitbakeAssignee: Richard Purdie <richard.purdie>
Status: ACCEPTED --- QA Contact:
Severity: normal    
Priority: Medium+ CC: pavel, poky.bs.watcher, poky.watcher, randy.macleod
Version: 2.4   
Target Milestone: 6.2   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)
Bug Depends on:    
Bug Blocks: 13023    

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.