Bug 9087 - Toaster hangs when you start a build specifying an invalid task
Summary: Toaster hangs when you start a build specifying an invalid task
Status: VERIFIED FIXED
Alias: None
Product: Toaster
Classification: Build System, Metadata & Runtime
Component: toaster (show other bugs)
Version: 2.0
Hardware: x86 Multiple
: Medium normal
Target Milestone: 2.1 M4
Assignee: Elliot Smith
QA Contact: Alexandru Roman
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2016-02-10 11:17 UTC by Belen Barros Pena
Modified: 2016-05-04 13:18 UTC (History)
5 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Belen Barros Pena 2016-02-10 11:17:50 UTC
In Toaster you can specify a task to run when you start a build by typing a semicolon and the task name after the build target. If you type a task name that doesn't exit, the build starts but the UI shows an empty progress bar forever, even after the build fails. If you then restart Toaster, you can see the build failed and this error message:

Task do_foo does not exist for target zlib

The toaster_ui.log file says:

NOTE: Logging error 2: {'lineno': 198, 'message': 'Task do_foo does not exist for target zlib', 'pathname': '/home/yocto/master/bitbake/lib/bb/msg.py', 'build': <Build: 2 test invalid task (Release master (master), BBV master (Branch: master)) zlib>, 'level': 3}
ERROR: Task do_foo does not exist for target zlib

This happens in both master and toaster-next.
Comment 1 Elliot Smith 2016-02-29 14:25:19 UTC
RP provided I patch, which I submitted directly to bitbake-devel on his behalf:
http://lists.openembedded.org/pipermail/bitbake-devel/2016-February/007134.html
Comment 2 Ross Burton 2016-04-15 12:44:12 UTC
Fixed in bitbake 98a2c37e077b16e3bc8bb102bd18b293130d15a4.
Comment 3 Alexandru Roman 2016-05-04 13:18:58 UTC
Verified on master.