enthought / traitsui

TraitsUI: Traits-capable windowing framework
http://docs.enthought.com/traitsui
Other
297 stars 96 forks source link

Strange logs when using macOS file search with `FileEditor` #1573

Open peterzahemszky opened 3 years ago

peterzahemszky commented 3 years ago

Problem

The following lines are printed to the terminal four times when typing a character into the search box of the file dialog. Then they are printed once on each key stroke.

2021-04-06 17:08:23.077 Python[37482:558074] -[NSNull length]: unrecognized selector sent to instance 0x7fff8893e000
2021-04-06 17:08:23.077 Python[37482:558074] Exception calling directoryDidChange: on delegate <QNSOpenSavePanelDelegate: 0x7ffbca9ae6e0> exception=-[NSNull length]: unrecognized selector sent to instance 0x7fff8893e000

Note, that there's no crash and no other indication of error.

To reproduce

System information

TraitsUI 7.1.1 Traits 6.2.0 PyQt5 5.12.6 Python 3.6.13 macOS 10.15.7

Notes

A similar error is reported in some other issues, but those seem to be unrelated to FileEditor.

peterzahemszky commented 3 years ago

Actually, there are two extra lines for each window resize event as well (while the search mode is on)

rahulporuri commented 3 years ago

This seems specific to MacOS as I am unable to reproduce this on Windows.