Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot open tensorflow2-lite-custom(/usr/lib/nnstreamer/filters/libnnstreamer_filter_tensorflow2-lite-custom.so) #4268

Open
wooksong opened this issue Sep 22, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@wooksong
Copy link
Member

$ nnstreamer-check
NNStreamer version: 2.4.0
           loaded : TRUE
           path   : /usr/lib/x86_64-linux-gnu/gstreamer-1.0/libnnstreamer.so

NNStreamer configuration:
============================================================
Configuration Loaded: TRUE
Configuration file path: /etc/nnstreamer.ini
    Candidates: envvar(NNSTREAMER_CONF): (null)
                build-config: /etc/nnstreamer.ini
                hard-coded: /etc/nnstreamer.ini
[Common]
  Enable envvar: TRUE
  Enable sym-linked subplugins: TRUE
[Filter]
  Filter paths from .ini: /usr/lib/nnstreamer/filters/
             from envvar: (null)
         from hard-coded: /usr/lib/nnstreamer/filters/

============================================================

** (nnstreamer-check:249927): CRITICAL **: 16:34:15.803: Cannot open tensorflow2-lite-custom(/usr/lib/nnstreamer/filters/libnnstreamer_filter_tensorflow2-lite-custom.so) with error libtensorflow2-lite-custom.so: cannot open shared object file: No such file or directory.

NNStreamer registered sub-plugins:
============================================================

[Filter]
  cpp
    - No custom property found
  tensorflow2-lite
    - NumThreads: Number of threads. Set 0 for default behaviors.
    - Delegate: TF-Lite delegation options: {'NNAPI', 'GPU', 'XNNPACK', 'External'}. Do not specify to disable delegation.
    - ExtDelegateLib: Path to external delegate shared library
    - ExtDelegateKeyVal: key/values pairs optional parameters for delegate. Format ExtDelegateKeyVal=key1#value1;key2#value2...

[Decoder]
  direct_video
    - No custom property found
  pose_estimation
    - No custom property found
  bounding_boxes
    - No custom property found
  image_labeling
    - No custom property found
  octet_stream
    - No custom property found
  tensor_region
    - No custom property found
  image_segment
    - No custom property found

[Conterver]

[Trainer]

============================================================
$ ldd /usr/lib/nnstreamer/filters/libnnstreamer_filter_tensorflow2-lite-custom.so
	linux-vdso.so.1 (0x00007ffe8e172000)
	libnnstreamer-single.so => /lib/x86_64-linux-gnu/libnnstreamer-single.so (0x00007f9de2105000)
	**libtensorflow2-lite-custom.so => not found**
	libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007f9de1fcb000)
	libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f9de1c00000)
	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f9de1fab000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f9de1800000)
	libgmodule-2.0.so.0 => /lib/x86_64-linux-gnu/libgmodule-2.0.so.0 (0x00007f9de1fa2000)
	libgobject-2.0.so.0 => /lib/x86_64-linux-gnu/libgobject-2.0.so.0 (0x00007f9de1f42000)
	libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f9de1ecc000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f9de1b19000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f9de214f000)
	libffi.so.8 => /lib/x86_64-linux-gnu/libffi.so.8 (0x00007f9de1ebd000)

$ LD_PRELOAD=./build/ext/nnstreamer/tensor_filter/libtensorflow2-lite-custom.so nnstreamer-check
nnstreamer-check: symbol lookup error: ./build/ext/nnstreamer/tensor_filter/libtensorflow2-lite-custom.so: undefined symbol: _ZTVN10__cxxabiv117__class_type_infoE
@taos-ci
Copy link
Collaborator

taos-ci commented Sep 22, 2023

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

@myungjoo
Copy link
Member

Yes.. custom tf-lite loading mechanism has some glitches and requires fixes.

@myungjoo myungjoo added the bug Something isn't working label Oct 16, 2023
@myungjoo myungjoo added this to the NNStreamer 24 PoC milestone Oct 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants