Genesis icon indicating copy to clipboard operation
Genesis copied to clipboard

Unable to perform visual simulation when running on a server via SSH

Open Niemand03 opened this issue 1 year ago • 9 comments

标题:SSH 连接服务器运行时无法进行可视化仿真

问题描述:

我通过 SSH 连接到一台 Linux 服务器运行 genesis 库的代码。这台服务器是 headless 的,没有图形显示设备。当我尝试使用 gs.Scene(show_viewer=True) 初始化场景时,程序抛出错误,提示 “No display detected. Use show_viewer=False for headless mode.”。这导致我无法在 SSH 连接的情况下直接进行可视化仿真。

期望:

我希望了解是否有推荐的方法,可以在 SSH 连接服务器且服务器无显示设备的情况下,仍然进行可视化仿真,或者至少获取可视化输出结果(例如保存为图像或视频文件)。


Title: Unable to perform visual simulation when running on a server via SSH

Description:

I'm running genesis library code on a Linux server via SSH. This server is headless and does not have a graphics display device. When I try to initialize the scene using gs.Scene(show_viewer=True), the program throws an error, saying "No display detected. Use show_viewer=False for headless mode.". This makes it impossible to directly perform visual simulation when connected via SSH.

Expectation:

I would like to know if there are recommended methods to still perform visual simulations or at least obtain visual output (e.g., save as images or video files) when connected to a server via SSH, which is headless.

Niemand03 avatar Dec 19 '24 08:12 Niemand03

same issue here

HaithamIsmail avatar Dec 19 '24 08:12 HaithamIsmail

Using X11 forwarding (GPT maybe helpful)

galeselee avatar Dec 19 '24 08:12 galeselee

@galeselee , I tried X11 forwarding, but the window is black, have you got this issue? image

WYYAHYT avatar Dec 19 '24 09:12 WYYAHYT

image I tried X11 Forwarding too, but I don't know how to deal with this error

CCCalcifer avatar Dec 19 '24 12:12 CCCalcifer

标题:SSH 连接服务器运行时无法进行可视化仿真

问题描述:

我通过 SSH 连接到一台 Linux 服务器运行 genesis 库的代码。这台服务器是 headless 的,没有图形显示设备。当我尝试使用 gs.Scene(show_viewer=True) 初始化场景时,程序抛出错误,提示 “No display detected. Use show_viewer=False for headless mode.”。这导致我无法在 SSH 连接的情况下直接进行可视化仿真。

期望:

我希望了解是否有推荐的方法,可以在 SSH 连接服务器且服务器无显示设备的情况下,仍然进行可视化仿真,或者至少获取可视化输出结果(例如保存为图像或视频文件)。

Title: Unable to perform visual simulation when running on a server via SSH

Description:

I'm running genesis library code on a Linux server via SSH. This server is headless and does not have a graphics display device. When I try to initialize the scene using gs.Scene(show_viewer=True), the program throws an error, saying "No display detected. Use show_viewer=False for headless mode.". This makes it impossible to directly perform visual simulation when connected via SSH.

Expectation:

I would like to know if there are recommended methods to still perform visual simulations or at least obtain visual output (e.g., save as images or video files) when connected to a server via SSH, which is headless.

Exactly same error that i am facing too.

satheeshKOLA532 avatar Dec 19 '24 12:12 satheeshKOLA532

@WYYAHYT I don't get this error, I haven't actually tried ssh, but in my experience Taichi can be forwarded via X11

galeselee avatar Dec 19 '24 14:12 galeselee

Try Headless Rendering, which may be a compromise: https://genesis-world.readthedocs.io/en/latest/user_guide/getting_started/visualization.html#camera-headless-rendering

linxiagong avatar Dec 19 '24 14:12 linxiagong

@galeselee I tried to run example/tutorials/visualization.py, nothing wrong and I can see rendered pictures. However, hello_genesis is still black.....

WYYAHYT avatar Dec 20 '24 02:12 WYYAHYT

Same issue here. Black screen using docker as well.

caiobarrosv avatar Dec 23 '24 00:12 caiobarrosv

@galeselee , I tried X11 forwarding, but the window is black, have you got this issue? image

Have you solved this problem? I have the same problem.

Vincia-Jun avatar Jan 16 '25 07:01 Vincia-Jun

Is this solved?

milong26 avatar Feb 17 '25 06:02 milong26

Could use headless rendering https://genesis-world.readthedocs.io/en/latest/user_guide/getting_started/visualization.html#camera-headless-rendering

YilingQiao avatar Feb 22 '25 17:02 YilingQiao