j20001970 / GDMP

Godot plugin for MediaPipe framework and solutions
MIT License
66 stars 13 forks source link

Unable to run the GDMP Demo Project in godot 4.2.2.stable #49

Open vimalkumar010 opened 2 months ago

vimalkumar010 commented 2 months ago

Hi, I am new to Godot and i am trying to run the GDMP Demo project. I have added the addons folder (v0.4) in the root folder, and enabled the GDMP plugin but i am facing the errors as shown below.

        I am unsure why the MediaPipeFaceDetector and relevants Mediapipe dependencies is not resolving.

Screenshot from 2024-08-24 15-51-30

Screenshot from 2024-08-24 15-53-02

Operating System: Ubuntu 22.04

Thanks

j20001970 commented 2 months ago

Hi, can you try running Godot editor in terminal, then open the demo project to see what the error output look like? Most likely it's due to missing library dependencies such as OpenCV.

vimalkumar010 commented 2 months ago

hi... Below is the output i receive when i run Godot Editor using terminal.

vimals@ThinkPad-T480s:~/Downloads$ ./Godot_v4.2.2-stable_linux.x86_64 -e /home/vimals/GodotProjects/GDMP-demo/project/project.godot

================================================================ handle_crash: Program crashed with signal 11 Engine version: Godot Engine v4.2.2.stable.official (15073afe3856abd2aa1622492fe50026c7d63dc1) Dumping the backtrace. Please include this when reporting the bug to the project developer. [1] /usr/lib/x86_64-linux-gnu/libc.so.6(+0x42520) [0x70961aa42520] (??:0) [2] google::protobuf::internal::AddDescriptors(google::protobuf::internal::DescriptorTable const*) (??:0) [3] /usr/lib/x86_64-linux-gnu/libprotobuf.so.23(+0xa3024) [0x70960a2a3024] (??:0) [4] /lib64/ld-linux-x86-64.so.2(+0x647e) [0x70961ad7a47e] (??:0) [5] /lib64/ld-linux-x86-64.so.2(+0x6568) [0x70961ad7a568] (??:0) [6] /usr/lib/x86_64-linux-gnu/libc.so.6(_dl_catch_exception+0xe5) [0x70961ab74af5] (??:0) [7] /lib64/ld-linux-x86-64.so.2(+0xdff6) [0x70961ad81ff6] (??:0) [8] /usr/lib/x86_64-linux-gnu/libc.so.6(_dl_catch_exception+0x88) [0x70961ab74a98] (??:0) [9] /lib64/ld-linux-x86-64.so.2(+0xe34e) [0x70961ad8234e] (??:0) [10] /usr/lib/x86_64-linux-gnu/libc.so.6(+0x9063c) [0x70961aa9063c] (??:0) [11] /usr/lib/x86_64-linux-gnu/libc.so.6(_dl_catch_exception+0x88) [0x70961ab74a98] (??:0) [12] /usr/lib/x86_64-linux-gnu/libc.so.6(_dl_catch_error+0x33) [0x70961ab74b63] (??:0) [13] /usr/lib/x86_64-linux-gnu/libc.so.6(+0x9012e) [0x70961aa9012e] (??:0) [14] /usr/lib/x86_64-linux-gnu/libc.so.6(dlopen+0x48) [0x70961aa906c8] (??:0) [15] ./Godot_v4.2.2-stable_linux.x86_64() [0xfe251e] (??:0) [16] ./Godot_v4.2.2-stable_linux.x86_64() [0x3b41d1b] (??:0) [17] ./Godot_v4.2.2-stable_linux.x86_64() [0x3baa394] (??:0) [18] ./Godot_v4.2.2-stable_linux.x86_64() [0x3baaa8c] (??:0) [19] ./Godot_v4.2.2-stable_linux.x86_64() [0x388aa3d] (??:0) [20] ./Godot_v4.2.2-stable_linux.x86_64() [0x389c747] (??:0) [21] ./Godot_v4.2.2-stable_linux.x86_64() [0x38eb795] (??:0) [22] ./Godot_v4.2.2-stable_linux.x86_64() [0x38ec3cf] (??:0) [23] ./Godot_v4.2.2-stable_linux.x86_64() [0x3b4475e] (??:0) [24] ./Godot_v4.2.2-stable_linux.x86_64() [0x3b4f9f4] (??:0) [25] ./Godot_v4.2.2-stable_linux.x86_64() [0x3fa6d8e] (??:0) [26] ./Godot_v4.2.2-stable_linux.x86_64() [0x41e71d] (??:0) [27] /usr/lib/x86_64-linux-gnu/libc.so.6(+0x29d90) [0x70961aa29d90] (??:0) [28] /usr/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x80) [0x70961aa29e40] (??:0) [29] ./Godot_v4.2.2-stable_linux.x86_64() [0x42a59a] (??:0) -- END OF BACKTRACE --

Aborted (core dumped)

j20001970 commented 2 months ago

Well, crashing the official editor isn't what I expected.

Can confirm that GDMP v0.4 that built from ubuntu 22.04 somehow doesn't work on the same release, tested from ubuntu 22.04 docker image running godot in headless mode, though the crash messages are a bit different:

================================================================
handle_crash: Program crashed with signal 11
Engine version: Godot Engine v4.2.2.stable.official (15073afe3856abd2aa1622492fe50026c7d63dc1)
Dumping the backtrace. Please include this when reporting the bug to the project developer.
ERROR: FATAL: Index p_index = 1 is out of bounds (size() = 0).
   at: get (./core/templates/cowdata.h:158)
Illegal instruction (core dumped)

I think there's not much I can help with this problem unfortunately, but as a workaround you can try building the library from source in environment that are isolated from host, there is flatpak_env.sh script to help you switch to Freedesktop runtime if flatpak is installed on your machine.