Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check memory use in coverage before allocating for a specified scale #666

Merged
merged 1 commit into from
May 12, 2024

Conversation

rafaqz
Copy link
Owner

@rafaqz rafaqz commented May 11, 2024

Its possible to crash julia currently when calling coverage by using a large scale value (like 10000 or just 1000 if your array is big enough).

This PR checks system memory before we allocate buffers and throws some helpful errors and warnings.

If the problem comes from threaded, we switch to single threaded so save buffer memory, but warn when we do that.

Closes #661

@rafaqz rafaqz merged commit 842dc64 into main May 12, 2024
2 of 3 checks passed
@rafaqz rafaqz deleted the check_coverage_memory branch May 12, 2024 03:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

coverage should check scale before allocating larger-than-memory buffer arrays
1 participant