<?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>10420</bug_id>
          
          <creation_ts>2016-10-12 12:03:22 +0000</creation_ts>
          <short_desc>Exception when executing gdkpixbuf completion hook</short_desc>
          <delta_ts>2016-10-18 16:22:16 +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>OE-Core</product>
          <component>core</component>
          <version>2.2</version>
          <rep_platform>All</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>High</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>2.2 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ross Burton">ross.burton</reporter>
          <assigned_to name="Ross Burton">ross.burton</assigned_to>
          <cc>bluelightning</cc>
    
    <cc>brian.avery</cc>
    
    <cc>joshuagloe</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.e.witt</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sjolley.yp.pm</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>Regression (Used to work)</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>67175</commentid>
    <comment_count>0</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2016-10-12 12:03:22 +0000</bug_when>
    <thetext>From http://errors.yoctoproject.org/Errors/Details/91243/

/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-ppc-lsb/build/build/tmp/work/ppc7400-poky-linux/defaultpkgname/1.0-r0/temp/run.completion_function.18789: line 105: /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-ppc-lsb/build/build/tmp/sysroots/x86_64-linux/usr/lib/gdk-pixbuf-2.0/gdk-pixbuf-query-loaders: No such file or directory
WARNING: /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-ppc-lsb/build/build/tmp/work/ppc7400-poky-linux/defaultpkgname/1.0-r0/temp/run.completion_function.18789:1 exit 1 from &apos;exit 1&apos;
ERROR: Execution of event handler &apos;base_eventhandler&apos; failed
Traceback (most recent call last):
  File &quot;/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-ppc-lsb/build/meta/classes/base.bbclass&quot;, line 257, in base_eventhandler(e=&lt;bb.runqueue.sceneQueueComplete object at 0x7f140a212828&gt;):
                 bb.debug(1, &quot;Executing SceneQueue Completion commands: %s&quot; % &quot;\n&quot;.join(cmds))
    &gt;            bb.build.exec_func(&quot;completion_function&quot;, e.data)
                 os.remove(completions)
  File &quot;/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-ppc-lsb/build/bitbake/lib/bb/build.py&quot;, line 262, in exec_func(func=&apos;completion_function&apos;, d=&lt;bb.data_smart.DataSmart object at 0x7f1413310828&gt;, dirs=None, pythonexception=False):
             else:
    &gt;            exec_func_shell(func, d, runfile, cwd=adir)
     
  File &quot;/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-ppc-lsb/build/bitbake/lib/bb/build.py&quot;, line 446, in exec_func_shell(func=&apos;completion_function&apos;, d=&lt;bb.data_smart.DataSmart object at 0x7f1413310828&gt;, runfile=&apos;/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-ppc-lsb/build/build/tmp/work/ppc7400-poky-linux/defaultpkgname/1.0-r0/temp/run.completion_function.18789&apos;, cwd=None):
                     logfn = d.getVar(&apos;BB_LOGFILE&apos;, True)
    &gt;                raise FuncFailed(func, logfn)
             finally:
bb.build.FuncFailed: Function failed: completion_function

ERROR: An uncaught exception occurred in runqueue
Traceback (most recent call last):
  File &quot;/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-ppc-lsb/build/bitbake/lib/bb/event.py&quot;, line 124, in fire_class_handlers(event=&lt;bb.runqueue.sceneQueueComplete object at 0x7f140a212828&gt;, d=&lt;bb.data_smart.DataSmart object at 0x7f1413310828&gt;):
                         continue
    &gt;            execute_handler(name, handler, event, d)
     
  File &quot;/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-ppc-lsb/build/bitbake/lib/bb/event.py&quot;, line 96, in execute_handler(name=&apos;base_eventhandler&apos;, handler=&lt;function base_eventhandler at 0x7f14132ee510&gt;, event=&lt;bb.runqueue.sceneQueueComplete object at 0x7f140a212828&gt;, d=&lt;bb.data_smart.DataSmart object at 0x7f1413310828&gt;):
         try:
    &gt;        ret = handler(event)
         except (bb.parse.SkipRecipe, bb.BBHandledException):
  File &quot;/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-ppc-lsb/build/meta/classes/base.bbclass&quot;, line 257, in base_eventhandler(e=&lt;bb.runqueue.sceneQueueComplete object at 0x7f140a212828&gt;):
                 bb.debug(1, &quot;Executing SceneQueue Completion commands: %s&quot; % &quot;\n&quot;.join(cmds))
    &gt;            bb.build.exec_func(&quot;completion_function&quot;, e.data)
                 os.remove(completions)
  File &quot;/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-ppc-lsb/build/bitbake/lib/bb/build.py&quot;, line 262, in exec_func(func=&apos;completion_function&apos;, d=&lt;bb.data_smart.DataSmart object at 0x7f1413310828&gt;, dirs=None, pythonexception=False):
             else:
    &gt;            exec_func_shell(func, d, runfile, cwd=adir)
     
  File &quot;/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-ppc-lsb/build/bitbake/lib/bb/build.py&quot;, line 446, in exec_func_shell(func=&apos;completion_function&apos;, d=&lt;bb.data_smart.DataSmart object at 0x7f1413310828&gt;, runfile=&apos;/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-ppc-lsb/build/build/tmp/work/ppc7400-poky-linux/defaultpkgname/1.0-r0/temp/run.completion_function.18789&apos;, cwd=None):
                     logfn = d.getVar(&apos;BB_LOGFILE&apos;, True)
    &gt;                raise FuncFailed(func, logfn)
             finally:
