How to visualise oceanFFT example or PCD files via SSH?


So I’m using Jetson TX2-JetPack 3.3.
Using the “ssh -X” command.Works well with gedit. For PCD visualization or oceanFFT example, however, I’m getting the following error:

X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  154 (GLX)
  Minor opcode of failed request:  24 (X_GLXCreateNewContext)

Teamviewer and VNC are very unstable for TX2. So “ssh -X” seems to be the best choice if this issue can be resolved.

Thanks in advance!

“ssh -X” does not do what you think it does. The distinction is that a virtual desktop relays desktop content, but X forwarding relays X events. The event is what triggers the GUI requirements, e.g., an OpenGL call is triggered by the X event. A program running on a Jetson, but forwarded to a PC via an X event, implies the hardware accelerated libraries, e.g., EGL, OpenGL, CUDA…are then operating on the PC, and not on the Jetson. Your PC now requires all of the software for the oceanFFT be installed (in the correct version) on the PC. The Jetson could have those components completely removed, and if the PC had the components, then you would see a very fast rendering of the example.

To truly run on the Jetson you will need either a native desktop, or a virtual desktop on the Jetson. SSH forwarding will not work for that purpose.