| Summary: | Cannot open display when running Gtk+ application as remote application | ||
|---|---|---|---|
| Product: | [Yocto Project Subprojects] Eclipse Plugin | Reporter: | Joshua Lock <joshuagloe> |
| Component: | eclipse-plugin | Assignee: | Jose Lamego <jose.a.lamego> |
| Status: | RESOLVED WONTFIX | QA Contact: | |
| Severity: | normal | ||
| Priority: | Medium | CC: | ioanax.grigoropol, todor.minchev, yp.ep.watcher, yp.watcher |
| Version: | 1.7.1 | ||
| Target Milestone: | 2.1 M4 | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | Don't know | |
|
Description
Joshua Lock
2015-03-31 13:15:18 UTC
Note, I'm working around this by setting "export DISPLAY=:0" in the "Commands to execute before application" field. Updating target milestone. Estimated person-days may be updated based on further analysis. 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: 'ssh -XY root@192.168.7.2' 3. In the C/C++ Remote Application Configuration properties, export the variable DISPLAY=:10.0 by entering this in "Commands to execute before application" field. For example: 'export DISPLAY=:10.0' 4. Run/Debug as Remote Application using this run configuration. I'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 |