Bug 9087

Summary: Toaster hangs when you start a build specifying an invalid task
Product: [Build System, Metadata & Runtime] Toaster Reporter: Belen Barros Pena <belen.barros.pena>
Component: toasterAssignee: Elliot Smith <elliot.smith>
Status: VERIFIED FIXED QA Contact: Alexandru Roman <alexandru.costinx.roman>
Severity: normal    
Priority: Medium CC: alexandru.costinx.roman, belen.barros.pena, jessica.zhang, ross.burton, stanciux.mihail
Version: 2.0   
Target Milestone: 2.1 M4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

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.