Skip to content

Log GLFW errors once instead of panicking - #307

Merged
catilac merged 1 commit into
processing:mainfrom
catilac:glfw-error-logging
Dec 2, 2026
Merged

catilac merged 1 commit into
processing:mainfrom
catilac:glfw-error-logging

Conversation

@catilac

@catilac catilac commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Recoverable GLFW errors, such as a display going away when the laptop lid closes, used to panic and crash the sketch. They are now logged once each instead.

Recoverable GLFW errors (e.g. a closed-lid display) no longer crash the sketch.
@catilac
catilac requested a review from tychedelia December 1, 2026 05:33

@tychedelia tychedelia left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it might make more sense to debounce these errors rather than swallow them after they display once, but I agree that crashing is the wrong decision!

@catilac

catilac commented Dec 2, 2026

Copy link
Copy Markdown
Contributor Author

ohhh good point @tychedelia! I will update this PR, let's just do it the right way

@catilac

catilac commented Dec 2, 2026

Copy link
Copy Markdown
Contributor Author

@tychedelia actually I'm going to do a follow on PR for a debouncer that we can use for our errors

@catilac
catilac merged commit 14fe47e into processing:main Dec 2, 2026
5 checks passed
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.

2 participants