-
Notifications
You must be signed in to change notification settings - Fork 281
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
[BUG] thread 'main' panicked at 'attempt to subtract with overflow' in polygon.rs #133
Comments
You can now trigger the bug by cloning the repo, changing the stroke_width to 2 and |
Thank you for reporting this, I believe I have this issue fixed on master branch. Could you please verify the fix and really appreciate for your help. BTW, thank you so much on working on this ventilator project at this special time :) Cheers! |
Hello, Thanks for your patch! It seems to fix the crash :) Do you think a new release is possible or should we just use the git resolver pinned to this commit for the time being? |
Sure, I am going to clean up the master branch and release a new minor release in a few days. I will let you know once I ship the next release. :) |
Awesome, thanks! |
Hello,
Describe the bug
When rendering a graph with a single serie which has a
stroke_width
of 2 (or more), I'm getting this overflow.To Reproduce
Here is the code: https://github.com/makers-for-life/makair/blob/1b4eab920f628dd060363c6061a31a6e6a4f6804/src/software/control/src/display/renderer.rs#L120
I changed the
stroke_width
to 2 on line 143.The graph is fully rendered each time (we don't use a shared ChartContext for now)
I'll let you know once you can run it to draw a graph with some sampled data to reproduce the issue with this project.
It works fines with a
line_stroke
of 1. Did I miss something somewhere?Version Information
0.2.12
The full backtrace:
Thanks for your time :)
The text was updated successfully, but these errors were encountered: