Author Topic: Meshmixer running on all modern Linux distributions  (Read 1359 times)

hugoviejo

  • Newbie
  • *
  • Posts: 3
    • View Profile
Meshmixer running on all modern Linux distributions
« on: March 16, 2017, 08:54:23 AM »
I created a Docker image of Meshmixer that runs on all Docker compatible Linux distributions.

As a prerequisite you had to install Docker in your system (check https://store.docker.com/search?type=edition&offering=community)
Ensure to follow the "Manage Docker as a non-root user" steps of the Optional post-installation steps

Then use this image https://hub.docker.com/r/hugoviejo/meshmixer/

Steps:

1. At your home directory create a new directory named "shared_directory"
Code: [Select]
mkdir shared_directory
2. Copy the attached file meshmixer.sh to your home directory and give execution rigths
Code: [Select]
chmod +x meshmixer.sh
3. Run the script meshmixer.sh to run the application on your home
Code: [Select]
./meshmixer.sh
Now the application runs and you may use the "shared_directory" to store your mesh files

Note for advanced users
This sicript runs something like this
Code: [Select]
docker run -ti -e DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix:ro -v ~/.Xauthority:/home/meshmixer/.Xauthority -v $(pwd)/shared_directory:/home/meshmixer/shared_directory --net=host --privileged hugoviejo/meshmixer


« Last Edit: March 16, 2017, 08:58:15 AM by hugoviejo »

frankv

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Meshmixer running on all modern Linux distributions
« Reply #1 on: March 24, 2017, 04:01:47 AM »
Thanks for that Hugo!

NB: It can take a while for MeshMixer to start the first time, because it is downloading a few hundred MB... be patient!

A question... Can I just edit the meshmixer.sh to point to my existing directory? e.g.

Code: [Select]
-v ~frank/3DPrint:/home/meshmixer/3DPrint
And....

Aaarrghhh! Help!

I can create new files, save them, load them up again. But when I try to load one of my pre-existing models (copied to shared_directory), MM crashes :( . These models were created with the latest stable MM on Windows. I'm running Ubuntu 16.04 here. Happy to share my .mix files, but they're 13-18MB each.

Code: [Select]
frank@computer:~$ ./meshmixer.sh
Trying to run a new data container.
The container already exists, relaunching the old old one.
+ meshmixer
[Config::RestoreConfig] Restoring config from /home/meshmixer/.config/Autodesk/meshmixer.ini
[Config::StoreConfig] storing config to /home/meshmixer/.config/Autodesk/meshmixer.ini
[AbstractUI] LibrariesPath is /home/meshmixer/Documents/meshmixer/libraries
[AbstractUI] LibrariesPath is /home/meshmixer/Documents/meshmixer/libraries
[AbstractUI] LibrariesPath is /home/meshmixer/Documents/meshmixer/libraries
[AbstractUI] LibrariesPath is /home/meshmixer/Documents/meshmixer/libraries
[AbstractUI] LibrariesPath is /home/meshmixer/Documents/meshmixer/libraries
[AbstractUI] PrintersPath is /home/meshmixer/Documents/meshmixer/printers
[AbstractUI] ModelsPath is /home/meshmixer/Documents/meshmixer/models
[Begin Log]
[Begin Log]
[Begin GA with uid = 3d90f18021f24b6e86a2bf231267cfb9]
[Begin GA with uid = 3d90f18021f24b6e86a2bf231267cfb9]
[GA manager started]
[GA manager started]
libGL error: failed to open drm device: Permission denied
libGL error: failed to load driver: i965
[Is Devel is 0 ]
[Is Devel is 0 ]
[calling ResourceManager::InitializeInMainThread]
[calling ResourceManager::InitializeInMainThread]
 [ResourceManager] [HasPBuffers: 1   HasFBOs: 0]
 [ResourceManager] [HasPBuffers: 1   HasFBOs: 0]
   [OK]
   [OK]
[Creating Main Window]
[Creating Main Window]
 [MainWindow] [Creating Menu]
 [MainWindow] [Creating Menu]
 [MainWindow] setting thread count to 7
 [MainWindow] setting thread count to 7
 [MainWindow] [Initializing Actions]
 [MainWindow] [Initializing Actions]
 [MainWindow] [Updating Action Bar]
 [MainWindow] [Updating Action Bar]
 [MainWindow] [Initializing 3D View]
 [MainWindow] [Initializing 3D View]
   [MainWindow::Initialize3DView] [Creating 3D View]
   [MainWindow::Initialize3DView] [Creating 3D View]
  [GraphicsViewScene3D] [HaveGLBlit 1   HaveGLFBO 1]
  [GraphicsViewScene3D] [HaveGLBlit 1   HaveGLFBO 1]
   [MainWindow::Initialize3DView] [Creating GraphicsView]
   [MainWindow::Initialize3DView] [Creating GraphicsView]
[GLFormat Info] version 1.0  profile NoProfile
[GLFormat Info] version 1.0  profile NoProfile
[GLFormat Info] doubleBuffer 1  depth 1:24  alpha 1:8  accum 0:-1  stencil 1:8  multisample -1:0  swapinterval -1
[GLFormat Info] doubleBuffer 1  depth 1:24  alpha 1:8  accum 0:-1  stencil 1:8  multisample -1:0  swapinterval -1
   [MainWindow::Initialize3DView] [Creating ToolHelpWidget]
   [MainWindow::Initialize3DView] [Creating ToolHelpWidget]
 [MainWindow] [Initializing Connections]
 [MainWindow] [Initializing Connections]
 [MainWindow] [Restoring Application State]
 [MainWindow] [Restoring Application State]
  [Initializing]
  [Initializing]
 [MainWindow] [Initializing the UI]
 [MainWindow] [Initializing the UI]
[RemoteStoredCommandServer::Initialize] initializing Server
[RemoteStoredCommandServer::Initialize] initializing Server
[RemoteStoredCommandServer] TCP Server: listening
[RemoteStoredCommandServer] TCP Server: listening
[RemoteStoredCommandServer] UDP Server: listening
[RemoteStoredCommandServer] UDP Server: listening
  [Showing]
  [Showing]
[System Information] Machine OS:Linux 64-bit; Graphics Card Vendor : VMware, Inc.; GLVersion : 2.1 Mesa 10.1.3; Graphics Renderer : Gallium 0.4 on llvmpipe (LLVM 3.4, 256 bits);
[System Information] Machine OS:Linux 64-bit; Graphics Card Vendor : VMware, Inc.; GLVersion : 2.1 Mesa 10.1.3; Graphics Renderer : Gallium 0.4 on llvmpipe (LLVM 3.4, 256 bits);
  [GraphicsViewScene3D::initializeGL] Creating Camera
  [GraphicsViewScene3D::initializeGL] Creating Camera
  [GraphicsViewScene3D::initializeGL] Creating Renderer
  [GraphicsViewScene3D::initializeGL] Creating Renderer
   [Renderer::InitializeShaders] Has Shader Support: 1
   [Renderer::InitializeShaders] Has Shader Support: 1
   [Shader::ValidateShade] Trying to compile shader //PHONG
   [Shader::ValidateShade] Trying to compile shader //PHONG
   [Shader Vertex Compile Log]
   [Shader Vertex Compile Log]
   [Shader Fragment Compile Log]
   [Shader Fragment Compile Log]
   [Shader LinkLog]
   [Shader LinkLog]
   [Shader::ValidateShade] Trying to compile shader //TEXTURED
   [Shader::ValidateShade] Trying to compile shader //TEXTURED
   [Shader Vertex Compile Log]
   [Shader Vertex Compile Log]
   [Shader Fragment Compile Log]
   [Shader Fragment Compile Log]
   [Shader LinkLog]
   [Shader LinkLog]
   [Shader::ValidateShade] Trying to compile shader //TEXTURED_TILED
   [Shader::ValidateShade] Trying to compile shader //TEXTURED_TILED
   [Shader Vertex Compile Log]
   [Shader Vertex Compile Log]
   [Shader Fragment Compile Log]
   [Shader Fragment Compile Log]
   [Shader LinkLog]
   [Shader LinkLog]
   [Shader::ValidateShade] Trying to compile shader //OVERHANG
   [Shader::ValidateShade] Trying to compile shader //OVERHANG
   [Shader Vertex Compile Log]
   [Shader Vertex Compile Log]
   [Shader Fragment Compile Log]
   [Shader Fragment Compile Log]
   [Shader LinkLog]
   [Shader LinkLog]
   [Shader::ValidateShade] Trying to compile shader //XRAY
   [Shader::ValidateShade] Trying to compile shader //XRAY
   [Shader Vertex Compile Log]
   [Shader Vertex Compile Log]
   [Shader Fragment Compile Log]
   [Shader Fragment Compile Log]
   [Shader LinkLog]
   [Shader LinkLog]
   [Shader::ValidateShade] Trying to compile shader //UVCHECKER
   [Shader::ValidateShade] Trying to compile shader //UVCHECKER
   [Shader Vertex Compile Log]
   [Shader Vertex Compile Log]
   [Shader Fragment Compile Log]
   [Shader Fragment Compile Log]
   [Shader LinkLog]
   [Shader LinkLog]
   [Shader::ValidateShade] Trying to compile shader //IMAGELIGHT
   [Shader::ValidateShade] Trying to compile shader //IMAGELIGHT
   [Shader Vertex Compile Log]
   [Shader Vertex Compile Log]
   [Shader Fragment Compile Log]
   [Shader Fragment Compile Log]
   [Shader LinkLog]
   [Shader LinkLog]
   [Renderer::InitializeShaders] All shaders compiled! Generating default images...
   [Renderer::InitializeShaders] All shaders compiled! Generating default images...
    [Renderer::InitializeShaders] completed
    [Renderer::InitializeShaders] completed
  [GraphicsViewScene3D::initializeGL] Initializing OpenGL State
  [GraphicsViewScene3D::initializeGL] Initializing OpenGL State
     [GraphicsViewScene3D::initializeGL] done SetupState()
     [GraphicsViewScene3D::initializeGL] done SetupState()
     [GraphicsViewScene3D::initializeGL] done configuring Advanced OpenGL
     [GraphicsViewScene3D::initializeGL] done configuring Advanced OpenGL
  [GraphicsViewScene3D::initializeFrameCache] Trying to create FBO with type CombinedDepthStencil...
  [GraphicsViewScene3D::initializeFrameCache] Trying to create FBO with type CombinedDepthStencil...
  [GraphicsViewScene3D::initializeFrameCache] framebuffer created.
  [GraphicsViewScene3D::initializeFrameCache] framebuffer created.
  [GraphicsViewScene3D::initializeFrameCache] Trying to create FBO with type CombinedDepthStencil...
  [GraphicsViewScene3D::initializeFrameCache] Trying to create FBO with type CombinedDepthStencil...
  [GraphicsViewScene3D::initializeFrameCache] framebuffer created.
  [GraphicsViewScene3D::initializeFrameCache] framebuffer created.
[Setting up global event filter]
[Setting up global event filter]
[Checking for AutoSave]
[Checking for AutoSave]
QGraphicsProxyWidget::setWidget: cannot embed widget 0x565bca0 which is not a toplevel widget, and is not a child of an embedded widget
[Checking if user has set analytics preferences]
[Checking if user has set analytics preferences]
[Config::StoreConfig] storing config to /home/meshmixer/.config/Autodesk/meshmixer.ini
[Calling Application.exec()]
[Calling Application.exec()]
[gaManager] creating NAM
[gaManager] creating NAM
[gaManager] setting up first message
[gaManager] setting up first message
[gaManager] posting...
[gaManager] posting...
[gaManager] success!
[gaManager] success!
[gaManager::onEventQueueUpdated] got return code 503, message
[gaManager::onEventQueueUpdated] got return code 503, message
  [LiveAnalysisThread] Thread Starting...
  [LiveAnalysisThread] Thread Starting...
[AbstractUI] ModelsPath is /home/meshmixer/Documents/meshmixer/models
[OpenGLManager::RequestFreezeRenderLoop] m_bFreezeRenderLoop = true (thread 0x7ff5dd1337c0)
[OpenGLManager::RequestFreezeRenderLoop] saved context
[GraphicsViewScene3D::drawBackground] render loop frozen
[gaManager::onEventQueueUpdated] got return code 503, message
[gaManager::onEventQueueUpdated] got return code 503, message
  [AutoSaveWriterThread] Thread Starting...
  [AutoSaveWriterThread] Thread Starting...
[OpenGLManager::UnfreezeRenderLoop] m_bFreezeRenderLoop = false  (thread 0x7ff5dd1337c0)
[OpenGLManager::UnfreezeRenderLoop] restored context
[Config::StoreConfig] storing config to /home/meshmixer/.config/Autodesk/meshmixer.ini
[ActionHistory] Pushed Action Node: [Scene - Selection Changed]  (0 kb)
/entrypoint.sh: line 2:     7 Segmentation fault      (core dumped) meshmixer
frank@computer:~$

hugoviejo

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Meshmixer running on all modern Linux distributions
« Reply #2 on: March 24, 2017, 04:54:10 AM »
Hi Frankv

Yes, you can edit the meshmixer.sh to point to your existing directory, but there is a small mistake in your path (a missing slash after HOME reference)

Code: [Select]
-v ~/frank/3DPrint:/home/meshmixer/3DPrint
I don't know what will be the problem with the crash that you get when opening your existing models.
There are many possible problems that fit this error, including problems with the graphic card drivers included in the container image, some incompatibility of the models generated with the new version, etc.

I've only tried loading downloaded models from thingiverse and 123D.

I will improve the image if the MM support team gives us any clue about what may be happening.

greetings

chrikle

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: Meshmixer running on all modern Linux distributions
« Reply #3 on: March 29, 2017, 11:31:13 AM »
Hi,

Thanks for the docker package!
It works almost -;)

I think I have an issue with my NVIDIA Graphic card. I got the following error message (see attachment).
I found a deb for Ubuntu 16.04 (64 bit) on https://github.com/NVIDIA/nvidia-docker/releases.
But that package didn't have any effect.
I found a lot of confusing informations in the Internet of installing NVIDIA in docker.
Can anybody explain to my how I can get that work. Do I have to install or add a package into the docker environment of Meshmixer?

I have no experience with docker. Please help me. It would be really nice to get Meshmixer work on my system!

Thanks in advance!
Ray