Skip to content

ListEditor_demo.py crashes with wx 3.0 as backend #257

@JCorson

Description

@JCorson

Tested on OSX 10.11 with wxpython 3.0.2.0-1 and traitsui 5.0.0-1.
The program works with qt4 as the backend, but crashes using wx returning this traceback repeated numerous times.

Exception occurred in traits notification handler for object: <__main__.ListEditorDemo object at 0x10d7a6c50>, trait: play_list, old value: ['The Merchant of Venice', 'Hamlet', 'MacBeth'], new value: ['Hamlet', 'The Merchant of Venice', 'MacBeth']
Traceback (most recent call last):
  File "/Users/jcorson/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/traits/trait_notifiers.py", line 520, in _dispatch_change_event
    self.dispatch( handler, *args )
  File "/Users/jcorson/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/traits/trait_notifiers.py", line 615, in dispatch
    handler( *args )
  File "/Users/jcorson/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/traitsui/editor.py", line 366, in _update_editor
    self.update_editor()
  File "/Users/jcorson/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/traitsui/wx/list_editor.py", line 181, in update_editor
    list_pane.DestroyChildren()
  File "/Users/jcorson/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/wx/_core.py", line 9191, in DestroyChildren
    return _core_.Window_DestroyChildren(*args, **kwargs)
PyAssertionError: C++ assertion "GetEventHandler() == this" failed at /Users/vagrant/pisi-64bit/tmp/wxPython-3.0.2.0-1/work/wxPython-src-3.0.2.0/src/common/wincmn.cpp(478) in ~wxWindowBase(): any pushed event handlers must have been removed

A warning also appears with the following message:

-c Warning
iccp: known incorrect sRGB profile

CC: @RobinD42

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions