navis-org / pymaid

Python library to interface with CATMAID servers. Fully interoperable with navis.
https://pymaid.readthedocs.io/en/latest/
GNU General Public License v3.0
24 stars 11 forks source link

Leaked Semaphore Objects when running Navis.cut_skeleton #219

Open thejordanrivers opened 2 years ago

thejordanrivers commented 2 years ago

I am using Catmaid to do some analysis on existing traced neurons and run into an issue as described below.

I am able to initiate a Catmaid instance, use pymaid.get_neuron(), navis.prune_by_strahler(), navis.prune_twigs(), and navis.despike_skeleton() without error. However, running navis.cut_skeleton() leads to the error below (path starred for privacy).

"python3(46905,0x1053ba600) malloc: error for object 0x7fb2843e3e10: pointer being freed was not allocated python3(46905,0x1053ba600) malloc: set a breakpoint in malloc_error_break to debug Abort trap: 6 /Users/*****/opt/anaconda3/envs/fafb_analysis/lib/python3.9/multiprocessing/resource_tracker.py:216: 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 "

If anyone has this error and know how to fix it, advice would be much appreicated.

schlegelp commented 2 years ago

Please see this issue on navis for a fix.