#80 closed defect (fixed)
ReleaseMouse wx error
| Reported by: | Tom Goddard | Owned by: | Eric Pettersen |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | Window Toolkit | Version: | |
| Keywords: | Cc: | ||
| Blocked By: | Blocking: | ||
| Notify when closed: | Platform: | all | |
| Project: | chimera |
Description
Starting Chimera 2 and repeatedly clicking in the empty graphics window produces the following error.
Traceback (most recent call last):
File "/Users/goddard/ucsf/chimera2/Chimera2.app/Contents/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/chimera/core/ui/mousemodes.py", line 32, in <lambda>
lambda e: self.dispatch_mouse_event(e, "left", "mouse_up"))
File "/Users/goddard/ucsf/chimera2/Chimera2.app/Contents/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/chimera/core/ui/mousemodes.py", line 47, in dispatch_mouse_event
self.graphics_window.opengl_canvas.ReleaseMouse()
wx._core.wxAssertionError: C++ assertion "!wxMouseCapture::stack.empty()" failed at /Users/goddard/ucsf/chimera2/build/tmp/wxPython_Phoenix-3.0.3.dev1719+62a2221/ext/wxWidgets/src/common/wincmn.cpp(3319) in ReleaseMouse(): Releasing mouse capture but capture stack empty?
Change History (4)
comment:1 by , 11 years ago
comment:2 by , 11 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Fixed. The sequence of events for a double click is:
button down-up-double-up
So, one down and two up. Who knew. Therefore I had a Release with no corresponding Capture. Fixed now.
comment:3 by , 10 years ago
| Component: | User Interface → Graphics |
|---|
comment:4 by , 10 years ago
| Component: | Graphics → Window toolkit |
|---|
Looks like wx might miss the mouse down event and then get only a mouse up event.