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.
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.