Skip to content

[#906] Fix wxAssertionError on Visual Whitepoint Editor close - #907

Merged
eoyilmaz merged 2 commits into
developfrom
906-wx-visual-whitepoint-editor-close-crash
Jul 20, 2026
Merged

[#906] Fix wxAssertionError on Visual Whitepoint Editor close#907
eoyilmaz merged 2 commits into
developfrom
906-wx-visual-whitepoint-editor-close-crash

Conversation

@eoyilmaz

@eoyilmaz eoyilmaz commented Jul 20, 2026

Copy link
Copy Markdown
Owner

Summary

  • VisualWhitepointEditor creates an AuiManagerLRDocking which pushes itself as an event handler onto the managed frame/children
  • OnCloseWindow() never called self._mgr.UnInit(), so the pushed handler was still attached when the windows were destroyed, tripping wxWidgets' GetEventHandler() == this assertion during app exit
  • Call self._mgr.UnInit() in OnCloseWindow() (guarded, since self._mgr only exists when not patterngenerator) before event.Skip()
  • Bumped version to 3.10.0.dev60

Found while manually verifying the fix for #899. Fixes #906

Test plan

  • Verified the file parses (ast.parse)
  • Manually float/dock the panel, then close the Visual Whitepoint Editor (wx build) and confirm no wxAssertionError on exit

eoyilmaz added 2 commits July 20, 2026 23:40
…mp version to 3.10.0.dev60

`AuiManagerLRDocking` pushes itself as an event handler onto the
managed frame and its children. `OnCloseWindow()` never called
`self._mgr.UnInit()` to remove it, so wxWidgets asserted
`GetEventHandler() == this` and crashed during app teardown when the
editor window was destroyed.
@eoyilmaz
eoyilmaz force-pushed the 906-wx-visual-whitepoint-editor-close-crash branch from 32bfc94 to 4fb8261 Compare July 20, 2026 22:40
@eoyilmaz
eoyilmaz merged commit eeeff9e into develop Jul 20, 2026
13 of 15 checks passed
@eoyilmaz
eoyilmaz deleted the 906-wx-visual-whitepoint-editor-close-crash branch July 20, 2026 22:41
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.

Visual whitepoint editor: closing the window crashes with wxAssertionError (AuiManager.UnInit never called)

1 participant