<?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>9803</bug_id>
          
          <creation_ts>2016-06-18 13:28:04 +0000</creation_ts>
          <short_desc>cooker.py blew up on failed build (serialization issue?)</short_desc>
          <delta_ts>2016-06-21 07:08:31 +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>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.2 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jussi Kukkonen">jku</reporter>
          <assigned_to name="Ed Bartosh">eduard.bartosh</assigned_to>
          <cc>bill.randle</cc>
    
    <cc>eduard.bartosh</cc>
    
    <cc>joshuagloe</cc>
    
    <cc>mhalstead</cc>
    
    <cc>pidge</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</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>63131</commentid>
    <comment_count>0</comment_count>
    <who name="Jussi Kukkonen">jku</who>
    <bug_when>2016-06-18 13:28:04 +0000</bug_when>
    <thetext>Recent nightly-no-x11 build failed (cmake failure is handled on mailing list), and something went wrong in cooker.py. The resulting log is is almost 400MB of python traceback that looks like this:

b&amp;#39;\x80\x03cbb.cooker\nCookerExit\nq\x00)\x81q\x01}q\x02X\x03\x00\x00\x00pidq\x03K\x00sb.&amp;#39; is not JSON serializable Traceback (most recent call last):
  File &amp;#34;/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-no-x11/build/bitbake/lib/bb/cooker.py&amp;#34;, line 330, in write_event
    f.write(&amp;#34;%s\n&amp;#34; % json.dumps({&amp;#34;class&amp;#34;:event.__module__ + &amp;#34;.&amp;#34; + event.__class__.__name__, &amp;#34;vars&amp;#34;:json.dumps(pickle.dumps(event)) }))
  File &amp;#34;/usr/lib/python3.4/json/__init__.py&amp;#34;, line 230, in dumps
    return _default_encoder.encode(obj)
  File &amp;#34;/usr/lib/python3.4/json/encoder.py&amp;#34;, line 192, in encode
    chunks = self.iterencode(o, _one_shot=True)
  File &amp;#34;/usr/lib/python3.4/json/encoder.py&amp;#34;, line 250, in iterencode
    return _iterencode(o, 0)
  File &amp;#34;/usr/lib/python3.4/json/encoder.py&amp;#34;, line 173, in default
    raise TypeError(repr(o) + &amp;#34; is not JSON serializable&amp;#34;)
TypeError: b&amp;#39;\x80\x03cbb.cooker\nCookerExit\nq\x00)\x81q\x01}q\x02X\x03\x00\x00\x00pidq\x03K\x00sb.&amp;#39; is not JSON serializable</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63137</commentid>
    <comment_count>1</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2016-06-20 08:03:56 +0000</bug_when>
    <thetext>I think we may need to fix up the -w/--write-log option for Python3.

However I&apos;m not sure if/where this option is being set for use on the autobuilder. Looking at:

yocto-autobuilder/lib/python2.7/site-packages/autobuilder\
/buildsteps/BuildImages.py

we pass -w &apos;bitbake_eventlog.json&apos; if the images variable includes #TOASTER, but I don&apos;t see that being set in the buildset.controller/nightly-no-x11.conf

CC&apos;ing some of the build &amp; release folks who may be able to shed light on that</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63140</commentid>
    <comment_count>2</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2016-06-20 09:56:08 +0000</bug_when>
    <thetext>Looks like I fixed it while working on bug #9585 https://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/log/?h=ed/toaster/eventplay-9585

I&apos;ll submit the fix soon.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63141</commentid>
    <comment_count>3</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2016-06-20 09:56:50 +0000</bug_when>
    <thetext>moving to M1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63142</commentid>
    <comment_count>4</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2016-06-20 11:04:43 +0000</bug_when>
    <thetext>Patchset has been sent for review: http://lists.openembedded.org/pipermail/bitbake-devel/2016-June/007602.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63169</commentid>
    <comment_count>5</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2016-06-21 07:08:31 +0000</bug_when>
    <thetext>The fix has been merged to poky master: https://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=e28b36e1e8b2d6b1531698d6d50658e3fc73adc0</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>