Skip to content

Visual bug of pawn continuing to render after being captured en passant #19465

@radioactivejackal1414

Description

@radioactivejackal1414

Exact URL of where the bug happened

https://lichess.org/XC2nac8PEQhO

Steps to reproduce the bug

This occurred in a practice game with Stockfish (linked).

  1. Play Move white's g-pawn up two square (51. g4+ in-game).
  2. Black captures the g-pawn en passant from h4 (51. ...hxg3)
  3. Premove recapture with white king (52. Kxg3)
  4. The white pawn that was captured on g4 does not disappear, probably due to the premove.

While I've tried many different setups, I could not replicate the issue. The bug appeared to be purely visual. Though a white pawn was displayed on g4, I was able to move my white king on top of it and that removed it from being rendered, as intended. It's also difficult to replicate as Stockfish is non-deterministic and plays different moves if I try to replay the game from the same position.

What did you expect to happen?

The white pawn on g4 should stop being rendered after being captured by h4 en passant and immediately (premove) recaptured by the white king.

What happened instead?

The pawn continued to render.

Operating system

MacOS 26.2 (25C56)

Browser and version (or alternate access method)

Firefox Browser 147.0.4 (aarch64)

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions