I created a game in ChessX, saved it as PGN, and found that the game gets truncated at move 14 when I open that file again. Moves 15-18 get lost.
After some debugging, I found that the issue is caused by the variation in line 28
( 14... Kxf4 15. g3+ Kf3 16. O-O# )
When I manually change this to
( 14... Kxf4 15. g3+ Kf3 16. O-O )
the PGN can be opened. (But ChessX correctly adds the # again when saving)
I thus suspect that the PGN parser does not correctly process the O-O# part in the variation
I hope I did not break anything else now