<?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>7548</bug_id>
          
          <creation_ts>2015-03-31 13:15:18 +0000</creation_ts>
          <short_desc>Cannot open display when running Gtk+ application as remote application</short_desc>
          <delta_ts>2016-03-16 17:34:30 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>Eclipse Plugin</product>
          <component>eclipse-plugin</component>
          <version>1.7.1</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.1 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Joshua Lock">joshuagloe</reporter>
          <assigned_to name="Jose Lamego">jose.a.lamego</assigned_to>
          <cc>ioanax.grigoropol</cc>
    
    <cc>todor.minchev</cc>
    
    <cc>yp.ep.watcher</cc>
    
    <cc>yp.watcher</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>49968</commentid>
    <comment_count>0</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2015-03-31 13:15:18 +0000</bug_when>
    <thetext>I&apos;m trying to test the Eclipse plugin with Dizzy by using the skeletal projects provided by the Yocto Eclipse Plugin.

When I use the Gtk+ hello world project template I&apos;m able to successfully build and deploy the binary however debugging and running the deployed binary fails with:

&quot;Gtk-WARNING **: cannot open display:&quot;

ADT Plug-in: 1.4.0 (installed from the 1.7.1/kepler software installation site)
Eclipse IDE: Kepler SR 2 (installed from a tarball downloaded from eclipse.org)
Poky: Dizzy HEAD (running the dizzy branch from git with a HEAD of ec75238f6cc2d2d8d40e0268f6d2acc070cbe9a4)
Toolchain: bitbake -c populate_sdk core-image-sato-sdk
OS: Ubuntu 14.10 x86_64</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49989</commentid>
    <comment_count>1</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2015-03-31 15:49:37 +0000</bug_when>
    <thetext>Note, I&apos;m working around this by setting &quot;export DISPLAY=:0&quot; in the &quot;Commands to execute before application&quot; field.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58079</commentid>
    <comment_count>2</comment_count>
    <who name="Jose Lamego">jose.a.lamego</who>
    <bug_when>2016-01-21 17:17:13 +0000</bug_when>
    <thetext>Updating target milestone. Estimated person-days may be updated based on further analysis.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60027</commentid>
    <comment_count>3</comment_count>
    <who name="Jose Lamego">jose.a.lamego</who>
    <bug_when>2016-03-16 17:34:30 +0000</bug_when>
    <thetext>The reported behavior is caused by a known issue in Eclipse that affects all releases and for which there is no fix to this day (Eclipse bug 195170: [1]).

This bug prevents Eclipse from supporting SSH port forwarding (tunneling), therefore host display cannot be opened when running/debugging as a remote application.

The following is a workaround that allows using host display by creating the tunneling outside Eclipse:

1. Launch a new terminal (external to Eclipse)
2. Start an SSH connection to the remote target using the -XY parameters to enable x11 trusted forwarding. DO NOT CLOSE THIS CONNECTION.
   For example: &apos;ssh -XY root@192.168.7.2&apos;
3. In the C/C++ Remote Application Configuration properties, export the variable DISPLAY=:10.0 by entering this in &quot;Commands to execute before application&quot; field.
   For example: &apos;export DISPLAY=:10.0&apos;
4. Run/Debug as Remote Application using this run configuration.

I&apos;ve submitted a request to include this info in the Yocto Project Development Manual (Bug 9276).

[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=195170</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>