Giter Club home page Giter Club logo

Comments (6)

jemsMIT avatar jemsMIT commented on September 6, 2024

Hi - have you tried using xpra to view a remote render? Here is a link to our documentation on this approach:

https://github.com/threedworld-mit/tdw/blob/master/Documentation/misc_frontend/xpra.md

from tdw.

alters-mit avatar alters-mit commented on September 6, 2024

@YanjunChen329 What is the output of nvidia-smi? Your drivers might be out of date.

from tdw.

YanjunChen329 avatar YanjunChen329 commented on September 6, 2024

Hi,

Thank you for the prompt replies! I tried to follow the instructions in the link that @jemsMIT provided. However, I still encountered the same "Can't open display: 80" error. Here is the details of my steps:

First, I can't run step 2: DISPLAY=:80 vlgrun -d :0 ./tdw.x86_64 because my host container does not have ./TDW.x86_64. I assumed that this is the command I should run when I am in the TDW container. Thus, I followed the shell script tdw/Docker/start_container_xpra.sh for server-side code. Here are the commands I run:

DISPLAY=:0
xhost +local:root
xpra start :80
DISPLAY=:80
xhost +local:root

sudo docker run -it \
  --rm \
  --gpus all \
  -v /tmp/.X11-unix:/tmp/.X11-unix \
  -e DISPLAY=$DISPLAY \
  --network host \
  vglrun -d :0 \
  tdw:v1.6.0 \
  ./TDW/TDW.x86_64

However, for the last command docker complains that no image vglrun can be found. I think this is a small typo in the shell script so I run the following command instead:

sudo docker run -it \
  --rm \
  --gpus all \
  -v /tmp/.X11-unix:/tmp/.X11-unix \
  -e DISPLAY=$DISPLAY \
  --network host \
  tdw:v1.6.0 \
  vglrun -d :0 ./TDW/TDW.x86_64

After it started running, I went to my Mac and tried the command xpra attach --ssh=ssh ssh/<my_server_hostname>/80. However, the following error shows up:

Warning: vendor 'Intel Inc.' is greylisted,
you may want to turn off OpenGL if you encounter bugs
Xpra GTK3 client version 4.0.1-r26380 64-bit
running on Mac OS X 10.15.4
GStreamer version 1.16.2 for Python 3.8.2 64-bit
visionary/third_party/dm_control/__pycach│/Applications/Xpra.app/Contents/Resources/lib/python/xpra/platform/darwin/osx_tray.py:90: Warning: invalid cast from 'GtkMenuBar' to 'GtkWindow'
self.macapp.set_menu_bar(self.menu)

(Xpra:1722): Gtk-CRITICAL **: 16:26:53.014: gtk_window_add_accel_group: assertion 'GTK_IS_WINDOW (window)' failed
failed to connect to XXXX:80, retrying for 20 seconds

I also tried to connect to my xpra server through web browsers following a tutorial online. I managed to see the Xpra favicon but immediately after, an error message popped up saying: ERROR CODE: GPU_DEAD_ON_ARRIVAL


The thing that baffles me the most is that I received the OpenGL error after I installed X-server and VNC on the TDW docker image. Is there any dependency that I may be lacking or is there any other approach that I could try? Thank you again for your help!

from tdw.

YanjunChen329 avatar YanjunChen329 commented on September 6, 2024

@alters-mit My remote server has driver version 430.5. Here is the output from running nvidia-smi:

image

from tdw.

alters-mit avatar alters-mit commented on September 6, 2024

@YanjunChen329 I found numerous problems with TDW's Docker container, which I fixed. Try upgrading: pip3 install tdw -U and see our Docker documentation

Please let me know if that helps solve your problem.

from tdw.

alters-mit avatar alters-mit commented on September 6, 2024

Closing this ticket due to inactivity and because the bug has likely been fixed.

from tdw.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.