PDF issue after entering partial payment

my issue is quite simple. after i enter payment for an invoice i try to download the pdf and i get an error. it works fine when there is no payment added. However the error is caused after partial payment is entered
how do i solve this

if you are using 1.4.8, then we’re already looking into similar errors and will keep yours in mind.

Hi, I have the same problem here, but instead of a partial payment, in my case, the issue appears when I try to download a “Payed” invoice. While it is a “Draft”, there is no problem and I can download the invoice, but when I set invoice from “Draft” to “Payed”, I got this error.