无法在无头虚拟环境中运行meshlabserver过滤器

时间:2018-04-12 14:49:09

标签: meshlab

我使用sudo apt-get install meshlab

在debian 9.4上安装了meshlab

首先尝试在过滤器列表中转储

sudo xvfb-run -a -s "-screen 0 800x600x24" meshlabserver -d filters

它以此日志失败

Loading Plugins:
Current Plugins Dir is: /usr/lib/meshlab/plugins 
Error in XMLFile: filter_measure.xml - line: -1, column: -1 - 
Error in XMLFile: filter_mutualinfo.xml - line: -1, column: -1 - 
Total 227 filtering actions
Total 13 io plugins
called here! 
Segmentation fault (core dumped)

并且在尝试运行过滤器时

sudo xvfb-run -a -s "-screen 0 800x600x24" meshlabserver -i original.obj -s /usr/lib/meshlab/plugins/filter_measure.xml

它失败并显示此日志

script /usr/lib/meshlab/plugins/filter_measure.xml
Loading Plugins:
Current Plugins Dir is: /usr/lib/meshlab/plugins 
Error in XMLFile: filter_measure.xml - line: -1, column: -1 - 
Error in XMLFile: filter_mutualinfo.xml - line: -1, column: -1 - 
Total 227 filtering actions
Total 13 io plugins
Opening a file with extention obj
Mesh original.obj loaded has 22296 vn 7432 fn
Apply FilterScript: '/usr/lib/meshlab/plugins/filter_measure.xml'
Failure in parsing script /usr/lib/meshlab/plugins/filter_measure.xml
No root node with name FilterScript
Current rootname is MESHLAB_FILTER_INTERFACE

我做错了什么?

1 个答案:

答案 0 :(得分:1)

看起来尝试在无头模式下运行meshlabserver是一个很长的...看到这里的评论:"有一些过滤器使用[一个OpenGL]渲染上下文& GPU(例如环境遮挡),作为可批量操作所需。这就是为什么我们必须在MeshLabServer的初始化中包含渲染上下文。我们没有官员'解决方法。"

(资料来源:https://github.com/cnr-isti-vclab/meshlab/issues/78

我认为你最好的机会是使用X来运行它,而不是试图让它在无头模式下运行xvfb-run ...