Skip to content

traceplot: Fix divide by zero crash#238

Merged
miek merged 1 commit intomiek:mainfrom
jdemel:fix-small-file-crash
Jul 30, 2024
Merged

traceplot: Fix divide by zero crash#238
miek merged 1 commit intomiek:mainfrom
jdemel:fix-small-file-crash

Conversation

@jdemel
Copy link
Copy Markdown
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 <johannes.demel@dedrone.com>
@miek miek merged commit c6f4ecf into miek:main Jul 30, 2024
@miek
Copy link
Copy Markdown
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