-
Notifications
You must be signed in to change notification settings - Fork 292
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] unsafe preconditions violated #573
Comments
Related: rust-lang/rust#123285 This is triggered by caption. My traceback for the default 3d example https://plotters-rs.github.io/book/basic/draw_3d_plots.html
|
It appears that the test suite doesnt cover this - running |
I think the bug is fixed on |
I see the same thing. |
Thank you for your response. |
I got the same error, seems like using spaces in captions or labels triggers that. Currently I'm using plotters 0.3.5 in Linux Mint. |
I have the same problem when I use the lib under docker bookworm with rust 1.78 but the problem doesn't appear on MacOS. While waiting for the patch, I've found an alternative which consists in using the SVGBackend and not the BitmapBackend. Apparently the bug is linked specifically to BitMapBackend. After all, SVG renderings are of better quality. |
This workaround worked for me, will still keep the issue open though as a reference point for the larger BitmapBackend problem. |
Looks like this bug was fixed in font-kit a year ago, servo/font-kit@787b68f |
plotters |
I'm getting the same error on |
This is fixed as of 0.3.7 |
Yaay, thank you! |
Describe the bug
I start to get this error on
build_cartesian_2d
:To Reproduce
Here's everything I have that is related to this crate:
Version Information
plotters = "0.3.5"
The text was updated successfully, but these errors were encountered: