Crash with attachment after upgrading from CBL 1.4 to 2.6

That behavior is pretty much expected – once a document is purged, a replicator won’t pull it from the server unless its checkpoint is reset. The first time you recover the doc, it’s a new replicator that starts with an empty checkpoint. The second time, you’d need to reset the checkpoint explicitly.