> ## Documentation Index
> Fetch the complete documentation index at: https://wb-21fd5541-docs-1917.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Why does my process hang when using Hydra with W&B?

If your process hangs when started with Hydra, this is likely caused by a multiprocessing conflict between Hydra and W\&B.

To fix this, change W\&B's multiprocessing protocol to `"thread"`. You can do this in one of two ways:

**Option 1**: Pass a settings parameter to `wandb.init()`:

```python theme={null}
wandb.init(settings=wandb.Settings(start_method="thread"))
```

**Option 2**: Set a global environment variable:

```bash theme={null}
export WANDB_START_METHOD=thread
```

For more information, see the [Hydra integration guide](/models/integrations/hydra/) and [Distributed training troubleshooting](/models/track/log/distributed-training/).

***

<Badge stroke shape="pill" color="orange" size="md">[Experiments](/support/models/tags/experiments)</Badge><Badge stroke shape="pill" color="orange" size="md">[Run Crashes](/support/models/tags/run-crashes)</Badge>
