Deepstack Crash | The image processing stops working without any reason
Closed this issue · 1 comments
CarpeDiemRo commented
Environment
- RPI 4B, 8GB
- NCS2
- HA core-2021.3.4
- robmarkcole/HASS-Deepstack-object Home Assistant add-on
- HA installed in Docker, Deepstack installed in Docker
- Six analogic cameras 1920x1080
Automation
- Trigger when movement and /2 seconds during movement = true
Actual results
- Unknown status is displayed instead of the value. More precisely, the target value 0 is changed to Unknown and remains like this.
- All the camera image_processing.xxx.yyy fails and shows Unknown status
What I tried
- Trigger manually all the cameras
- No effect
- sudo reboot -> the service is running again.
Logs
Logger: homeassistant.helpers.entity
Source: custom_components/deepstack_object/image_processing.py:350
First occurred: 12:40:22 PM (4781 occurrences)
Last logged: 3:31:45 PM
Update for image_processing.anna_persoane_camera_3 fails
Update for image_processing.anna_persoane_camera_5 fails
Update for image_processing.anna_persoane_camera_6 fails
Update for image_processing.anna_persoane_camera_1 fails
Update for image_processing.anna_persoane_camera_2 fails
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 277, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 473, in async_device_update
raise exc
File "/usr/src/homeassistant/homeassistant/components/image_processing/__init__.py", line 137, in async_update
await self.async_process_image(image.content)
File "/usr/src/homeassistant/homeassistant/components/image_processing/__init__.py", line 117, in async_process_image
return await self.hass.async_add_executor_job(self.process_image, image)
File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/deepstack_object/image_processing.py", line 350, in process_image
predictions = self._dsobject.detect(image)
File "/usr/local/lib/python3.8/site-packages/deepstack/core.py", line 204, in detect
return response["predictions"]
KeyError: 'predictions'
OBS
I am unable to reproduce manually and I didn't identify a root cause
CarpeDiemRo commented
The issue is not reproducible anymore, therefore it should be closed.