<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>9951</bug_id>
          
          <creation_ts>2016-07-15 14:01:47 +0000</creation_ts>
          <short_desc>Toaster builds hang because of a runqueue exception in bitbake</short_desc>
          <delta_ts>2016-07-22 16:14:09 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>Toaster</product>
          <component>toaster</component>
          <version>2.3</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.2 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Elliot Smith">elliot.smith</reporter>
          <assigned_to name="Ed Bartosh">eduard.bartosh</assigned_to>
          <cc>belen.barros.pena</cc>
    
    <cc>brian.avery</cc>
    
    <cc>jessica.zhang</cc>
    
    <cc>stanciux.mihail</cc>
          
          <qa_contact name="Libertad">libertad.gonzalez.de.la.cruz</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>64040</commentid>
    <comment_count>0</comment_count>
    <who name="Elliot Smith">elliot.smith</who>
    <bug_when>2016-07-15 14:01:47 +0000</bug_when>
    <thetext>In toaster-next, I occasionally see errors which take this form:

--------------------------------------------
NOTE: Logging error 2: {&apos;build&apos;: &lt;Build: 2 Project object core-image-minimal&gt;, &apos;message&apos;: &apos;An uncaught exception occured in runqueue&apos;, &apos;pathname&apos;: &apos;/home/ell/dev/toaster/poky/bitbake/lib/bb/runqueue.py&apos;, &apos;level&apos;: 2, &apos;lineno&apos;: 1223}
ERROR: An uncaught exception occured in runqueue
Traceback (most recent call last):
  File &quot;/home/ell/dev/toaster/poky/bitbake/lib/bb/runqueue.py&quot;, line 1210, in RunQueue.execute_runqueue():
             try:
    &gt;            return self._execute_runqueue()
             except bb.runqueue.TaskFailure:
  File &quot;/home/ell/dev/toaster/poky/bitbake/lib/bb/runqueue.py&quot;, line 1144, in RunQueue._execute_runqueue():
                     # needs it
    &gt;                depgraph = self.cooker.buildDependTree(self, self.rqdata.taskData)
                     self.rqdata.init_progress_reporter.next_stage()
  File &quot;/home/ell/dev/toaster/poky/bitbake/lib/bb/cooker.py&quot;, line 741, in BBCooker.buildDependTree(rq=&lt;bb.runqueue.RunQueue object at 0x7f049d83c4a8&gt;, taskdata=&lt;bb.taskdata.TaskData object at 0x7f049f786dd8&gt;):
                     for ei in extra_info:
    &gt;                    depend_tree[&quot;pn&quot;][pn][ei] = vars(self.recipecache)[ei][fn]
     
KeyError: &apos;/home/ell/dev/toaster/poky/meta/recipes-devtools/run-postinsts/run-postinsts_1.0.bb&apos;
--------------------------------------------

While this looks like a bitbake error, it also causes the corresponding Toaster build to &quot;hang&quot;: the most recent builds area doesn&apos;t update.

We may not be able to fix the bitbake error or even reproduce it reliably, but we can detect when exceptions occur at this point in the bitbake run and capture them properly in Toaster, so the build at least fails (and is reported as failed in the UI).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64068</commentid>
    <comment_count>1</comment_count>
    <who name="brian avery">brian.avery</who>
    <bug_when>2016-07-15 21:07:54 +0000</bug_when>
    <thetext>I believe this bug is a Toaster centric view of Bug #9902.
Just adding this note so that we know they are related.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64357</commentid>
    <comment_count>2</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2016-07-22 15:26:16 +0000</bug_when>
    <thetext>Just wondering could this be fixed by this commit? http://git.yoctoproject.org/cgit.cgi/poky-contrib/commit/?h=rpurdie/wip&amp;id=5e9d53250e94cc0e782ca882bc90b0744d554fd6</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64369</commentid>
    <comment_count>3</comment_count>
    <who name="brian avery">brian.avery</who>
    <bug_when>2016-07-22 16:14:09 +0000</bug_when>
    <thetext>Closing this since RP&apos;s no pickle interleave commit (referenced in Ed&apos;s commment) *should* fix this.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>