Open YongsunLee opened 2 years ago
Hi,
Thanks for pointing it out. After quick research, 2 major problems were found.
1) dlls & libs from Azure Kinect SDK should be located inside of project directory such like .\Plugins\AzureKinect\Binaries\Win64\
.
Currently they are in outside and referred from build script (AzureKinectBuild.cs)
2) Try-Catch is NOT allowed to use in UE for packaging Try-Catch is heavily used in AzureKinectDevice.cpp since the SDK is designed to throw exception.
If they are resolved, the project should be packaged. I just came up with a solution but please note that it's a very temporal patch
Follow bellow:
k4a.dll
, k4a.lib
, k4abt.dll
, k4abt.lib
in C:\PJRoot\Plugins\AzureKinect\Binaries\Win64\
AzureKinectDevice.cpp
I'll give a try to fix this issue anyway...
Thanks for the quick reply.
I tried the workaround you suggested, but the packaging doesn't work. Thank you for your efforts to solve it.
I'm leaving a log of my packaging error in case it might be of any help.
My packaging environment is
and in the case of Niagara, I did not migrate because it seems impossible to reproduce the same in version 4.26.2.
Should I worry about whether this packaging error is also caused by version differences?
PS The version is different, but in the editor it plays without problems
Add.
I pressed "Close Issue" incorrectly. Attached is the Cook log.
Hi, @nama-gatsuo
The build was successful by improving your temporary work a little more.
Here's the method I used:
dlls & libs from Azure Kinect SDK should be located inside of project directory such like
Included the include folder (Azure Kinect SDK & Body Tracking SDK).
And I modified PublicIncludePaths in AzureKinect.Build.cs file.
Delete the Try-Catch statement
Packaging after launching UE4 Editor through Visual Studio
Packaging was successful by following the above method.
@YongsunLee do you mind sharing your AzureKinect.Build.cs code, with changes you made?
Hi, @Freymox
My AzureKinect.Build.cs
I Copy my Azure Kinect.build.cs .
You can think of my project location (D:\Build\WinterSceneProject) as your project location.
And after packaging, copy the AzureKinect (including Body Tracking SDK) dll file to win64 of the packaging folder and put it back.
I don't know if this is the right way, so please change it when the developer suggests a better solution.
Hi, @YongsunLee I have a erro when open my project: “the following modules are missing or built with a different engine version:AzureKinect AzureKinectEditor”, Do you have any idea to solve it? I installed Azure Kinect Body Tracking SDK 1.1.0, Azure Kinect SDK v1.4.1, UE4.27.2
The first time you package with the plug-in and open the game, it works, and from the second time you open it, the next log occurs with fat error. Does anyone have a solution?
[2023.11.21-13.38.29:306][ 0]AzureKinectDeviceLog: Warning: Failed adding capture to tracker process queue [2023.11.21-13.38.29:306][ 0]AzureKinectDeviceLog: Warning: Failed adding capture to tracker process queue [2023.11.21-13.38.29:306][ 0]LogRHI: Display: Encountered a new compute PSO: 1992897872 [2023.11.21-13.38.29:306][ 0]AzureKinectDeviceLog: Warning: Failed adding capture to tracker process queue [2023.11.21-13.38.29:306][ 0]LogRHI: Error: Breadcrumbs 'RHIThread'
[2023.11.21-13.38.29:306][ 0]LogWindows: Could not start crash report client using ../../../Engine/Binaries/Win64/CrashReportClient-Win64-Debug.exe
[2023.11.21-13.38.29:306][ 0]LogMemory: Platform Memory Stats for Windows
[2023.11.21-13.38.29:306][ 0]LogMemory: Process Physical Memory: 1820.04 MB used, 1820.04 MB peak
[2023.11.21-13.38.29:306][ 0]LogMemory: Process Virtual Memory: 4536.45 MB used, 4536.49 MB peak
[2023.11.21-13.38.29:306][ 0]LogMemory: Physical Memory: 17656.90 MB used, 47609.94 MB free, 65266.84 MB total
[2023.11.21-13.38.29:306][ 0]LogMemory: Virtual Memory: 25281.36 MB used, 44081.48 MB free, 69362.84 MB total
[2023.11.21-13.38.29:306][ 0]AzureKinectDeviceLog: Warning: Failed adding capture to tracker process queue
[2023.11.21-13.38.29:306][ 0]Message dialog closed, result: Ok, title: The UE-Kinect_Package_4 Game has crashed and will close, text:
[2023.11.21-13.38.29:306][ 0]LogWindows: Error: === Critical error: ===
[2023.11.21-13.38.29:306][ 0]LogWindows: Error:
[2023.11.21-13.38.29:306][ 0]LogWindows: Error: Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0xffffffff00000105
[2023.11.21-13.38.29:306][ 0]LogWindows: Error:
[2023.11.21-13.38.29:306][ 0]LogWindows: Error: [Callstack] 0x00007ff7d4600fed Kinect_Package_4.exe!UAzureKinectDevice::CaptureBodyIndexImage'::
9'::UpdateTextureDataName,UAzureKinectDevice::CaptureBodyIndexImage'::
9'::UpdateTextureDataName,
Hi, @nama-gatsuo
I am trying to package (win64) a project using this plugin.
I'm getting an error in the packaging and I want to know what I'm missing.
Can you give me an answer about the packaging?