Large cubic causes crash during flattening
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 4.3k
- Forks
- 300
- Avg merge
- 2d 13h
- Merged PRs (30d)
- 61
Description
Test:
```rs
#[test]
fn large_cubic() {
let mut path = BezPath::new();
path.move_to((-2.1351245891339424e19, -3.976870325297853e18));
path.curve_to((-2.1351245891339424e19, -3.976870325297879e18), (-2.1350093033635213e19, -3.9766555947095035e1), (-2.1348670911586615e19, -3.9763907111049165e1));
path.close_path();
fill(
Level::try_detect().unwrap_or(Level::fallback()),
path,
Affine::IDENTITY,
&mut vec![],
&mut FlattenCtx::default()
);
}
```
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by turning the issue's large_cubic example into a runnable regression test and trace the call through fill, BezPath::curve_to, and FlattenCtx. Reproduce the crash with the provided coordinates, then identify the flattening failure and verify that the test completes without crashing while existing flattening tests still pass.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- computer-graphics
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100