New camera, Pentax K-1 Mark II
Good "guess" I think! Commenting out just the zoom_to_scale() line seems to fix it.
My apologies for overlooking the "contribute" page on the ufraw website until now....
Hey ho ... just noticed the patch in ticket 316. Applied and tested in the standalone...
Pentax K-3 ii support