kimimaro icon indicating copy to clipboard operation
kimimaro copied to clipboard

Progress bar stopping with parallel

Open AlexandreDiPiazza opened this issue 2 years ago • 7 comments

Hello, I have multiple cores, but when choosing parallel = 4 or parallel = 4 to compute the skeletons, the progress bar stopped at some point. It only goes to the end when using parallel = 1.

AlexandreDiPiazza avatar Jan 29 '23 18:01 AlexandreDiPiazza

Hi Alexandre,

If you can do me a favor, I've pushed a branch wms_spawn_mp which switches the default process spawning method from fork to "spawn". Give that a try and let me know if that fixes things. Sometimes "fork" can deadlock on shared resources.

Can you also let me know your OS and Python version?

Will

william-silversmith avatar Jan 29 '23 20:01 william-silversmith

Hi, Thank you for your answer and you help. It seems to have worked on some trials, but now running on the full dataset it still stops at some points.

I am on Ubuntu and python 3.8

AlexandreDiPiazza avatar Jan 30 '23 22:01 AlexandreDiPiazza

Update:

I did work on some trials. Sometimes it still stops, but sometimes it does go until the end.

AlexandreDiPiazza avatar Feb 01 '23 19:02 AlexandreDiPiazza

Hi Alexandre,

I'm currently on vacation so I can't investigate this further right now, but this issue has bedeviled me for some time across many programs. My best guess was the fork vs spawn issue. I'm not really sure where to go from there. Maybe you can find something interesting in the dmesg log during a freeze?

On Thu, Feb 2, 2023 at 12:50 AM Alexandre Di Piazza < @.***> wrote:

Update:

I did work on some trials. Sometimes it still stops, but sometimes it does go until the end.

— Reply to this email directly, view it on GitHub https://github.com/seung-lab/kimimaro/issues/78#issuecomment-1412591048, or unsubscribe https://github.com/notifications/unsubscribe-auth/AATGQSNHXR7GJZZT2U7NML3WVKZPJANCNFSM6AAAAAAUKMPYGM . You are receiving this because you commented.Message ID: @.***>

william-silversmith avatar Feb 02 '23 04:02 william-silversmith

Hi,

Don't worry, thank you for your help. It worked some times and it was enough to provide me the results I wanted. Thanks for your work!

AlexandreDiPiazza avatar Feb 02 '23 14:02 AlexandreDiPiazza

Sorry I can't be of more assistance right now. I'm glad it worked out. One day I will figure out this bug...

On Thu, Feb 2, 2023 at 7:41 PM Alexandre Di Piazza @.***> wrote:

Hi,

Don't worry, thank you for your help. It worked some times and it was enough to provide me the results I wanted. Thanks for your work!

— Reply to this email directly, view it on GitHub https://github.com/seung-lab/kimimaro/issues/78#issuecomment-1413808331, or unsubscribe https://github.com/notifications/unsubscribe-auth/AATGQSPYTVBWSRJX7UVHVKDWVO6CZANCNFSM6AAAAAAUKMPYGM . You are receiving this because you commented.Message ID: @.***>

william-silversmith avatar Feb 02 '23 19:02 william-silversmith