# Troubleshooting

### Memory management

Too many images in the processing queue might cause out-of-memory error and terminate the SDK without error. Calling `get_result` will remove the image from the queue and thus reduce the memory consumption.

### Multiprocessing

In certain cases, e.g. using Cloud instances, the machine might become unresponsive, if more compute resources are used than specified. Each of [Architecture](/sdk/architecture.md#plugins) have their own way to configure multiprocessing.

For ONNX CPU plugin, you can [set the number of intra and outer threads](https://github.com/celantur/SDKExample/blob/main/inference_tinkering.cpp).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc.celantur.com/sdk/troubleshooting.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
