Skip to content

Fix #2638 - Studio: export image dialog crashes on open after an oversized image size is entered - #2639

Merged
akenmorris merged 1 commit into
masterfrom
amorris/2638-large-export
Aug 25, 2026
Merged

Fix #2638 - Studio: export image dialog crashes on open after an oversized image size is entered#2639
akenmorris merged 1 commit into
masterfrom
amorris/2638-large-export

Conversation

@akenmorris

Copy link
Copy Markdown
Contributor

An export size past GL_MAX_RENDERBUFFER_SIZE aborted Studio from inside Apple's GL-on-Metal layer, and because the size was saved before it was rendered, the dialog restored it and died again on every subsequent open. export_to_pixmap now queries the hardware limit and renders anything larger as tiles stitched by vtkWindowToImageFilter, and the size is stored only once a render has survived it.

Along the way: vtk_image_to_qimage no longer overflows its int index past two gigapixels, the preview renders capped instead of at full export size, the progress bar actually paints, and oversized values clamp to a budget explained in the dialog. Export is now the default button, the size fields follow the override checkbox, and there are view-multiple presets.

…sized image size is entered

An export size past GL_MAX_RENDERBUFFER_SIZE aborted Studio from
inside Apple's GL-on-Metal layer, and because the size was saved
before it was rendered, the dialog restored it and died again on every
subsequent open. export_to_pixmap now queries the hardware limit and
renders anything larger as tiles stitched by vtkWindowToImageFilter,
and the size is stored only once a render has survived it.

Along the way: vtk_image_to_qimage no longer overflows its int index
past two gigapixels, the preview renders capped instead of at full
export size, the progress bar actually paints, and oversized values
clamp to a budget explained in the dialog. Export is now the default
button, the size fields follow the override checkbox, and there are
view-multiple presets.
@akenmorris
akenmorris merged commit 0e5f3dd into master Aug 25, 2026
5 checks passed
@akenmorris
akenmorris deleted the amorris/2638-large-export branch August 25, 2026 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant