We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
[Support]: Frigate crashes on ARM64 after upgrade to beta 8
### Describe the problem you are having

On ARM64 machine, frigate crashes while trying to start go2rtc.
Looking for the "ELF load command alignment not page-aligned" error, I found this: https://github.com/numpy/numpy/issues/16677

I assume the problem is related to ARM64 and the 64K page size of the "Red Hat Enterprise Linux release 8.7 (Ootpa)" operating system.

```
$ python3 -c 'import os; print(os.sysconf("SC_PAGESIZE"))'
65536
```

### Version

0.12.0 Beta 8

### Frigate config file

```yaml
mqtt:
  host: mqtt

cameras:
  entrance:
    ffmpeg:
      inputs:
        - path: rtsp://**REDACTED**
          roles:
            - detect
            - rtmp
            - record
    detect:
      width: 2688
      height: 1520
      fps: 5
    mqtt:
      timestamp: False
      bounding_box: False
      crop: True
      quality: 100
      height: 1520

record:
  enabled: True
  events:
    retain:
      default: 5
```


### Relevant log output

```shell
[INFO] Starting go2rtc...
2023-02-15 14:19:19.142580863  14:19:19.142 INF go2rtc version 1.1.2 linux/arm64
2023-02-15 14:19:19.142706423  14:19:19.142 INF [api] listen addr=:1984
2023-02-15 14:19:19.142896941  14:19:19.142 INF [rtsp] listen addr=:8554
2023-02-15 14:19:19.143039420  14:19:19.143 INF [srtp] listen addr=:8443
2023-02-15 14:19:19.143322578  14:19:19.143 INF [webrtc] listen addr=:8555
2023-02-15 14:19:19.555985825  Traceback (most recent call last):
2023-02-15 14:19:19.556016824    File "/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main
2023-02-15 14:19:19.556044824      return _run_code(code, main_globals, None,
2023-02-15 14:19:19.556045944    File "/usr/lib/python3.9/runpy.py", line 87, in _run_code
2023-02-15 14:19:19.556083464      exec(code, run_globals)
2023-02-15 14:19:19.556084664    File "/opt/frigate/frigate/__main__.py", line 9, in <module>
2023-02-15 14:19:19.556140984      from frigate.app import FrigateApp
2023-02-15 14:19:19.556142424    File "/opt/frigate/frigate/app.py", line 17, in <module>
2023-02-15 14:19:19.556202983      from frigate.comms.dispatcher import Communicator, Dispatcher
2023-02-15 14:19:19.556205023    File "/opt/frigate/frigate/comms/dispatcher.py", line 9, in <module>
2023-02-15 14:19:19.556227943      from frigate.config import FrigateConfig
2023-02-15 14:19:19.556268703    File "/opt/frigate/frigate/config.py", line 36, in <module>
2023-02-15 14:19:19.556269863      from frigate.detectors import (
2023-02-15 14:19:19.556270783    File "/opt/frigate/frigate/detectors/__init__.py", line 9, in <module>
2023-02-15 14:19:19.556287783      from .detector_types import DetectorTypeEnum, api_types, DetectorConfig
2023-02-15 14:19:19.556289223    File "/opt/frigate/frigate/detectors/detector_types.py", line 16, in <module>
2023-02-15 14:19:19.556353022      plugin_modules = [
2023-02-15 14:19:19.556354502    File "/opt/frigate/frigate/detectors/detector_types.py", line 17, in <listcomp>
2023-02-15 14:19:19.556355142      importlib.import_module(name)
2023-02-15 14:19:19.556356102    File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module
2023-02-15 14:19:19.556364622      return _bootstrap._gcd_import(name[level:], package, level)
2023-02-15 14:19:19.556368702    File "/opt/frigate/frigate/detectors/plugins/openvino.py", line 3, in <module>
2023-02-15 14:19:19.556395182      import openvino.runtime as ov
2023-02-15 14:19:19.556396862    File "/usr/local/lib/python3.9/dist-packages/openvino/runtime/__init__.py", line 20, in <module>
2023-02-15 14:19:19.556431222      from openvino.pyopenvino import Dimension
2023-02-15 14:19:19.556440942  ImportError: /usr/local/lib/python3.9/dist-packages/openvino/pyopenvino.cpython-39-aarch64-linux-gnu.so: ELF load command alignment not page-aligned
Service Frigate exited with code 1 (by signal 0)
```


