nnstreamer / nnstreamer

:twisted_rightwards_arrows: Neural Network (NN) Streamer, Stream Processing Paradigm for Neural Network Apps/Devices.
https://nnstreamer.ai
GNU Lesser General Public License v2.1
683 stars 171 forks source link

Fail to build docker #4464

Closed liuhao-97 closed 3 weeks ago

liuhao-97 commented 1 month ago

Hello team, I am following this link to build the docker and I met the following problem. Could you pls help me with that? Thanks!

(unittest_tensor_region:3569): GStreamer-WARNING **: 11:13:35.145: External plugin loader failed. This most likely means that the plugin loader helper binary was not found or could not be run. You might need to set the GST_PLUGIN_SCANNER environment variable if your setup is unusual. This should normally not be required though.

(unittest_tensor_region:3569): GStreamer-WARNING **: 11:13:35.193: Failed to load plugin '/home/nns/nnstreamer/build/ext/nnstreamer/tensor_filter/libnnstreamer_filter_tensorflow2-lite-custom.so': libtensorflow2-lite-custom.so: cannot open shared object file: No such file or directory
[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
[----------] 1 test from tensorDecoder
[ RUN      ] tensorDecoder.tensorRegion
[libprotobuf ERROR google/protobuf/descriptor_database.cc:642] File already exists in database: nnstreamer.proto
[libprotobuf FATAL google/protobuf/descriptor.cc:1984] CHECK failed: GeneratedDatabase()->Add(encoded_file_descriptor, size):
unknown file: Failure
C++ exception with description "CHECK failed: GeneratedDatabase()->Add(encoded_file_descriptor, size): " thrown in the test body.
[  FAILED  ] tensorDecoder.tensorRegion (5 ms)
[----------] 1 test from tensorDecoder (5 ms total)

[----------] Global test environment tear-down
[==========] 1 test from 1 test suite ran. (5 ms total)
[  PASSED  ] 0 tests.
[  FAILED  ] 1 test, listed below:
[  FAILED  ] tensorDecoder.tensorRegion

 1 FAILED TEST
~/nnstreamer
make[1]: *** [debian/rules:65: override_dh_auto_test] Error 1
make[1]: Leaving directory '/home/nns/nnstreamer'
make: *** [debian/rules:38: build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
debuild: fatal error at line 1182:
dpkg-buildpackage -us -uc -ui failed
The command '/bin/bash -c sed -i "s|run_unittests_binaries.sh|run_unittests_binaries.sh -k unittest_mqtt|g" ./debian/rules &&     debuild -us -uc' returned a non-zero code: 29
taos-ci commented 1 month ago

:octocat: cibot: Thank you for posting issue #4464. The person in charge will reply soon.

myungjoo commented 1 month ago

https://github.com/nnstreamer/nnstreamer/actions/runs/9217386682/job/25359275633?pr=4473 (with script of https://github.com/nnstreamer/nnstreamer/actions/runs/9217386682/workflow?pr=4473 ) build docker without errors in a clean Ubuntu 22.04 machine.

Please check your build environment.

myungjoo commented 1 month ago

It appears that you are not running docker in the supposed systems (running in HEAD of nnstreamer.git on a clean x64 Ubuntu machine). Please elaborate how to reproduce the result. I've been running docker build w/ nnstreamer's script daily, and there is no errors.

myungjoo commented 3 weeks ago

https://github.com/nnstreamer/nnstreamer/actions/workflows/docker.yml

shows that the docker-build has been successful for every daily build.

The daily built docker image can be found at https://hub.docker.com/repository/docker/nnstreamer/nnstreamer/general