Fedora 37 Evince:
evince-43.1-1.fc37.x86_64
Attempting to open https://edocs-public.dot.state.mn.us/edocs_public/DMResultSet/download?docId=222590 (also attached) throws the "Overflow while rendering document." error. It's a large document for sure. The PDF version also doesn't render the first page, but throws no errors on the console.
Seems like the error is coming from tiff-document.c:
rowstride = cairo_format_stride_for_width (CAIRO_FORMAT_RGB24, width);
if (rowstride / 4 != width) {
g_warning("Overflow while rendering document.");
/* overflow, or cairo was changed in an unsupported way */
return NULL;
}
if (height >= INT_MAX / rowstride) {
g_warning("Overflow while rendering document.");
/* overflow */
return NULL;
}
Link to original bug (#692892)
Because g_prefix_error (error, "%s", "my prefix"); is just really ugly, and everything else has a _literal(), so g_prefix_error() told me it was kinda lonely.