ert icon indicating copy to clipboard operation
ert copied to clipboard

Closing Ert GUI gives RuntimeError: GUILogHandler has been deleted in terminal

Open larsevj opened this issue 8 months ago • 1 comments

Describe the bug When closing the Ert GUI on macos14 arm with python3.12 you get the following error in the terminal:

Exception ignored in atexit callback: <function shutdown at 0x10435c0e0>
Traceback (most recent call last):
  File "/opt/homebrew/Cellar/[email protected]/3.12.4/Frameworks/Python.framework/Versions/3.12/lib/python3.12/logging/__init__.py", line 2263, in shutdown
    if getattr(h, 'flushOnClose', True):
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: wrapped C/C++ object of type GUILogHandler has been deleted

Does not seem to happen with python3.11, but as we run our workflow tests with python3.12 this should be looked into.

To reproduce Steps to reproduce the behaviour:

  1. pip install ert
  2. ert gui my_config.ert
  3. Close the ert gui

Expected behaviour Should not get this error, and investigate why this happens.

Environment

  • OS: macos14 (arm)
  • ERT/Komodo release: main and (ert 10.1.11)
  • Python version: 3.12
  • Remote/HPC execution involved: [no]

larsevj avatar Jun 19 '24 09:06 larsevj