<?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>5588</bug_id>
          
          <creation_ts>2013-11-22 10:05:53 +0000</creation_ts>
          <short_desc>pybootchartgui.py doesn&apos;t work with -s option</short_desc>
          <delta_ts>2014-02-10 07:34:10 +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>Meta-yocto</product>
          <component>configuration</component>
          <version>1.6</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</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>1.6</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yi Zhao">yi.zhao</reporter>
          <assigned_to name="Peter Kjellerstedt">peter.kjellerstedt</assigned_to>
          <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>yi.zhao</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>39021</commentid>
    <comment_count>0</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2013-11-22 10:05:53 +0000</bug_when>
    <thetext>Git rev: master/215dab864e7cf74394840621ad0754db593708f1

Steps:
1. Build an image
2. Run command ../scripts/pybootchartgui/pybootchartgui.py -s 4 -o chart  tmp/buildstats/core-image-minimal-qemumips/201311221707 to generate the svg files.

Error message: 
#################
$ ../scripts/pybootchartgui/pybootchartgui.py -s 4 -o chart tmp/buildstats/core-image-minimal-qemumips/201311221707
Traceback (most recent call last):
  File &quot;../scripts/pybootchartgui/pybootchartgui.py&quot;, line 23, in &lt;module&gt;
    sys.exit(main())
  File &quot;/buildarea3/yzhao1/poky-build/scripts/pybootchartgui/pybootchartgui/main.py&quot;, line 156, in main
    res_list = parsing.split_res(res, options.num)
  File &quot;/buildarea3/yzhao1/poky-build/scripts/pybootchartgui/pybootchartgui/parsing.py&quot;, line 716, in split_res
    state = ParserState()
NameError: global name &apos;ParserState&apos; is not defined

##################</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39125</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2013-11-28 15:36:56 +0000</bug_when>
    <thetext>Peter, would you be able to help with this regression from the latest changes?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39129</commentid>
    <comment_count>2</comment_count>
    <who name="Peter Kjellerstedt">peter.kjellerstedt</who>
    <bug_when>2013-11-29 02:17:56 +0000</bug_when>
    <thetext>I will take a look at it...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39975</commentid>
    <comment_count>3</comment_count>
      <attachid>1742</attachid>
    <who name="Peter Kjellerstedt">peter.kjellerstedt</who>
    <bug_when>2014-01-21 15:18:49 +0000</bug_when>
    <thetext>Created attachment 1742
Make the -s option work again

This should make the -s option work again.

During the work to fix this ticket I noticed a couple of other things I wanted to correct/improve in pybootchartgui. I will send these changes (including the fix for this ticket) as a normal batch of patches to the oe-core mailing list.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40174</commentid>
    <comment_count>4</comment_count>
    <who name="Peter Kjellerstedt">peter.kjellerstedt</who>
    <bug_when>2014-02-04 11:46:38 +0000</bug_when>
    <thetext>Merged into master:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=34a5d1e9cd7df1fb46431ffda2371f5772a4eaf9</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40259</commentid>
    <comment_count>5</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2014-02-10 07:34:10 +0000</bug_when>
    <thetext>Verified with master/4e9eb77108c7e628ebd00ec848b8bc034802e197</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>1742</attachid>
            <date>2014-01-21 15:18:49 +0000</date>
            <delta_ts>2014-01-21 15:18:49 +0000</delta_ts>
            <desc>Make the -s option work again</desc>
            <filename>0001-pybootchartgui-Make-the-s-option-work-again.patch</filename>
            <type>text/plain</type>
            <size>1532</size>
            <attacher name="Peter Kjellerstedt">peter.kjellerstedt</attacher>
            
              <data encoding="base64">RnJvbSAzYmNiNGY3ZGFlY2EwMDJjMzNkOWY3NjJlNDgxM2RjYzA3NmMwZmM1IE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQpGcm9tOiBQZXRlciBLamVsbGVyc3RlZHQgPHBrakBheGlzLmNvbT4KRGF0
ZTogTW9uLCAyMCBKYW4gMjAxNCAxNjozMzo1NCArMDEwMApTdWJqZWN0OiBbUEFUQ0hdIHB5Ym9v
dGNoYXJ0Z3VpOiBNYWtlIHRoZSAtcyBvcHRpb24gd29yayBhZ2FpbgoKW1lPQ1RPICM1NTg4XQoK
U2lnbmVkLW9mZi1ieTogUGV0ZXIgS2plbGxlcnN0ZWR0IDxwZXRlci5ramVsbGVyc3RlZHRAYXhp
cy5jb20+Ci0tLQogc2NyaXB0cy9weWJvb3RjaGFydGd1aS9weWJvb3RjaGFydGd1aS9wYXJzaW5n
LnB5IHwgOSArKysrKy0tLS0KIDEgZmlsZSBjaGFuZ2VkLCA1IGluc2VydGlvbnMoKyksIDQgZGVs
ZXRpb25zKC0pCgpkaWZmIC0tZ2l0IGEvc2NyaXB0cy9weWJvb3RjaGFydGd1aS9weWJvb3RjaGFy
d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BzdGFydCA8IGVuZDoKLSAgICAgICAgICAgIHN0YXRlID0gUGFy
c2VyU3RhdGUoKQorICAgICAgICAgICAgc3RhdGUgPSBUcmFjZShOb25lLCBbXSwgTm9uZSkKICAg
ICAgICAgICAgIGZvciBpIGluIHJhbmdlKHN0YXJ0LCBlbmQpOgogICAgICAgICAgICAgICAgICMg
QWRkIHRoZXNlIGxpbmVzIGZvciByZWZlcmVuY2UKICAgICAgICAgICAgICAgICAjc3RhdGUucHJv
Y2Vzc2VzW3BuICsgIjoiICsgdGFza10gPSBbc3RhcnQsIGVuZF0KLS0gCjEuOC40Cgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>