mesh icon indicating copy to clipboard operation
mesh copied to clipboard

Error running on Virtual Machine

Open 007rohitSaini opened this issue 3 years ago • 3 comments

I tries running Mesh on Ubuntu Virtual Machine. meshviewer view teddy.obj give result

INFO:root:started remote viewer on port 61956

What do i do next!!

007rohitSaini avatar Sep 10 '21 19:09 007rohitSaini

Same here. How do I access with just a port? HELPPPP!

julian-122 avatar Jun 15 '22 23:06 julian-122

Same issue here, please help!

0CTA0 avatar Sep 14 '22 05:09 0CTA0

There could be several issues. I'm not connected with the project. However, I may be able to provide some insight.

First, try running meshviewer open instead.

It may be that meshviewer is failing and not outputting an error when run with the view option. Doing this, I got a Python traceback containing

OpenGL.error.NullFunctionError: Attempt to call an undefined function glutInit, check for bool(glutInit) before calling

This meant that glut, the OpenGL Utility Toolkit used for rendering things like windows, wasn't available on the system.

  • For a Debian based distro (e.g. Ubuntu), running sudo apt-get install freeglut was sufficient to render a window and show the object.
  • For other GNU/Linux systems, use the appropriate package manager (e.g. yum, rpm, etc.) to install GLUT–the package will be named similarly to freeglut. Search the internet or relevant package archive for the correct name.
  • For Windows, you'll likely have success with PyOpenGL packaged by Christoph Gohlke (https://www.lfd.uci.edu/%7Egohlke/pythonlibs/#pyopengl). He's a researcher from University of California, Irvine who compiles and hosts Python packages requiring binaries. His version of PyOpenGL includes GLUT. (Python pip doesn't really package binaries, hence Gohlke and hence Conda). The usual warnings apply for installing binaries: If you don't trust them, don't install them!

Running meshviewer open may produce a different error. If it does, try pasting the error output here.

Second, mesh may not be able to render within a virtual machine. For example, VirtualBox on Windows doesn't grant machines access to the GPU. Therefore, while the application may function, the GPU related parts may not. The same may be true for virtualization on GNU/Linux. (EDIT: It looks like QEMU supports GPU virtualization. So, it may be that you need to enable GPU support for your machine.)

excalamus avatar Dec 17 '22 04:12 excalamus