linebender / linebender/tiny-skia

path_geometry::tests::find_cubic_max_curvature_1 fails on i686 (no SSE)

Open
#62 20 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
1.6k
Forks
99
Avg merge
2h 52m
Merged PRs (30d)
1

Description

thread 'path_geometry::tests::find_cubic_max_curvature_1' panicked at 'assertion failed: `(left == right)`
  left: `[NormalizedF32(FiniteF32(0.0)), NormalizedF32(FiniteF32(0.50000006)), NormalizedF32(FiniteF32(1.0))]`,
 right: `[NormalizedF32(FiniteF32(0.0)), NormalizedF32(FiniteF32(0.5)), NormalizedF32(FiniteF32(1.0))]`', path/src/path_geometry.rs:892:9

Encountered in Debian's build of 0.8.2. Also reproduces in 4983d289384e719d1890e07173cbe497b8b2f953.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with path/src/path_geometry.rs:892 and the path_geometry::tests::find_cubic_max_curvature_1 test. Reproduce the assertion on i686 without SSE and compare the observed 0.50000006 value with the expected 0.5. Done means the test passes reliably on that target without masking the cubic curvature behavior.

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
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.