<?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>11986</bug_id>
          
          <creation_ts>2017-08-28 08:08:05 +0000</creation_ts>
          <short_desc>Refkit wayland image: click on weston-terminal icon does not fire up new terminal</short_desc>
          <delta_ts>2018-10-11 19:27:33 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>IoT Reference OS Kit</product>
          <component>intel-iot-refkit-platform-support</component>
          <version>2.4</version>
          <rep_platform>MinnowBoard Max</rep_platform>
          <op_sys>x86</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>OBSOLETE</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Future</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="yeoh ee peng">ee.peng.yeoh</reporter>
          <assigned_to name="Jussi Laako">jussi.laako</assigned_to>
          <cc>jku</cc>
    
    <cc>richard.purdie</cc>
          
          <qa_contact name="yeoh ee peng">ee.peng.yeoh</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>76181</commentid>
    <comment_count>0</comment_count>
    <who name="yeoh ee peng">ee.peng.yeoh</who>
    <bug_when>2017-08-28 08:08:05 +0000</bug_when>
    <thetext>This happen intermediately.  

Environment:
Image: refkit-image-common-wayland-intel-corei7-64-2017-08-04_06-28-07-build-244.wic.xz 
Boards: MinnowMax (very frequent), Intel Joule 570 (intermediate, less frequent)

Defect Description: 
After successful bootup and automatically loaded into weston compositor, click on weston-terminal icon does not fire up new terminal. 

Expected:
When click on weston-terminal icon, it will fire up a new weston terminal inside the current weston-compositor. 

Actual:
When click on weston-terminal icon, it does not fire up a new weston terminal inside the current weston-compositor. In fact it is fire up weston terminal inside the weston-compositor in another virtual terminal. (Found that multiple weston-compositors are sharing the same WAYLAND_DISPLAY value)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76495</commentid>
    <comment_count>1</comment_count>
    <who name="Jussi Kukkonen">jku</who>
    <bug_when>2017-09-04 13:16:23 +0000</bug_when>
    <thetext>&gt; In fact it is fire up weston terminal inside the weston-compositor in
&gt; another virtual terminal. (Found that multiple weston-compositors are
&gt; sharing the same WAYLAND_DISPLAY value)

Can you show what is really going on here and how you figured this out? What exactly does &quot;weston-compositor&quot; refer to (weston-launch maybe)?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76513</commentid>
    <comment_count>2</comment_count>
    <who name="yeoh ee peng">ee.peng.yeoh</who>
    <bug_when>2017-09-05 01:46:25 +0000</bug_when>
    <thetext>As this defect happen intermediately (happen more often on MinnowMax). When this defect was detected (click on weston-terminal icon does not fire up new terminal), try to find out which virtual terminal was used at the bootup to launch weston (eg. virtual terminal #2). 

Switch to different virtual terminal by the key sequence CTL-ALT-F&lt;n&gt; where n is 1-6. For example CTL-ALT-F1 to virtual terminal and then execute weston-launch to fire up a weston-compositor. Try to execute weston-launch on every virtual terminal. 

When you use weston-launch to fire up a weston-compositor, by default it is without any weston terminal. But you will notice one of the weston-compositor that you fire up contains 1 or more weston terminal. In fact if you go back to the virtual terminal used at the bootup (eg. virtual terminal #2), click on the weston-terminal icon, it will fire up new weston terminal at another virtual terminal (eg. virtual terminal #1).

To debug, execute &quot;export&quot; at each weston terminal and observe the &quot;WAYLAND_DISPLAY&quot;. I notice 2 of the virtual terminal shared the same &quot;WAYLAND_DISPLAY&quot; value. 

Please let me know if you can reproduce this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76519</commentid>
    <comment_count>3</comment_count>
    <who name="Jussi Kukkonen">jku</who>
    <bug_when>2017-09-05 12:17:22 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; As this defect happen intermediately (happen more often on MinnowMax). When
&gt; this defect was detected (click on weston-terminal icon does not fire up new
&gt; terminal), try to find out which virtual terminal was used at the bootup to
&gt; launch weston (eg. virtual terminal #2). 

Just to make sure, do you really only have a single weston running at this point (the one started by the init manager), and the terminal just doesn&apos;t appear? Or do you already have another weston started somehow?

&gt; Switch to different virtual terminal by the key sequence CTL-ALT-F&lt;n&gt; where
&gt; n is 1-6. For example CTL-ALT-F1 to virtual terminal and then execute
&gt; weston-launch to fire up a weston-compositor. Try to execute weston-launch
&gt; on every virtual terminal. 


So you just call &quot;weston-launch&quot;? I&apos;m a little surprised if it works and  XDG_RUNTIME_DIR is set... Can you check what the values of that env var is in the various vt&apos;s or mention if you set it yourself? Are you running as root or multiple accounts?


&gt; When you use weston-launch to fire up a weston-compositor, by default it is
&gt; without any weston terminal. But you will notice one of the
&gt; weston-compositor that you fire up contains 1 or more weston terminal. In
&gt; fact if you go back to the virtual terminal used at the bootup (eg. virtual
&gt; terminal #2), click on the weston-terminal icon, it will fire up new weston
&gt; terminal at another virtual terminal (eg. virtual terminal #1).
&gt; 
&gt; To debug, execute &quot;export&quot; at each weston terminal and observe the
&gt; &quot;WAYLAND_DISPLAY&quot;. I notice 2 of the virtual terminal shared the same
&gt; &quot;WAYLAND_DISPLAY&quot; value. 
&gt; 
&gt; Please let me know if you can reproduce this.

No, I couldn&apos;t (I&apos;m not on your hardware and am running poky so not really the same thing). In any case the new westons get a new WAYLAND_DISPLAY.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81831</commentid>
    <comment_count>4</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2018-10-11 19:27:33 +0000</bug_when>
    <thetext>Refkit work isn&apos;t continuing so mark as obsolete.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>