CloudComPy icon indicating copy to clipboard operation
CloudComPy copied to clipboard

Use CloudComPy over cluster without GUI

Open xiangtaoxu opened this issue 2 years ago • 8 comments

Hi,

I am trying to set up CloudComPy over our clusters where we would like to submit jobs to run codes with CloudComPy. I am running into an qt error because we do not have a display port. See below.

QSocketNotifier: Can only be used with threads started with QThread
qt.qpa.xcb: could not connect to display
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
 
Available platform plugins are: eglfs, minimal, minimalegl, offscreen, vnc, webgl, xcb.

Is there a workaround to use CloudComPy without GUI?

THanks!

xiangtaoxu avatar Apr 26 '23 17:04 xiangtaoxu

In addition, all tests work if I ssh the cluster with a graphical session. But job submission is handled by slurm on the cluster and does not come with graphical session I believe....

xiangtaoxu avatar Apr 26 '23 20:04 xiangtaoxu

Hi, I know this problem of running code with a Qt Gui on a cluster, I've already faced it on another project. I'll have to retrieve the exact solution, but I guess it's possible to configure a virtual screen. Paul

prascle avatar Apr 27 '23 16:04 prascle

The cleanest solution would be to have a working CloudComPy completely independent of the CloudCompare GUI, but many interesting algorithms are in the CloudCompare GUI layer. If I want to build CloudComPy without using any GUI related code, I have to duplicate and adapt a lot of code. I have already done this for some algorithms, but not all.

prascle avatar Apr 27 '23 16:04 prascle

I see. We are going to test some work-around with some dummy DISPLAY configuration. Hopefully it will work

xiangtaoxu avatar Apr 27 '23 16:04 xiangtaoxu

@xiangtaoxu Hi, just wondering if you were able to find a work-around? We're trying to accomplish the same thing with our Linux AWS instances

kxd195 avatar Jun 05 '23 17:06 kxd195

We have not worked on this project for a while and have not tested a dummy display. We will come back to this in the next few weeks and will post any progress we had

Xiangtao

xiangtaoxu avatar Jun 05 '23 20:06 xiangtaoxu

@xiangtaoxu any update on a dummy display? Would really to get this working as our current workaround is ugly haha. (Setup cluster for VNC, connect via VNC, manuallly run code from GUI)

Not sure where to start with setting up the dummy display, would you be able to share what path/progress you have already taken?

Thanks in advance!

kxd195 avatar Oct 13 '23 12:10 kxd195

We are doing the same thing.... and haven't got a chance to explore dummy display yet

xiangtaoxu avatar Oct 13 '23 12:10 xiangtaoxu