enaml icon indicating copy to clipboard operation
enaml copied to clipboard

If an enaml file imports pythonnet during startup, enaml file dialogs cause application to freeze

Open jdw-creare opened this issue 5 years ago • 1 comments

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 of clr_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

conda_environment.txt

jdw-creare avatar Dec 16 '19 15:12 jdw-creare

It's probably a weird interaction between pythonnet and Qt. I'm 99% sure it's nothing to do with enaml.

sccolbert avatar Dec 16 '19 16:12 sccolbert