Update: added guards in staffdetection.hxx:detect to avoid segfaults on image where we don't detect any white pixel