zubEpty / UE5-Mediapipe-plugin

Mediapipe library plugin for unreal engine 5
Apache License 2.0
23 stars 6 forks source link

Opening Project Stuck at 75% #1

Open YousefBadr opened 1 year ago

YousefBadr commented 1 year ago

Hi, the project compiles with no issues but when launching the project it gets stuck at 75%. What could be wrong? I think it's OpenCV related Issue.

*EDIT: after enabling logging in editor I get the following log:

[2023.05.23-23.10.51:854][ 0]LogMediaPipe: Display: FMediaPipeModule::StartupModule [2023.05.23-23.10.55:864][ 0]LogMediaPipe: Display: FindPattern Id=0 Status=0 Count=0 [(null)] [2023.05.23-23.10.56:497][ 0]LogMediaPipe: Display: FindPattern Id=1 Status=0 Count=0 [(null)] [2023.05.23-23.10.56:497][ 0]LogMediaPipe: Warning: FModuleTrace::OnDllLoaded NOT FOUND [2023.05.23-23.10.56:498][ 0]LogMediaPipe: Display: PluginBaseDir: Y:/Main Unreal Projects/Another MediaPipe Project NoMocap/UE5-Mediapipe-plugin-main/Plugins/MediaPipe [2023.05.23-23.10.56:498][ 0]LogMediaPipe: Display: BinariesDir: Y:/Main Unreal Projects/Another MediaPipe Project NoMocap/UE5-Mediapipe-plugin-main/Plugins/MediaPipe/Binaries/Win64 [2023.05.23-23.10.56:499][ 0]LogMediaPipe: Display: DataDir: Y:/Main Unreal Projects/Another MediaPipe Project NoMocap/UE5-Mediapipe-plugin-main/Plugins/MediaPipe/ThirdParty/mediapipe/Data [2023.05.23-23.10.56:499][ 0]LogMediaPipe: Display: GetDllHandle: Y:/Main Unreal Projects/Another MediaPipe Project NoMocap/UE5-Mediapipe-plugin-main/Plugins/MediaPipe/Binaries/Win64/ump_shared.dll

sugunilove commented 1 year ago

MediaPipeModule.cpp // 5.0.0 "48 89 5C 24 08 55 56 57 41 54 41 55 41 56 41 57 48 8D 6C 24 D9 48 81 EC B0 00 00 00 48 8B 05 B5 C6 B5 00", // dev editor (unrealeditor-core.dll)

to

if ENGINE_PATCH_VERSION == 0

"48 89 5C 24 08 55 56 57 41 54 41 55 41 56 41 57 48 8D 6C 24 D9 48 81 EC C0 00 00 00 48 8B 05 F5 0A B3 00", // 5.2.0

elif ENGINE_PATCH_VERSION == 1

"48 89 5C 24 08 55 56 57 41 54 41 55 41 56 41 57 48 8D 6C 24 D9 48 81 EC C0 00 00 00 48 8B 05 55 0B B3 00", // 5.2.1

endif

i solved it this way

yelong-01 commented 1 year ago

MediaPipeModule.cpp // 5.0.0 "48 89 5C 24 08 55 56 57 41 54 41 55 41 56 41 57 48 8D 6C 24 D9 48 81 EC B0 00 00 00 48 8B 05 B5 C6 B5 00", // dev editor (unrealeditor-core.dll)

to

if ENGINE_PATCH_VERSION == 0 "48 89 5C 24 08 55 56 57 41 54 41 55 41 56 41 57 48 8D 6C 24 D9 48 81 EC C0 00 00 00 48 8B 05 F5 0A B3 00", // 5.2.0 #elif ENGINE_PATCH_VERSION == 1 "48 89 5C 24 08 55 56 57 41 54 41 55 41 56 41 57 48 8D 6C 24 D9 48 81 EC C0 00 00 00 48 8B 05 55 0B B3 00", // 5.2.1 #endif

i solved it this way

5.2.1 This problem comes up again with packing

stormsc1 commented 5 days ago

Updated pattern for 5.4. (dev editor)

"48 89 5C 24 20 55 56 57 41 54 41 55 41 56 41 57 48 8D 6C 24 D9 48 81 EC A0 00 00 00 48 8B 05 7D 12 C1 00",  // dev editor

For future reference, these patterns are the start of the FModuleTrace::OnDllLoaded function and can be found in Rider by:

  1. Setting a breakpoint on first line of FModuleTrace::OnDllLoaded
  2. Disassembling the stack frame (Ctrl+D)
  3. Copying the address of the instruction (addr: 0x00007ffae76b3a60, instr: mov qword ptr [rsp + 0x20], rbx)
  4. View address in memory view (under Debug panel, same as where you find call stack)
  5. The pattern is the start of the function.