Skip to content

Container is up and running but app is crashing #3

@msolomos

Description

@msolomos

I've managed to build the image and run the container.
Everything without errors apart a msg from TensorFlow

2024-02-13 17:58:25.752759: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libcudart.so.11.0'; dlerror: libcudart.so.11.0: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /usr/local/lib/python3.8/site-packages/cv2/../../lib64:
2024-02-13 17:58:25.753679: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
2024-02-13 17:58:25.984935: E tensorflow/stream_executor/cuda/cuda_blas.cc:2981] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered
2024-02-13 17:58:29.449113: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libnvinfer.so.7'; dlerror: libnvinfer.so.7: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /usr/local/lib/python3.8/site-packages/cv2/../../lib64:
2024-02-13 17:58:29.449489: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libnvinfer_plugin.so.7'; dlerror: libnvinfer_plugin.so.7: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /usr/local/lib/python3.8/site-packages/cv2/../../lib64:
2024-02-13 17:58:29.449530: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Cannot dlopen some TensorRT libraries. If you would like to use Nvidia GPU with TensorRT, please make sure the missing libraries mentioned above are installed properly.

The problem appears when you go in front of the camera. Then the app is crashing with the following exception

INFO: Created TensorFlow Lite XNNPACK delegate for CPU.
2024-02-13 17:58:32,771 - INFO - Connected to MQTT broker
INFO: Created TensorFlow Lite XNNPACK delegate for CPU.
2024-02-13 18:01:01,967 - DEBUG - Starting new HTTP connection (1): 192.168.70.240:3000
2024-02-13 18:01:01,989 - DEBUG - http://192.168.70.240:3000 "GET /api/recognize?url=http://192.168.70.40:5000/api/frontdoor_camera2/latest.jpg&attempts=1&camera=frontdoor_camera2 HTTP/1.1" 403 136
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/requests/models.py", line 971, in json return complexjson.loads(self.text, **kwargs)
File "/usr/local/lib/python3.8/json/init.py", line 357, in loads return _default_decoder.decode(s)
File "/usr/local/lib/python3.8/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/local/lib/python3.8/json/decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/threading.py", line 932, in _bootstrap_inner self.run()
File "/usr/local/lib/python3.8/threading.py", line 870, in run self._target(*self._args, **self._kwargs)
File "/code/gesturedetection.py", line 79, in lookforhands matches = getmatches(cameraname)
File "/code/gesturedetection.py", line 39, in getmatches output = response.json()
File "/usr/local/lib/python3.8/site-packages/requests/models.py", line 975, in json raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

I would appreciate very much some help to solve it and make it work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions