Bug 2709 - [Hob2] elf image type causes Hob error
Summary: [Hob2] elf image type causes Hob error
Status: VERIFIED FIXED
Alias: None
Product: Hob
Classification: Build System, Metadata & Runtime
Component: hob (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: High normal
Target Milestone: 1.3 M3
Assignee: Kai Kang
QA Contact:
URL:
Whiteboard:
: 2722 2770 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-07-06 11:13 UTC by Shane Wang
Modified: 2012-08-13 21:10 UTC (History)
8 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 Shane Wang 2012-07-06 11:13:23 UTC
When I select images from Hob and try to open images, the backend shows:

an@HP:/opt/123/build3$ hob
Traceback (most recent call last):
  File "/home/an/workspace/poky-contrib/bitbake/lib/bb/ui/crumbs/hig.py", line 1255, in select_path_cb
    self.fill_image_store()
  File "/home/an/workspace/poky-contrib/bitbake/lib/bb/ui/crumbs/hig.py", line 1268, in fill_image_store
    for real_image_type in hcc.SUPPORTED_IMAGE_TYPES[image_type]:
KeyError: 'elf'
^CTraceback (most recent call last):
  File "/home/an/workspace/poky-contrib/bitbake/lib/bb/ui/hob.py", line 55, in event_handle_idle_func
    event = eventHandler.getEvent()
  File "/home/an/workspace/poky-contrib/bitbake/lib/bb/server/process.py", line 233, in getEvent
    return self.get(False)
  File "/usr/lib/python2.7/multiprocessing/queues.py", line 129, in get
    if not self._poll(block and (deadline-time.time()) or 0.0):
KeyboardInterrupt

which was brought in by the commit http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=c9b01af84b64edba056f959c349895e0698324e6
Comment 1 Shane Wang 2012-07-06 11:14:32 UTC
I assigned it to Kai. What we need to do is to sync up hcc.SUPPORTED_IMAGE_TYPES[image_type] in Hob to add "elf".
Comment 2 Shane Wang 2012-07-10 01:00:24 UTC
*** Bug 2722 has been marked as a duplicate of this bug. ***
Comment 3 Shane Wang 2012-07-17 01:46:25 UTC
*** Bug 2770 has been marked as a duplicate of this bug. ***
Comment 4 Shane Wang 2012-07-17 02:00:21 UTC
Since bug 2770 is marked as high, upgrade this to high.
Comment 5 Kai Kang 2012-07-18 03:23:15 UTC
Patch for fix this issus has been merged, Yocto commit 4bd0338972a1a64829734c43501a3a74c510421a

But Richard's opionion is that the code need to be rewrite and keep this bug open for now.
Comment 6 Jessica 2012-07-18 17:13:14 UTC
Hi Kai,

Please close this bug since it's a high and open another bug per RP's suggestion.
Comment 7 Kai Kang 2012-07-19 02:44:10 UTC
Bug 2795 is create to follow the code update.
Comment 8 Laurentiu Serban 2012-08-13 21:10:30 UTC
Setting this to verified according to the latest comments