The first run crashed after COMPLETING page 2, and the checkpoint really does say 2. But the resume duplicates pages c and d. Fix the resume so it starts at the first page NOT yet done.
The break is on line 17 — but read the whole snippet first.
The first run crashed after COMPLETING page 2, and the checkpoint really does say 2. But the resume duplicates pages c and d. Fix the resume so it starts at the first page NOT yet done.