Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wxGUI: fix wxAssertionError when opening tools from console #2934

Merged
merged 1 commit into from
Apr 25, 2023

Conversation

petrasovaa
Copy link
Contributor

Since d657c9a sometimes when a tool is opened from GUI console a wxAssertionError appears:

wx._core
.
wxAssertionError
:
C++ assertion "nNew != dynamicEvents.size()" failed at /home
/wxpy/wxPython-4.2.0/ext/wxWidgets/src/common/event.cpp(1930
) in SearchDynamicEventTable():
The above exception was the direct cause of the following
exception:
SystemError
:
<class 'wx._core.ChildFocusEvent'> returned a result with an
error set

I don't fully understand why that happens, but I don't think there is anything wrong in our code. Writing the hint after the OnKillFocus event is resolved seems to fix the problem.

@petrasovaa petrasovaa added the GUI wxGUI related label Apr 24, 2023
@petrasovaa petrasovaa added this to the 8.3.0 milestone Apr 24, 2023
@petrasovaa petrasovaa merged commit 3dbca81 into OSGeo:main Apr 25, 2023
21 checks passed
@petrasovaa petrasovaa deleted the fix-gui-assertion-prompt branch April 25, 2023 13:48
neteler pushed a commit to nilason/grass that referenced this pull request Nov 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GUI wxGUI related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant