Skip to content

Fix saveGif crash when duration <= 0#8711

Open
Trnk7 wants to merge 1 commit intoprocessing:mainfrom
Trnk7:fix_saveGif_issue
Open

Fix saveGif crash when duration <= 0#8711
Trnk7 wants to merge 1 commit intoprocessing:mainfrom
Trnk7:fix_saveGif_issue

Conversation

@Trnk7
Copy link
Copy Markdown

@Trnk7 Trnk7 commented Apr 7, 2026

Fixes #8710

Problem

Calling saveGif() with duration <= 0 results in zero frames being captured.
Later, the code assumes frames exist and crashes during palette generation.

Solution

Added validation to ensure duration must be greater than 0.

Result

Prevents runtime crash and provides clear feedback for invalid input.

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.

saveGif() crashes when duration <= 0 (empty frame list path)

1 participant