Bug 2581

Summary: [Hob2] 'HobNotebook' no attribute 'tabbar' when build failure
Product: [Build System, Metadata & Runtime] Hob Reporter: Jiajun Xu <jiajun.xu>
Component: hobAssignee: anliming <limingx.l.an>
Status: VERIFIED WORKSFORME QA Contact:
Severity: normal    
Priority: Medium CC: alexandru.c.georgescu, hongnax.xu, jessica.zhang, jiajun.xu, laurentiu.serban, ningx.ma, poky.bs.watcher, poky.watcher, shane.wang, yilongx.y.sun
Version: unspecified   
Target Milestone: 1.3 M2   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Jiajun Xu 2012-06-12 04:36:06 UTC
tree/branch: poky/master
commit: df8f55a919b3cc602ce1f1c51630c7edf6e36b55

When testing with latest master, I find if a build fails, Hob will reports 'HobNotebook' object has no attribute 'tabbar' and be no reponse.
Detailed error message as below. To reproduce the issue, you could modify a recipe and make it not pass build and build the recipe only in Hob.

######
[build@jiajun-desktop hob]$ hob
Traceback (most recent call last):
  File "/distro/m1-full/bitbake/lib/bb/ui/crumbs/builder.py", line 899, in handler_build_failed_cb
    self.build_failed()
  File "/distro/m1-full/bitbake/lib/bb/ui/crumbs/builder.py", line 882, in build_failed
    self.build_details_page.show_fail_page(fail_to_next_edit.split(' ')[0], fail_to_next_edit)
  File "/distro/m1-full/bitbake/lib/bb/ui/crumbs/builddetailspage.py", line 271, in show_fail_page
    self.build_fail_bar = self.add_build_fail_top_bar(action_names)
  File "/distro/m1-full/bitbake/lib/bb/ui/crumbs/builddetailspage.py", line 221, in add_build_fail_top_bar
    self.notebook.set_page("Issues")
  File "/distro/m1-full/bitbake/lib/bb/ui/crumbs/hobwidget.py", line 535, in set_page
    for child in self.tabbar.children:
AttributeError: 'HobNotebook' object has no attribute 'tabbar'
######
Comment 1 Shane Wang 2012-06-12 04:59:42 UTC
Liming's commit http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=c8c8d75f234121172117c42106f7840472a9ce66 should have already fixed that.

But M1 doesn't include that because RP checked in it after M1.
Comment 2 Laurentiu Serban 2012-07-31 12:46:19 UTC
Verified