<?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>14408</bug_id>
          
          <creation_ts>2021-05-26 19:49:11 +0000</creation_ts>
          <short_desc>bitbake hangs using taskexp ui and a new build directory</short_desc>
          <delta_ts>2021-08-06 05:38:12 +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>BitBake</product>
          <component>bitbake</component>
          <version>unspecified</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>3.4 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Randy Witt">randy.e.witt</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>randy.macleod</cc>
          
          
          <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>90482</commentid>
    <comment_count>0</comment_count>
    <who name="Randy Witt">randy.e.witt</who>
    <bug_when>2021-05-26 19:49:11 +0000</bug_when>
    <thetext>If you run &quot;bitbake -g -u taskexp quilt-native&quot; with a clean build directory, then it will hang after 60 seconds.

Here are the steps to reproduce and the output.

Commands to reproduce and output
--------------------------------

~/poky$ rm build/ -rf
~/poky$ . ./oe-init-build-env build
You had no conf/local.conf file. This configuration file has therefore been
... &lt;Snipped&gt;
~/poky/build$ bitbake quilt-native -g -u taskexp
Timeout while waiting for a reply from the bitbake server (60s)
~/poky/build$</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90485</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2021-05-26 23:12:51 +0000</bug_when>
    <thetext>Thanks for reporting, this actually raises a lot of good questions.

There is a missing params.updateToServer(server, os.environ.copy()) call from taskexp.py. This results in BB_ORIGENV being empty which means PATH isn&apos;t available which leads to an error populating HOSTTOOLS. The error isn&apos;t visible since taskexp handles errors badly and there is also bad handling of early failures within bitbake server which means the logs don&apos;t have good logs.

Fixing this needs:

a) A fix to add params.updateToServer(server, os.environ.copy()) to taskexp
b) Improved traceback handling in bitbake&apos;s server main loop
c) Some way for errors to be printed if a UI fails (even to the cooker log worse case).

Fixing a) will fix the bug but we need better debug when something fails too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91116</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2021-08-05 12:38:07 +0000</bug_when>
    <thetext>Four patches to bitbake sent out to address this issue and the associated poor logging/handling.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91129</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2021-08-06 05:38:12 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=5f4e335c8ee25f97ad47a4df2e7f0b6e8967e89a and preceeding patches</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>