enaml
enaml copied to clipboard
If an enaml file imports pythonnet during startup, enaml file dialogs cause application to freeze
Environment:
- Anaconda 3, python 3.7
-
enaml
0.10.4, installed via conda -
pythonnet
2.4.0, installed via pip - Windows 10
Steps to reproduce:
- Download
clr_crash.enaml.txt
- Rename it to
clr_crash.enaml
(GitHub wouldn't let me upload with .enaml as the extension) - Run
enaml-run clr_crash.enaml
- Click "Open file dialog"
- Program will freeze
Interesting variant:
- Comment out
import clr
line at beginning ofclr_crash.enaml
- Run
enaml-run clr_crash.enaml
- Click "Import clr"
- Click "Open file dialog"
- Program will NOT freeze
I'm not sure if this is a pythonnet issue or an enaml issue, so I've reported the bug to both projects: https://github.com/pythonnet/pythonnet/issues/1014 clr_crash.enaml.txt
It's probably a weird interaction between pythonnet and Qt. I'm 99% sure it's nothing to do with enaml.