Skip to content

Disable native asserts on recoverable errors#29

Merged
glopesdev merged 1 commit into
bonsai-rx:mainfrom
glopesdev:disable-recoverable-error-asserts
May 4, 2026
Merged

Disable native asserts on recoverable errors#29
glopesdev merged 1 commit into
bonsai-rx:mainfrom
glopesdev:disable-recoverable-error-asserts

Conversation

@glopesdev
Copy link
Copy Markdown
Member

Configure the ImGui IO at context creation to disable the native assertion dialog for recoverable user errors and surface them as red tooltips on the offending widget instead. This prevents the dialog cascade that otherwise occurs when a property edit triggers an assertion every frame.

The configuration follows the recommendation from HexaEngine/Hexa.NET.ImGui#35. Errors that are not classified as recoverable still trigger native dialogs, and operators rely on defensive validation to turn them into regular exceptions.

Configure the ImGui IO at context creation to disable the native
assertion dialog for recoverable user errors and surface them as
red tooltips on the offending widget instead. This prevents the
dialog cascade that otherwise occurs when a property edit
triggers an assertion every frame.

The configuration follows the recommendation from Hexa.NET.ImGui
issue bonsai-rx#35. Errors that are not classified as recoverable still
trigger native dialogs, and operators rely on defensive validation to
turn them into regular exceptions.
@glopesdev glopesdev added the fix Pull request that fixes an issue label May 4, 2026
@glopesdev glopesdev merged commit 4e2c178 into bonsai-rx:main May 4, 2026
10 checks passed
@glopesdev glopesdev deleted the disable-recoverable-error-asserts branch May 4, 2026 10:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix Pull request that fixes an issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant