marcomusy / vedo

A python module for scientific analysis of 3D data based on VTK and Numpy
https://vedo.embl.es
MIT License
1.98k stars 257 forks source link

Abrupt termination when calling plotter.show #1021

Closed kirilllzaitsev closed 5 months ago

kirilllzaitsev commented 5 months ago

I'm using vedo version 2023.4.6 and the following code works on my local machine:

plotter.show(
                pointcloud,
                legend,
                **{'at': 0, 'axes': {'c': 'black', 'xyShift': 0.5, 'numberOfDivisions': 10}, 'title': 'train/sample', 'camera': {'position': (...)}, 'interactive': False, 'resetcam': True, 'elevation': -10}
            )

The problem appears when I'm running vedo on a remote machine (without display access). The following message is displayed in the console and the application gets shutdown:

/opt/miniconda3/lib/python3.10/multiprocessing/resource_tracker.py:224: UserWarning: resource_tracker: There appear to be 1 leaked semaphore objects to clean up at shutdown
  warnings.warn('resource_tracker: There appear to be %d '
marcomusy commented 5 months ago

Hi I suggest to upgrade your version! Then check out https://vedo.embl.es/docs/vedo.html#running-on-a-server

kirilllzaitsev commented 5 months ago

Thanks a lot, I missed the /etc/rc.local part of the server instructions. Worked like a charm in my 2023.4.6 version