Bug 2371

Summary: [Hob]Handle out of memory exception in HOB
Product: [Build System, Metadata & Runtime] Hob Reporter: Hongna Xu <hongnax.xu>
Component: hobAssignee: Dongxiao Xu <dongxiao.xu>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Low CC: dongxiao.xu, jessica.zhang, jiajun.xu, poky.bs.watcher, poky.watcher, scott.a.garman
Version: 1.2   
Target Milestone: 1.2.1   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---
Attachments:
Description Flags
imcompatible-host none

Description Hongna Xu 2012-04-26 05:34:50 UTC
Created attachment 496 [details]
imcompatible-host

When building image encounter insufficient memory, we got "can't allocate memory" error from hob, then close the popup it return to main menu, select MACHINE=qemuarm, after parsing i got "Nothing PROVIDERS syslinux" error as attachment, because we don't handle the status of hob when meet out of memory exception.
Poky/denzil: d20a24310eb43fed9a3f3e75752c9ad45a18cbe4
Comment 1 Shane Wang 2012-04-26 06:06:54 UTC
Hongna's machine doesn't have swap partition, and she is running ADT testing and Hob testing at the same time, so her machine runs out of memory.

When Hob is doing build and exception happens, only "command failed" event comes, "build failed" event doesn't come. One of the Hob flag self.building is not cleared. So, the internal state is not correct.