### FFprobe output from your camera

```shell
N/A
```


### Frigate stats

_No response_

### Operating system

Other Linux

### Install method

Docker Compose

### Coral version

CPU (no coral)

### Network connection

Wired

### Camera make and model

Hikvision

### Any other information that may be helpful

_No response_

--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `frigate/detectors/detector_types.py`
Content:
```
1 import logging
2 import importlib
3 import pkgutil
4 from typing import Union
5 from typing_extensions import Annotated
6 from enum import Enum
7 from pydantic import Field
8 
9 from . import plugins
10 from .detection_api import DetectionApi
11 from .detector_config import BaseDetectorConfig
12 
13 
14 logger = logging.getLogger(__name__)
15 
16 plugin_modules = [
17     importlib.import_module(name)
18     for finder, name, ispkg in pkgutil.iter_modules(
19         plugins.__path__, plugins.__name__ + "."
20     )
21 ]
22 
23 api_types = {det.type_key: det for det in DetectionApi.__subclasses__()}
24 
25 
26 class StrEnum(str, Enum):
27     pass
28 
29 
30 DetectorTypeEnum = StrEnum("DetectorTypeEnum", {k: k for k in api_types})
31 
32 DetectorConfig = Annotated[
33     Union[tuple(BaseDetectorConfig.__subclasses__())],
34     Field(discriminator="type"),
35 ]
36
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/frigate/detectors/detector_types.py b/frigate/detectors/detector_types.py
--- a/frigate/detectors/detector_types.py
+++ b/frigate/detectors/detector_types.py
@@ -13,12 +13,19 @@
 
 logger = logging.getLogger(__name__)
 
-plugin_modules = [
-    importlib.import_module(name)
-    for finder, name, ispkg in pkgutil.iter_modules(
-        plugins.__path__, plugins.__name__ + "."
-    )
-]
+
+_included_modules = pkgutil.iter_modules(plugins.__path__, plugins.__name__ + ".")
+
+plugin_modules = []
+
+for _, name, _ in _included_modules:
+    try:
+        # currently openvino may fail when importing
+        # on an arm device with 64 KiB page size.
+        plugin_modules.append(importlib.import_module(name))
+    except ImportError as e:
+        logger.error(f"Error importing detector runtime: {e}")
+
 
 api_types = {det.type_key: det for det in DetectionApi.__subclasses__()}

{"golden_diff": "diff --git a/frigate/detectors/detector_types.py b/frigate/detectors/detector_types.py\n--- a/frigate/detectors/detector_types.py\n+++ b/frigate/detectors/detector_types.py\n@@ -13,12 +13,19 @@\n \n logger = logging.getLogger(__name__)\n \n-plugin_modules = [\n-    importlib.import_module(name)\n-    for finder, name, ispkg in pkgutil.iter_modules(\n-        plugins.__path__, plugins.__name__ + \".\"\n-    )\n-]\n+\n+_included_modules = pkgutil.iter_modules(plugins.__path__, plugins.__name__ + \".\")\n+\n+plugin_modules = []\n+\n+for _, name, _ in _included_modules:\n+    try:\n+        # currently openvino may fail when importing\n+        # on an arm device with 64 KiB page size.\n+        plugin_modules.append(importlib.import_module(name))\n+    except ImportError as e:\n+        logger.error(f\"Error importing detector runtime: {e}\")\n+\n \n api_types = {det.type_key: det for det in DetectionApi.__subclasses__()}\n", "issue": "[Support]: Frigate crashes on ARM64 after upgrade to beta 8\n### Describe the problem you are having\r\n\r\nOn ARM64 machine, frigate crashes while trying to start go2rtc.\r\nLooking for the \"ELF load command alignment not page-aligned\" error, I found this: https://github.com/numpy/numpy/issues/16677\r\n\r\nI assume the problem is related to ARM64 and the 64K page size of the \"Red Hat Enterprise Linux release 8.7 (Ootpa)\" operating system.\r\n\r\n```\r\n$ python3 -c 'import os; print(os.sysconf(\"SC_PAGESIZE\"))'\r\n65536\r\n```\r\n\r\n### Version\r\n\r\n0.12.0 Beta 8\r\n\r\n### Frigate config file\r\n\r\n```yaml\r\nmqtt:\r\n  host: mqtt\r\n\r\ncameras:\r\n  entrance:\r\n    ffmpeg:\r\n      inputs:\r\n        - path: rtsp://**REDACTED**\r\n          roles:\r\n            - detect\r\n            - rtmp\r\n            - record\r\n    detect:\r\n      width: 2688\r\n      height: 1520\r\n      fps: 5\r\n    mqtt:\r\n      timestamp: False\r\n      bounding_box: False\r\n      crop: True\r\n      quality: 100\r\n      height: 1520\r\n\r\nrecord:\r\n  enabled: True\r\n  events:\r\n    retain:\r\n      default: 5\r\n```\r\n\r\n\r\n### Relevant log output\r\n\r\n```shell\r\n[INFO] Starting go2rtc...\r\n2023-02-15 14:19:19.142580863  14:19:19.142 INF go2rtc version 1.1.2 linux/arm64\r\n2023-02-15 14:19:19.142706423  14:19:19.142 INF [api] listen addr=:1984\r\n2023-02-15 14:19:19.142896941  14:19:19.142 INF [rtsp] listen addr=:8554\r\n2023-02-15 14:19:19.143039420  14:19:19.143 INF [srtp] listen addr=:8443\r\n2023-02-15 14:19:19.143322578  14:19:19.143 INF [webrtc] listen addr=:8555\r\n2023-02-15 14:19:19.555985825  Traceback (most recent call last):\r\n2023-02-15 14:19:19.556016824    File \"/usr/lib/python3.9/runpy.py\", line 197, in _run_module_as_main\r\n2023-02-15 14:19:19.556044824      return _run_code(code, main_globals, None,\r\n2023-02-15 14:19:19.556045944    File \"/usr/lib/python3.9/runpy.py\", line 87, in _run_code\r\n2023-02-15 14:19:19.556083464      exec(code, run_globals)\r\n2023-02-15 14:19:19.556084664    File \"/opt/frigate/frigate/__main__.py\", line 9, in <module>\r\n2023-02-15 14:19:19.556140984      from frigate.app import FrigateApp\r\n2023-02-15 14:19:19.556142424    File \"/opt/frigate/frigate/app.py\", line 17, in <module>\r\n2023-02-15 14:19:19.556202983      from frigate.comms.dispatcher import Communicator, Dispatcher\r\n2023-02-15 14:19:19.556205023    File \"/opt/frigate/frigate/comms/dispatcher.py\", line 9, in <module>\r\n2023-02-15 14:19:19.556227943      from frigate.config import FrigateConfig\r\n2023-02-15 14:19:19.556268703    File \"/opt/frigate/frigate/config.py\", line 36, in <module>\r\n2023-02-15 14:19:19.556269863      from frigate.detectors import (\r\n2023-02-15 14:19:19.556270783    File \"/opt/frigate/frigate/detectors/__init__.py\", line 9, in <module>\r\n2023-02-15 14:19:19.556287783      from .detector_types import DetectorTypeEnum, api_types, DetectorConfig\r\n2023-02-15 14:19:19.556289223    File \"/opt/frigate/frigate/detectors/detector_types.py\", line 16, in <module>\r\n2023-02-15 14:19:19.556353022      plugin_modules = [\r\n2023-02-15 14:19:19.556354502    File \"/opt/frigate/frigate/detectors/detector_types.py\", line 17, in <listcomp>\r\n2023-02-15 14:19:19.556355142      importlib.import_module(name)\r\n2023-02-15 14:19:19.556356102    File \"/usr/lib/python3.9/importlib/__init__.py\", line 127, in import_module\r\n2023-02-15 14:19:19.556364622      return _bootstrap._gcd_import(name[level:], package, level)\r\n2023-02-15 14:19:19.556368702    File \"/opt/frigate/frigate/detectors/plugins/openvino.py\", line 3, in <module>\r\n2023-02-15 14:19:19.556395182      import openvino.runtime as ov\r\n2023-02-15 14:19:19.556396862    File \"/usr/local/lib/python3.9/dist-packages/openvino/runtime/__init__.py\", line 20, in <module>\r\n2023-02-15 14:19:19.556431222      from openvino.pyopenvino import Dimension\r\n2023-02-15 14:19:19.556440942  ImportError: /usr/local/lib/python3.9/dist-packages/openvino/pyopenvino.cpython-39-aarch64-linux-gnu.so: ELF load command alignment not page-aligned\r\nService Frigate exited with code 1 (by signal 0)\r\n```\r\n\r\n\r\n### FFprobe output from your camera\r\n\r\n```shell\r\nN/A\r\n```\r\n\r\n\r\n### Frigate stats\r\n\r\n_No response_\r\n\r\n### Operating system\r\n\r\nOther Linux\r\n\r\n### Install method\r\n\r\nDocker Compose\r\n\r\n### Coral version\r\n\r\nCPU (no coral)\r\n\r\n### Network connection\r\n\r\nWired\r\n\r\n### Camera make and model\r\n\r\nHikvision\r\n\r\n### Any other information that may be helpful\r\n\r\n_No response_\n", "before_files": [{"content": "import logging\nimport importlib\nimport pkgutil\nfrom typing import Union\nfrom typing_extensions import Annotated\nfrom enum import Enum\nfrom pydantic import Field\n\nfrom . import plugins\nfrom .detection_api import DetectionApi\nfrom .detector_config import BaseDetectorConfig\n\n\nlogger = logging.getLogger(__name__)\n\nplugin_modules = [\n    importlib.import_module(name)\n    for finder, name, ispkg in pkgutil.iter_modules(\n        plugins.__path__, plugins.__name__ + \".\"\n    )\n]\n\napi_types = {det.type_key: det for det in DetectionApi.__subclasses__()}\n\n\nclass StrEnum(str, Enum):\n    pass\n\n\nDetectorTypeEnum = StrEnum(\"DetectorTypeEnum\", {k: k for k in api_types})\n\nDetectorConfig = Annotated[\n    Union[tuple(BaseDetectorConfig.__subclasses__())],\n    Field(discriminator=\"type\"),\n]\n", "path": "frigate/detectors/detector_types.py"}], "after_files": [{"content": "import logging\nimport importlib\nimport pkgutil\nfrom typing import Union\nfrom typing_extensions import Annotated\nfrom enum import Enum\nfrom pydantic import Field\n\nfrom . import plugins\nfrom .detection_api import DetectionApi\nfrom .detector_config import BaseDetectorConfig\n\n\nlogger = logging.getLogger(__name__)\n\n\n_included_modules = pkgutil.iter_modules(plugins.__path__, plugins.__name__ + \".\")\n\nplugin_modules = []\n\nfor _, name, _ in _included_modules:\n    try:\n        # currently openvino may fail when importing\n        # on an arm device with 64 KiB page size.\n        plugin_modules.append(importlib.import_module(name))\n    except ImportError as e:\n        logger.error(f\"Error importing detector runtime: {e}\")\n\n\napi_types = {det.type_key: det for det in DetectionApi.__subclasses__()}\n\n\nclass StrEnum(str, Enum):\n    pass\n\n\nDetectorTypeEnum = StrEnum(\"DetectorTypeEnum\", {k: k for k in api_types})\n\nDetectorConfig = Annotated[\n    Union[tuple(BaseDetectorConfig.__subclasses__())],\n    Field(discriminator=\"type\"),\n]\n", "path": "frigate/detectors/detector_types.py"}]}