Got this bug report from EncryptPad port user on FreeBSD:
Steps to reproduce.
Run encryptpad.
Type some text.
Save to a file with a password.
Exit program.
Re-run encryptpad.
Open the file you just saved.
Enter password.
Program keeps prompting for password.
Fails to open the document just saved.
The issue is reproducible on master and v0.4.0.4 on FreeBSD 11.2 amd64 and Arch amd64, encryptpad was built with --use-system-libs.