Skip to content

[Bug] AssertionError in multithread context #2010

@Jasha10

Description

@Jasha10

I ran into an AssertionError using Hydra with python's threading library.

In theory, Hydra is not thread safe. However, we should be able to support using Hydra in a multithread application if Hydra is only used from one thread.

Here is the relevant part of the traceback:

An error occurred during Hydra's exception formatting:
AssertionError()
Traceback (most recent call last):
  File "/home/jasha10/miniconda3/envs/pysc/lib/python3.9/site-packages/hydra/_internal/utils.py", line 252, in run_and_report
    assert mdl is not None
AssertionError

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions