Bug 2596 - [Hob2] traceback when DISPLAY is not set
Summary: [Hob2] traceback when DISPLAY is not set
Status: VERIFIED FIXED
Alias: None
Product: Hob
Classification: Build System, Metadata & Runtime
Component: hob (show other bugs)
Version: 1.2
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.3 M4
Assignee: Cristiana Voicu
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2012-06-13 11:00 UTC by Paul Eggleton
Modified: 2012-09-10 09:32 UTC (History)
9 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 Paul Eggleton 2012-06-13 11:00:42 UTC
If you don't have DISPLAY set when running hob then you get a traceback which is rather difficult to understand:

Traceback (most recent call last):
  File "/home/paul/poky/poky/bitbake/bin//bitbake", line 259, in <module>
    ret = main()
  File "/home/paul/poky/poky/bitbake/bin//bitbake", line 248, in main
    return server.launchUI(ui_main, server_connection.connection, server_connection.events)
  File "/home/paul/poky/poky/bitbake/lib/bb/server/process.py", line 269, in launchUI
    return bb.cooker.server_main(self.cooker, uifunc, *args)
  File "/home/paul/poky/poky/bitbake/lib/bb/cooker.py", line 1407, in server_main
    ret = func(*args)
  File "/home/paul/poky/poky/bitbake/lib/bb/ui/hob.py", line 71, in main
    builder = Builder(hobHandler, recipe_model, package_model)
AttributeError: 'NoneType' object has no attribute 'get_width'
Comment 1 Cristiana Voicu 2012-09-07 13:49:10 UTC
patch merged to master
Comment 2 Andreea Brandusa Proca 2012-09-10 09:32:46 UTC
Verified.