bb.build.FuncFailed: Function failed: completion_function

Looks like the dependencies the completion script needed were not present so the hook aborted.  I&apos;m wondering if this is the recent runqueue change.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67187</commentid>
    <comment_count>1</comment_count>
    <who name="brian avery">brian.avery</who>
    <bug_when>2016-10-12 20:12:12 +0000</bug_when>
    <thetext>Managed to replicate locally.
These local.conf changes put at the end:
###
DISTRO = &quot;poky-lsb&quot;
MACHINE = &quot;qemuarm&quot;
SSTATE_MIRRORS ?= &quot;\
file://.* http://autobuilder.yoctoproject.org/pub/sstate/PATH;downloadfilename=PATH \n \
&quot;
  

QEMU_USE_KVM=&quot;True&quot;
INHERIT += &quot;testimage&quot;
TEST_SUITES = &quot; ping ssh&quot;

Ran:
$ rm -rf cache tmp
$ bitbake core-image-lsb &amp;&amp; bitbake core-image-lsb-sdk &amp;&amp; bitbake core-image-lsb core-image-lsb-sdk -c testimage

----
Running from my own locally created sstate did *not* fail</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67188</commentid>
    <comment_count>2</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2016-10-12 20:21:17 +0000</bug_when>
    <thetext>Here&apos;s the patch in question:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=a75bccdd14cec2ce6b74a0e6dc3d557593f6abd2

It seems rather unlikely that the runqueue patch caused this for two reasons:

1) The code being controlled by this does not change anything in the data structures unless it knows it&apos;s going to bail out, after which it does exactly that - and we&apos;re not seeing it do that.

2) In any case we can be pretty sure that this code wasn&apos;t running already as part of a normal build since BB_SETSCENE_ENFORCE isn&apos;t set to 1 (apart from when testing installation of the eSDK).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67189</commentid>
    <comment_count>3</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2016-10-12 20:47:21 +0000</bug_when>
    <thetext>Yes that was pointed out to me earlier.  Maybe Richards earlier optimisation patch?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67220</commentid>
    <comment_count>4</comment_count>
    <who name="Randy Witt">randy.e.witt</who>
    <bug_when>2016-10-13 15:40:45 +0000</bug_when>
    <thetext>I believe the easiest way to reproduce this is:

rm `find sstate-cache -iname &apos;*gdk-pixbuf-native*&apos; ` &amp;&amp; rm tmp -rf &amp;&amp; bitbake core-image-lsb

The reason the error occurs is the &quot;sstatecompletions&quot; file with commands using gdk-pixbuf-native still gets ran on completion of the scene queue, even though gdk-pixbuf-native wasn&apos;t setscened.


A good question is where did the gdk-pixbuf-native sstate go.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67221</commentid>
    <comment_count>5</comment_count>
    <who name="Randy Witt">randy.e.witt</who>
    <bug_when>2016-10-13 15:44:23 +0000</bug_when>
    <thetext>It should have been said to run the command in Comment 4 https://bugzilla.yoctoproject.org/show_bug.cgi?id=10420#c4 after a successful build.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67225</commentid>
    <comment_count>6</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2016-10-13 16:05:21 +0000</bug_when>
    <thetext>I *think* I have a fix now that an misunderstanding of how sstate works has been cleared up.  You learn something new every day.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67288</commentid>
    <comment_count>7</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2016-10-17 11:18:14 +0000</bug_when>
    <thetext>Fixed in oe-core 03cdb3366ded46cd760656e4cda0be37c1f82109.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>