Closed k0a1a closed 3 years ago
I think below code had fixed this issue. https://github.com/homuler/MediaPipeUnityPlugin/blob/master/docker/linux/x86_64/Dockerfile#L9
Will you pull the latest commit and try again?
Hi, thanks for the reply. I just attempted another Docker build on Ubuntu 20.10, with the same results. Below are the contents of Player.log:
Mono path[0] = '/home/unity/MediaPipeUnityPlugin/demo_Data/Managed'
Mono config path = '/home/unity/MediaPipeUnityPlugin/demo_Data/MonoBleedingEdge/etc'
Unable to preload the following plugins:
libmediapipe_c.so
libopencv_calib3d.so
libopencv_core.so
libopencv_features2d.so
libopencv_highgui.so
libopencv_imgcodecs.so
libopencv_imgproc.so
libopencv_video.so
libopencv_videoio.so
Display 0 'PL2280H 22"': 1920x1080 (primary device).
Display 1 'PL2280H 22"': 1920x1080 (secondary device).
Plugins: Couldn't open /home/unity/MediaPipeUnityPlugin/demo_Data/Plugins/libopencv_videoio.so, error: libopencv_imgcodecs.so.3.4: cannot open shared object file: No such file or directory
(Filename: Line: 331)
Plugins: Couldn't open /home/unity/MediaPipeUnityPlugin/demo_Data/Plugins/libopencv_core.so, error: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by /media/danja/33Tb/unity/MediaPipeUnityPlugin/demo_Data/Plugins/libopencv_core.so)
(Filename: Line: 331)
Plugins: Couldn't open /home/unity/MediaPipeUnityPlugin/demo_Data/Plugins/libopencv_features2d.so, error: libopencv_imgproc.so.3.4: cannot open shared object file: No such file or directory
(Filename: Line: 331)
Plugins: Couldn't open /home/unity/MediaPipeUnityPlugin/demo_Data/Plugins/libopencv_calib3d.so, error: libopencv_imgproc.so.3.4: cannot open shared object file: No such file or directory
(Filename: Line: 331)
Plugins: Couldn't open /home/unity/MediaPipeUnityPlugin/demo_Data/Plugins/libopencv_highgui.so, error: libopencv_imgproc.so.3.4: cannot open shared object file: No such file or directory
(Filename: Line: 331)
Plugins: Couldn't open /home/unity/MediaPipeUnityPlugin/demo_Data/Plugins/libopencv_video.so, error: libopencv_imgproc.so.3.4: cannot open shared object file: No such file or directory
(Filename: Line: 331)
Plugins: Couldn't open /home/unity/MediaPipeUnityPlugin/demo_Data/Plugins/libopencv_imgcodecs.so, error: libopencv_imgproc.so.3.4: cannot open shared object file: No such file or directory
(Filename: Line: 331)
Plugins: Couldn't open /home/unity/MediaPipeUnityPlugin/demo_Data/Plugins/libopencv_imgproc.so, error: libopencv_core.so.3.4: cannot open shared object file: No such file or directory
(Filename: Line: 331)
Plugins: Couldn't open /home/unity/MediaPipeUnityPlugin/demo_Data/Plugins/libopencv_videoio.so, error: libopencv_imgcodecs.so.3.4: cannot open shared object file: No such file or directory
(Filename: Line: 331)
Plugins: Couldn't open /home/unity/MediaPipeUnityPlugin/demo_Data/Plugins/libopencv_core.so, error: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by /media/danja/33Tb/unity/MediaPipeUnityPlugin/demo_Data/Plugins/libopencv_core.so)
(Filename: Line: 331)
Plugins: Couldn't open /home/unity/MediaPipeUnityPlugin/demo_Data/Plugins/libopencv_features2d.so, error: libopencv_imgproc.so.3.4: cannot open shared object file: No such file or directory
(Filename: Line: 331)
Plugins: Couldn't open /home/unity/MediaPipeUnityPlugin/demo_Data/Plugins/libopencv_calib3d.so, error: libopencv_imgproc.so.3.4: cannot open shared object file: No such file or directory
(Filename: Line: 331)
Plugins: Couldn't open /home/unity/MediaPipeUnityPlugin/demo_Data/Plugins/libopencv_highgui.so, error: libopencv_imgproc.so.3.4: cannot open shared object file: No such file or directory
(Filename: Line: 331)
Plugins: Couldn't open /home/unity/MediaPipeUnityPlugin/demo_Data/Plugins/libopencv_video.so, error: libopencv_imgproc.so.3.4: cannot open shared object file: No such file or directory
(Filename: Line: 331)
Plugins: Couldn't open /home/unity/MediaPipeUnityPlugin/demo_Data/Plugins/libopencv_imgcodecs.so, error: libopencv_imgproc.so.3.4: cannot open shared object file: No such file or directory
(Filename: Line: 331)
Plugins: Couldn't open /home/unity/MediaPipeUnityPlugin/demo_Data/Plugins/libopencv_imgproc.so, error: libopencv_core.so.3.4: cannot open shared object file: No such file or directory
(Filename: Line: 331)
Plugins: Couldn't open /home/unity/MediaPipeUnityPlugin/demo_Data/Plugins/libopencv_videoio.so, error: libopencv_imgcodecs.so.3.4: cannot open shared object file: No such file or directory
(Filename: Line: 331)
Plugins: Couldn't open /home/unity/MediaPipeUnityPlugin/demo_Data/Plugins/libopencv_core.so, error: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by /media/danja/33Tb/unity/MediaPipeUnityPlugin/demo_Data/Plugins/libopencv_core.so)
(Filename: Line: 331)
Plugins: Couldn't open /home/unity/MediaPipeUnityPlugin/demo_Data/Plugins/libopencv_features2d.so, error: libopencv_imgproc.so.3.4: cannot open shared object file: No such file or directory
(Filename: Line: 331)
Plugins: Couldn't open /home/unity/MediaPipeUnityPlugin/demo_Data/Plugins/libopencv_calib3d.so, error: libopencv_imgproc.so.3.4: cannot open shared object file: No such file or directory
(Filename: Line: 331)
Plugins: Couldn't open /home/unity/MediaPipeUnityPlugin/demo_Data/Plugins/libopencv_highgui.so, error: libopencv_imgproc.so.3.4: cannot open shared object file: No such file or directory
(Filename: Line: 331)
Plugins: Couldn't open /home/unity/MediaPipeUnityPlugin/demo_Data/Plugins/libopencv_video.so, error: libopencv_imgproc.so.3.4: cannot open shared object file: No such file or directory
(Filename: Line: 331)
Plugins: Couldn't open /home/unity/MediaPipeUnityPlugin/demo_Data/Plugins/libmediapipe_c.so, error: libopencv_calib3d.so.3.4: cannot open shared object file: No such file or directory
(Filename: Line: 331)
Plugins: Couldn't open /home/unity/MediaPipeUnityPlugin/demo_Data/Plugins/libopencv_imgcodecs.so, error: libopencv_imgproc.so.3.4: cannot open shared object file: No such file or directory
(Filename: Line: 331)
Plugins: Couldn't open /home/unity/MediaPipeUnityPlugin/demo_Data/Plugins/libopencv_imgproc.so, error: libopencv_core.so.3.4: cannot open shared object file: No such file or directory
(Filename: Line: 331)
Desktop is 1920 x 1080 @ 60 Hz
[Vulkan init] extensions: count=18
[Vulkan init] extensions: name=VK_KHR_device_group_creation, enabled=0
[Vulkan init] extensions: name=VK_KHR_display, enabled=1
[Vulkan init] extensions: name=VK_KHR_external_fence_capabilities, enabled=0
[Vulkan init] extensions: name=VK_KHR_external_memory_capabilities, enabled=0
[Vulkan init] extensions: name=VK_KHR_external_semaphore_capabilities, enabled=0
[Vulkan init] extensions: name=VK_KHR_get_display_properties2, enabled=0
[Vulkan init] extensions: name=VK_KHR_get_physical_device_properties2, enabled=0
[Vulkan init] extensions: name=VK_KHR_get_surface_capabilities2, enabled=0
[Vulkan init] extensions: name=VK_KHR_surface, enabled=1
[Vulkan init] extensions: name=VK_KHR_surface_protected_capabilities, enabled=0
[Vulkan init] extensions: name=VK_KHR_xcb_surface, enabled=0
[Vulkan init] extensions: name=VK_KHR_xlib_surface, enabled=1
[Vulkan init] extensions: name=VK_EXT_acquire_xlib_display, enabled=0
[Vulkan init] extensions: name=VK_EXT_debug_report, enabled=0
[Vulkan init] extensions: name=VK_EXT_debug_utils, enabled=0
[Vulkan init] extensions: name=VK_EXT_direct_mode_display, enabled=0
[Vulkan init] extensions: name=VK_EXT_display_surface_counter, enabled=0
[Vulkan init] extensions: name=VK_KHR_wayland_surface, enabled=1
Vulkan detection: 2
Initialize engine version: 2019.4.24f1 (5da6f0345e82)
[Subsystems] Discovering subsystems at path /home/unity/MediaPipeUnityPlugin/demo_Data/UnitySubsystems
GfxDevice: creating device client; threaded=1
[Vulkan init] extensions: count=18
[Vulkan init] extensions: name=VK_KHR_device_group_creation, enabled=0
[Vulkan init] extensions: name=VK_KHR_display, enabled=1
[Vulkan init] extensions: name=VK_KHR_external_fence_capabilities, enabled=0
[Vulkan init] extensions: name=VK_KHR_external_memory_capabilities, enabled=0
[Vulkan init] extensions: name=VK_KHR_external_semaphore_capabilities, enabled=0
[Vulkan init] extensions: name=VK_KHR_get_display_properties2, enabled=0
[Vulkan init] extensions: name=VK_KHR_get_physical_device_properties2, enabled=0
[Vulkan init] extensions: name=VK_KHR_get_surface_capabilities2, enabled=0
[Vulkan init] extensions: name=VK_KHR_surface, enabled=1
[Vulkan init] extensions: name=VK_KHR_surface_protected_capabilities, enabled=0
[Vulkan init] extensions: name=VK_KHR_xcb_surface, enabled=0
[Vulkan init] extensions: name=VK_KHR_xlib_surface, enabled=1
[Vulkan init] extensions: name=VK_EXT_acquire_xlib_display, enabled=0
[Vulkan init] extensions: name=VK_EXT_debug_report, enabled=0
[Vulkan init] extensions: name=VK_EXT_debug_utils, enabled=0
[Vulkan init] extensions: name=VK_EXT_direct_mode_display, enabled=0
[Vulkan init] extensions: name=VK_EXT_display_surface_counter, enabled=0
[Vulkan init] extensions: name=VK_KHR_wayland_surface, enabled=1
[Vulkan init] SelectPhysicalDevice requestedDeviceIndex=-1 xrDevice=(nil)
[Vulkan init] Physical Device 0x1cb23a0 [0]: "GeForce RTX 2070 SUPER" deviceType=2 vendorID=10de deviceID=1e84
[Vulkan init] Selected physical device 0x1cb23a0
[Vulkan init] Graphics queue count=1
[Vulkan init] extensions: count=128
[Vulkan init] extensions: name=VK_KHR_16bit_storage, enabled=0
[Vulkan init] extensions: name=VK_KHR_8bit_storage, enabled=0
[Vulkan init] extensions: name=VK_KHR_bind_memory2, enabled=0
[Vulkan init] extensions: name=VK_KHR_buffer_device_address, enabled=0
[Vulkan init] extensions: name=VK_KHR_copy_commands2, enabled=0
[Vulkan init] extensions: name=VK_KHR_create_renderpass2, enabled=0
[Vulkan init] extensions: name=VK_KHR_dedicated_allocation, enabled=1
[Vulkan init] extensions: name=VK_KHR_deferred_host_operations, enabled=0
[Vulkan init] extensions: name=VK_KHR_depth_stencil_resolve, enabled=0
[Vulkan init] extensions: name=VK_KHR_descriptor_update_template, enabled=1
[Vulkan init] extensions: name=VK_KHR_device_group, enabled=0
[Vulkan init] extensions: name=VK_KHR_draw_indirect_count, enabled=0
[Vulkan init] extensions: name=VK_KHR_driver_properties, enabled=0
[Vulkan init] extensions: name=VK_KHR_external_fence, enabled=0
[Vulkan init] extensions: name=VK_KHR_external_fence_fd, enabled=0
[Vulkan init] extensions: name=VK_KHR_external_memory, enabled=0
[Vulkan init] extensions: name=VK_KHR_external_memory_fd, enabled=0
[Vulkan init] extensions: name=VK_KHR_external_semaphore, enabled=0
[Vulkan init] extensions: name=VK_KHR_external_semaphore_fd, enabled=0
[Vulkan init] extensions: name=VK_KHR_fragment_shading_rate, enabled=0
[Vulkan init] extensions: name=VK_KHR_get_memory_requirements2, enabled=1
[Vulkan init] extensions: name=VK_KHR_image_format_list, enabled=1
[Vulkan init] extensions: name=VK_KHR_imageless_framebuffer, enabled=0
[Vulkan init] extensions: name=VK_KHR_maintenance1, enabled=1
[Vulkan init] extensions: name=VK_KHR_maintenance2, enabled=1
[Vulkan init] extensions: name=VK_KHR_maintenance3, enabled=0
[Vulkan init] extensions: name=VK_KHR_multiview, enabled=1
[Vulkan init] extensions: name=VK_KHR_pipeline_executable_properties, enabled=0
[Vulkan init] extensions: name=VK_KHR_pipeline_library, enabled=0
[Vulkan init] extensions: name=VK_KHR_push_descriptor, enabled=0
[Vulkan init] extensions: name=VK_KHR_relaxed_block_layout, enabled=0
[Vulkan init] extensions: name=VK_KHR_sampler_mirror_clamp_to_edge, enabled=1
[Vulkan init] extensions: name=VK_KHR_sampler_ycbcr_conversion, enabled=0
[Vulkan init] extensions: name=VK_KHR_separate_depth_stencil_layouts, enabled=0
[Vulkan init] extensions: name=VK_KHR_shader_atomic_int64, enabled=0
[Vulkan init] extensions: name=VK_KHR_shader_clock, enabled=0
[Vulkan init] extensions: name=VK_KHR_shader_draw_parameters, enabled=0
[Vulkan init] extensions: name=VK_KHR_shader_float16_int8, enabled=0
[Vulkan init] extensions: name=VK_KHR_shader_float_controls, enabled=0
[Vulkan init] extensions: name=VK_KHR_shader_non_semantic_info, enabled=0
[Vulkan init] extensions: name=VK_KHR_shader_subgroup_extended_types, enabled=0
[Vulkan init] extensions: name=VK_KHR_shader_terminate_invocation, enabled=0
[Vulkan init] extensions: name=VK_KHR_spirv_1_4, enabled=0
[Vulkan init] extensions: name=VK_KHR_storage_buffer_storage_class, enabled=0
[Vulkan init] extensions: name=VK_KHR_swapchain, enabled=1
[Vulkan init] extensions: name=VK_KHR_swapchain_mutable_format, enabled=0
[Vulkan init] extensions: name=VK_KHR_timeline_semaphore, enabled=0
[Vulkan init] extensions: name=VK_KHR_uniform_buffer_standard_layout, enabled=0
[Vulkan init] extensions: name=VK_KHR_variable_pointers, enabled=0
[Vulkan init] extensions: name=VK_KHR_vulkan_memory_model, enabled=0
[Vulkan init] extensions: name=VK_EXT_4444_formats, enabled=0
[Vulkan init] extensions: name=VK_EXT_blend_operation_advanced, enabled=0
[Vulkan init] extensions: name=VK_EXT_buffer_device_address, enabled=0
[Vulkan init] extensions: name=VK_EXT_calibrated_timestamps, enabled=0
[Vulkan init] extensions: name=VK_EXT_conditional_rendering, enabled=0
[Vulkan init] extensions: name=VK_EXT_conservative_rasterization, enabled=0
[Vulkan init] extensions: name=VK_EXT_custom_border_color, enabled=0
[Vulkan init] extensions: name=VK_EXT_depth_clip_enable, enabled=0
[Vulkan init] extensions: name=VK_EXT_depth_range_unrestricted, enabled=0
[Vulkan init] extensions: name=VK_EXT_descriptor_indexing, enabled=0
[Vulkan init] extensions: name=VK_EXT_discard_rectangles, enabled=0
[Vulkan init] extensions: name=VK_EXT_display_control, enabled=0
[Vulkan init] extensions: name=VK_EXT_extended_dynamic_state, enabled=0
[Vulkan init] extensions: name=VK_EXT_external_memory_host, enabled=0
[Vulkan init] extensions: name=VK_EXT_fragment_shader_interlock, enabled=0
[Vulkan init] extensions: name=VK_EXT_global_priority, enabled=0
[Vulkan init] extensions: name=VK_EXT_host_query_reset, enabled=0
[Vulkan init] extensions: name=VK_EXT_image_robustness, enabled=0
[Vulkan init] extensions: name=VK_EXT_index_type_uint8, enabled=0
[Vulkan init] extensions: name=VK_EXT_inline_uniform_block, enabled=0
[Vulkan init] extensions: name=VK_EXT_line_rasterization, enabled=0
[Vulkan init] extensions: name=VK_EXT_memory_budget, enabled=0
[Vulkan init] extensions: name=VK_EXT_pci_bus_info, enabled=0
[Vulkan init] extensions: name=VK_EXT_pipeline_creation_cache_control, enabled=0
[Vulkan init] extensions: name=VK_EXT_pipeline_creation_feedback, enabled=0
[Vulkan init] extensions: name=VK_EXT_post_depth_coverage, enabled=0
[Vulkan init] extensions: name=VK_EXT_private_data, enabled=0
[Vulkan init] extensions: name=VK_EXT_robustness2, enabled=0
[Vulkan init] extensions: name=VK_EXT_sample_locations, enabled=0
[Vulkan init] extensions: name=VK_EXT_sampler_filter_minmax, enabled=0
[Vulkan init] extensions: name=VK_EXT_scalar_block_layout, enabled=0
[Vulkan init] extensions: name=VK_EXT_separate_stencil_usage, enabled=0
[Vulkan init] extensions: name=VK_EXT_shader_atomic_float, enabled=0
[Vulkan init] extensions: name=VK_EXT_shader_demote_to_helper_invocation, enabled=0
[Vulkan init] extensions: name=VK_EXT_shader_image_atomic_int64, enabled=0
[Vulkan init] extensions: name=VK_EXT_shader_subgroup_ballot, enabled=0
[Vulkan init] extensions: name=VK_EXT_shader_subgroup_vote, enabled=0
[Vulkan init] extensions: name=VK_EXT_shader_viewport_index_layer, enabled=0
[Vulkan init] extensions: name=VK_EXT_subgroup_size_control, enabled=0
[Vulkan init] extensions: name=VK_EXT_texel_buffer_alignment, enabled=0
[Vulkan init] extensions: name=VK_EXT_tooling_info, enabled=0
[Vulkan init] extensions: name=VK_EXT_transform_feedback, enabled=0
[Vulkan init] extensions: name=VK_EXT_vertex_attribute_divisor, enabled=0
[Vulkan init] extensions: name=VK_EXT_ycbcr_image_arrays, enabled=0
[Vulkan init] extensions: name=VK_NV_clip_space_w_scaling, enabled=0
[Vulkan init] extensions: name=VK_NV_compute_shader_derivatives, enabled=0
[Vulkan init] extensions: name=VK_NV_cooperative_matrix, enabled=0
[Vulkan init] extensions: name=VK_NV_corner_sampled_image, enabled=0
[Vulkan init] extensions: name=VK_NV_coverage_reduction_mode, enabled=0
[Vulkan init] extensions: name=VK_NV_cuda_kernel_launch, enabled=0
[Vulkan init] extensions: name=VK_NV_dedicated_allocation, enabled=0
[Vulkan init] extensions: name=VK_NV_dedicated_allocation_image_aliasing, enabled=0
[Vulkan init] extensions: name=VK_NV_device_diagnostic_checkpoints, enabled=0
[Vulkan init] extensions: name=VK_NV_device_diagnostics_config, enabled=0
[Vulkan init] extensions: name=VK_NV_device_generated_commands, enabled=0
[Vulkan init] extensions: name=VK_NV_fill_rectangle, enabled=0
[Vulkan init] extensions: name=VK_NV_fragment_coverage_to_color, enabled=0
[Vulkan init] extensions: name=VK_NV_fragment_shader_barycentric, enabled=0
[Vulkan init] extensions: name=VK_NV_fragment_shading_rate_enums, enabled=0
[Vulkan init] extensions: name=VK_NV_framebuffer_mixed_samples, enabled=0
[Vulkan init] extensions: name=VK_NV_geometry_shader_passthrough, enabled=0
[Vulkan init] extensions: name=VK_NV_mesh_shader, enabled=0
[Vulkan init] extensions: name=VK_NV_ray_tracing, enabled=0
[Vulkan init] extensions: name=VK_NV_representative_fragment_test, enabled=0
[Vulkan init] extensions: name=VK_NV_sample_mask_override_coverage, enabled=0
[Vulkan init] extensions: name=VK_NV_scissor_exclusive, enabled=0
[Vulkan init] extensions: name=VK_NV_shader_image_footprint, enabled=0
[Vulkan init] extensions: name=VK_NV_shader_sm_builtins, enabled=0
[Vulkan init] extensions: name=VK_NV_shader_subgroup_partitioned, enabled=0
[Vulkan init] extensions: name=VK_NV_shading_rate_image, enabled=0
[Vulkan init] extensions: name=VK_NV_viewport_array2, enabled=0
[Vulkan init] extensions: name=VK_NV_viewport_swizzle, enabled=0
[Vulkan init] extensions: name=VK_NVX_binary_import, enabled=0
[Vulkan init] extensions: name=VK_NVX_image_view_handle, enabled=0
[Vulkan init] extensions: name=VK_NVX_multiview_per_view_attributes, enabled=0
[Vulkan init] extensions: name=VK_KHR_acceleration_structure, enabled=0
[Vulkan init] extensions: name=VK_KHR_ray_query, enabled=0
[Vulkan init] extensions: name=VK_KHR_ray_tracing_pipeline, enabled=0
Vulkan API version 1.1.0 (1.2.155 supported by driver)
Vulkan vendor=[NVIDIA] id=[10de]
Vulkan renderer=[GeForce RTX 2070 SUPER] id=[1e84]
Vulkan device type 2
Vulkan driverversion=[0x7309c000] uint=[1930018816]
Vulkan PSO: Cache data successfully loaded [size=96203,path=/tmp/DefaultCompany/MediaPipeUnityPlugin/vulkan_pso_cache.bin]
Begin MonoManager ReloadAssembly
- Completed reload, in 0.065 seconds
requesting resize 1920 x 1080
Using native desktop resolution 1920 x 1080
requesting fullscreen 1920 x 1080 at 0 Hz
Desktop is 1920 x 1080 @ 60 Hz
InitializeOrResetSwapChain 1920x1080 hdr=0 samples=1
UnloadTime: 0.416740 ms
Desktop is 1920 x 1080 @ 60 Hz
Graph Changed: Face Detection
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 39)
Fallback handler could not load library /home/unity/MediaPipeUnityPlugin/demo_Data/Mono/libmediapipe_c
Fallback handler could not load library /home/unity/MediaPipeUnityPlugin/demo_Data/Mono/libmediapipe_c.so
Fallback handler could not load library /home/unity/MediaPipeUnityPlugin/demo_Data/Mono/mediapipe_c
Fallback handler could not load library /home/unity/MediaPipeUnityPlugin/demo_Data/Mono/libmediapipe_c
Fallback handler could not load library /home/unity/MediaPipeUnityPlugin/demo_Data/Mono/libmediapipe_c.so
Fallback handler could not load library /home/unity/MediaPipeUnityPlugin/demo_Data/Mono/libmediapipe_c
Fallback handler could not load library /home/unity/MediaPipeUnityPlugin/demo_Data/Mono/libmediapipe_c
Fallback handler could not load library /home/unity/MediaPipeUnityPlugin/demo_Data/Mono/libmediapipe_c.so
Fallback handler could not load library /home/unity/MediaPipeUnityPlugin/demo_Data/Mono/mediapipe_c
Fallback handler could not load library /home/unity/MediaPipeUnityPlugin/demo_Data/Mono/libmediapipe_c
Fallback handler could not load library /home/unity/MediaPipeUnityPlugin/demo_Data/Mono/libmediapipe_c.so
Fallback handler could not load library /home/unity/MediaPipeUnityPlugin/demo_Data/Mono/libmediapipe_c
DllNotFoundException: mediapipe_c
at (wrapper managed-to-native) Mediapipe.SafeNativeMethods.mp_api__ResetResourceManager(Mediapipe.ResourceManager/CacheFilePathResolver,Mediapipe.ResourceManager/ReadFileHandler)
at Mediapipe.ResourceManager..ctor () [0x00012] in <7db56a904bf04ddeb6193d2d95d114d9>:0
at Mediapipe.AssetBundleManager..ctor () [0x00000] in <7db56a904bf04ddeb6193d2d95d114d9>:0
at AssetBundleLoader.Start () [0x00000] in <d37f0f141eca4da089ed8873acf6a6cf>:0
(Filename: <7db56a904bf04ddeb6193d2d95d114d9> Line: 0)
Camera 0: USB Live camera: USB Live cam (/dev/video0)
(Filename: Line: 105)
Camera 1: USB Live camera: USB Live cam (/dev/video1)
(Filename: Line: 105)
Camera 2: USB Live camera: USB Live cam (/dev/video2)
(Filename: Line: 105)
Camera 3: USB Live camera: USB Live cam (/dev/video3)
(Filename: Line: 105)
WebCamDevice Changed: USB Live camera: USB Live cam (/dev/video0)
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 39)
WebCamTexture Graphics Format: 88
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 39)
No EGL Context Found
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 39)
Fallback handler could not load library /home/unity/MediaPipeUnityPlugin/demo_Data/Mono/libmediapipe_c
Fallback handler could not load library /home/unity/MediaPipeUnityPlugin/demo_Data/Mono/libmediapipe_c.so
Fallback handler could not load library /home/unity/MediaPipeUnityPlugin/demo_Data/Mono/mediapipe_c
Fallback handler could not load library /home/unity/MediaPipeUnityPlugin/demo_Data/Mono/libmediapipe_c
Fallback handler could not load library /home/unity/MediaPipeUnityPlugin/demo_Data/Mono/libmediapipe_c.so
Fallback handler could not load library /home/unity/MediaPipeUnityPlugin/demo_Data/Mono/libmediapipe_c
Fallback handler could not load library /home/unity/MediaPipeUnityPlugin/demo_Data/Mono/libmediapipe_c
Fallback handler could not load library /home/unity/MediaPipeUnityPlugin/demo_Data/Mono/libmediapipe_c.so
Fallback handler could not load library /home/unity/MediaPipeUnityPlugin/demo_Data/Mono/mediapipe_c
Fallback handler could not load library /home/unity/MediaPipeUnityPlugin/demo_Data/Mono/libmediapipe_c
Fallback handler could not load library /home/unity/MediaPipeUnityPlugin/demo_Data/Mono/libmediapipe_c.so
Fallback handler could not load library /home/unity/MediaPipeUnityPlugin/demo_Data/Mono/libmediapipe_c
Fallback handler could not load library /home/unity/MediaPipeUnityPlugin/demo_Data/Mono/libmediapipe_c
DllNotFoundException: mediapipe_c
at (wrapper managed-to-native) Mediapipe.UnsafeNativeMethods.mp_GpuResources_Create__Pv(intptr,intptr&)
at Mediapipe.GpuResources.Create (System.IntPtr externalContext) [0x00000] in <7db56a904bf04ddeb6193d2d95d114d9>:0
at SceneDirector.SetupGpuResources () [0x00049] in <d37f0f141eca4da089ed8873acf6a6cf>:0
at SceneDirector.StartGraph () [0x0001b] in <d37f0f141eca4da089ed8873acf6a6cf>:0
at SceneDirector.ChangeWebCamDevice (System.Nullable`1[T] webCamDevice) [0x0002c] in <d37f0f141eca4da089ed8873acf6a6cf>:0
at WebCamDeviceSelectorController.OnValueChanged (UnityEngine.UI.Dropdown dropdown) [0x00067] in <d37f0f141eca4da089ed8873acf6a6cf>:0
at WebCamDeviceSelectorController.ResetOptions (UnityEngine.WebCamDevice[] devices) [0x00044] in <d37f0f141eca4da089ed8873acf6a6cf>:0
at WebCamDeviceSelectorController+<Start>d__2.MoveNext () [0x00089] in <d37f0f141eca4da089ed8873acf6a6cf>:0
at UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) [0x00026] in <d85cd1a973b742e59899a8261fcd2847>:0
(Filename: <7db56a904bf04ddeb6193d2d95d114d9> Line: 0)
Fallback handler could not load library /home/unity/MediaPipeUnityPlugin/demo_Data/Mono/libmediapipe_c.so
Fallback handler could not load library /home/unity/MediaPipeUnityPlugin/demo_Data/Mono/mediapipe_c
Fallback handler could not load library /home/unity/MediaPipeUnityPlugin/demo_Data/Mono/libmediapipe_c
Fallback handler could not load library /home/unity/MediaPipeUnityPlugin/demo_Data/Mono/libmediapipe_c.so
Fallback handler could not load library /home/unity/MediaPipeUnityPlugin/demo_Data/Mono/libmediapipe_c
Fallback handler could not load library /home/unity/MediaPipeUnityPlugin/demo_Data/Mono/libmediapipe_c
Fallback handler could not load library /home/unity/MediaPipeUnityPlugin/demo_Data/Mono/libmediapipe_c.so
Fallback handler could not load library /home/unity/MediaPipeUnityPlugin/demo_Data/Mono/mediapipe_c
Fallback handler could not load library /home/unity/MediaPipeUnityPlugin/demo_Data/Mono/libmediapipe_c
Fallback handler could not load library /home/unity/MediaPipeUnityPlugin/demo_Data/Mono/libmediapipe_c.so
Fallback handler could not load library /home/unity/MediaPipeUnityPlugin/demo_Data/Mono/libmediapipe_c
Setting up 8 worker threads for Enlighten.
Thread -> id: 7fddba8cf640 -> priority: 1
Thread -> id: 7fddba0ce640 -> priority: 1
Thread -> id: 7fddb98cd640 -> priority: 1
Thread -> id: 7fddb90cc640 -> priority: 1
Thread -> id: 7fddb88cb640 -> priority: 1
Thread -> id: 7fdd4ffff640 -> priority: 1
Thread -> id: 7fdd4f7fe640 -> priority: 1
Thread -> id: 7fdd4effd640 -> priority: 1
NullReferenceException: Object reference not set to an instance of an object
at AssetBundleLoader.OnDestroy () [0x00000] in <d37f0f141eca4da089ed8873acf6a6cf>:0
(Filename: <d37f0f141eca4da089ed8873acf6a6cf> Line: 0)
Vulkan PSO: data extracted [new size=96203, old size=96203, incomplete=0]
Vulkan PSO: Pipeline cache has not changed skipping save handle[1cba678]
I see.
As a workaround, if you've installed OpenCV locally (that is, to the host machine), I guess libmediapipe_c.so
would work (libraries under Runtime/Plugins/OpenCV
need to be removed).
Later, I'll try if OpenCV can be built and installed as a static library.
Later, I'll try if OpenCV can be built and installed as a static library.
That would be very useful since Ubuntu's OpenCV is currently at v4.2 while Debian's OpenCV at v3.2 Having OpenCV and MediaPipe compiled statically would make life so much easier ;)
Thanks!
v0.5.3 is just released.
This version includes an option to build OpenCV from source files, and link it statically to libmediapipe_c.so
.
However, as far as libmediapipe_c.so
is built on Arch Linux using GLIBC_2.33, I guess it still won't work on Ubuntu 20.10.
So I also added Dockerfile.ubuntu, that can be used to build Ubuntu based images.
docker build -t mediapipe_unity:ubuntu . -f docker/linux/x86_64/Dockerfile.ubuntu
docker run -it --mount type=bind,src=$PWD/Packages,dst=/home/mediapipe/Packages mediapipe_unity:ubuntu
# In the container
python build.py build --desktop gpu --opencv=cmake -v
Now I close the issue. If the problem still occurs, please reopen it.
Hi,
it seems to be not possible to satisfy libmediapipe_c.so dependency on glibc-2.33 on Ubuntu/Debian Is Docker build method only good for current Arch?
My attempt at downgrading glibc to 2.28 in Dockerfile failed (understandably) due to some low-level dependencies.
Thanks!