Bug 2596

Summary: [Hob2] traceback when DISPLAY is not set
Product: [Build System, Metadata & Runtime] Hob Reporter: Paul Eggleton <bluelightning>
Component: hobAssignee: Cristiana Voicu <cristiana.voicu>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: alexandru.damian, andreea.b.proca, jason.wessel, jessica.zhang, jiajun.xu, poky.bs.watcher, poky.watcher, sgw, song.liu
Version: 1.2   
Target Milestone: 1.3 M4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

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.