Bug 2581 - [Hob2] 'HobNotebook' no attribute 'tabbar' when build failure
Summary: [Hob2] 'HobNotebook' no attribute 'tabbar' when build failure
Status: VERIFIED WORKSFORME
Alias: None
Product: Hob
Classification: Build System, Metadata & Runtime
Component: hob (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.3 M2
Assignee: anliming
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2012-06-12 04:36 UTC by Jiajun Xu
Modified: 2012-07-31 12:46 UTC (History)
10 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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