This minimal criminal seems to give wrong output. I want to make sure that the hairpin lasts for exactly one quaver (1/8 note). The first line gives a warning message that the hairpin is too short. The second line adjusts the length of the hairpin but it's now too long.
To try it out you may need to modify the number of notes depending on the paper size.