Skip to content

bevy_color's operations are not stable across all hardware due to use of trigonometric float methods #15236

@BenjaminBrienen

Description

@BenjaminBrienen

Bevy version

Commit 87afa98

[Optional] Relevant system information

DxDiag.txt

Lenovo Thinkbook Pro Gen 3
Razer Core X Chroma with an RTX 2060
Samsung Odyssey Neo G9 54"

What you did

Ran cargo run -p ci -- test

What went wrong

---- oklcha::tests::test_to_from_srgba_2 stdout ----
thread 'oklcha::tests::test_to_from_srgba_2' panicked at crates\bevy_color\src\oklcha.rs:415:13:
gray: Oklcha { lightness: 0.5981808, chroma: 2.3841858e-7, hue: 0.0, alpha: 1.0 } != Oklcha { lightness: 0.5981807, chroma: 9.424322e-8, hue: 18.434948, alpha: 1.0 }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

failures:
oklcha::tests::test_to_from_srgba_2

Additional information

This is not on main. It is on https://github.com/BenjaminBrienen/bevy/tree/rename-add-to-enqueue

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-ColorColor spaces and color mathA-MathFundamental domain-agnostic mathematical operationsC-BugAn unexpected or incorrect behaviorC-Machine-SpecificThis bug is isolated to specific hardware or driver configurationsD-StraightforwardSimple bug fixes and API improvements, docs, test and examplesS-Ready-For-ImplementationThis issue is ready for an implementation PR. Go for it!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions