Skip to content

Big PGN imports crash LiGround #296

@henrileonard

Description

@henrileonard

Description

When trying to import big PGN files, for example Abdussatorov's matches.

Likely Cause

Every game is parsed immediately on the UI thread via ffish.readGamePGN; large/messy PGNs (bad SAN, missing Variant/FEN) throw “invalid sanMove” and heavy synchronous parsing can freeze/crash. Currently there is a 30-game-cap in place.

Possible Fixes

move parsing to a worker or parse in small chunks; lazy-parse (only when a game is opened); validate Variant/FEN and skip/flag bad games instead of dying; keep/import cap configurable with clear error counts.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions