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

traceplot: Fix divide by zero crash #238

Merged
merged 1 commit into from
Jul 30, 2024
Merged

Conversation

jdemel
Copy link
Contributor

@jdemel jdemel commented Jul 30, 2024

Very small files would cause inspectrum to crash with a SIGFPE. In the end, this is caused by input that let's samplesPerColumn == 0. Make sure this value is at least 1 and it doesn't crash anymore.

I tested it with all the derived plots. Generate a file as described in #223 and open derived plots. Potentially you need to resize the window to make it crash.

Fixes #223

Very small files would cause inspectrum to crash with a SIGFPE. In the
end, this is caused by input that let's `samplesPerColumn == 0`. Make
sure this value is at least `1` and it doesn't crash anymore.

Signed-off-by: Johannes Demel <[email protected]>
@miek miek merged commit c6f4ecf into miek:main Jul 30, 2024
3 checks passed
@miek
Copy link
Owner

miek commented Jul 30, 2024

Thanks!

@jdemel jdemel deleted the fix-small-file-crash branch August 5, 2024 12:23
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.

Inspectrum crashes in viewing small files
2 participants