Skip to content

contrast_curve() with nbranch > 1 crashes on long runs #729

Description

@Will-lab418

I have been running contrast_curve() on a large cube (9.21 GB, 28800 frames, 293x293 pixels) with nproc = 5 and have noticed the function crashing depending on the value of nbranch. when set to 3 the run will consistently crash whereas it usually is able to finish when set to 1.

vip_hci version: 2.1.0

Other settings used are:
sigma = 5
algo = median_sub
student = True
imlib = 'opencv'

I have kept track of the memory usage while running the function and noticed a difference depending on the value of nbranch.

When nbranch = 1, the memory will usually increase but level out after some time, and the run will usually finish after ~2-3 hours.

When nbranch = 3, the memory will not level out and will continue to slowly increase with occasional sharp spikes. The run will stop without an error message and without creating any output files, anywhere from 11-15 hours runtime.

This is on a shared machine but I've seen the same behaviour both when others were actively using it and when I was the only one running anything so I don't think it's just contention from other users.

I'm hoping that someone who is more familiar with VIP will have a better idea of what's causing this, and a potential fix. I have had nbranch = 3 complete once after ~12 hours, and have also had nbranch = 1 crash after running (but these are exceptions).

Happy to share my script for calling the function if that helps.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions