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

Cooking and Packaging errors #3

Open
QTM3 opened this issue Sep 25, 2024 · 4 comments
Open

Cooking and Packaging errors #3

QTM3 opened this issue Sep 25, 2024 · 4 comments

Comments

@QTM3
Copy link

QTM3 commented Sep 25, 2024

Hi, I installed it and it works when I play in the Editor. I am able to use DistanceBetweenTwoPoints and that works. The problem is whenever I try to make a standalone package it fails. This happens both on Cook and Package in Shipping mode. I'm using UE 5.3.2. I get the following log

UATHelper: Packaging (Windows): LogInit: Display: Warning/Error Summary (Unique only)
UATHelper: Packaging (Windows): LogInit: Display: -----------------------------------
UATHelper: Packaging (Windows): LogInit: Display: LogTemp: Error: [VtkPlugin] VTK is currently NOT delayloaded on Windows, as this causes UE to crash (dlls are available directly at runtime).
UATHelper: Packaging (Windows): LogInit: Display: LogTemp: Warning: [VtkPlugin] Delay-loading VTK module...
UATHelper: Packaging (Windows): LogInit: Display: LogTemp: Warning: [VtkPlugin] 0 VTK libraries delay-loaded!
UATHelper: Packaging (Windows): LogInit: Display:
UATHelper: Packaging (Windows): LogInit: Display: Failure - 1 error(s), 2 warning(s)
UATHelper: Packaging (Windows): LogInit: Display:
UATHelper: Packaging (Windows): Execution of commandlet took: 12.46 seconds
UATHelper: Packaging (Windows): LogShaderCompilers: Display: ================================================
UATHelper: Packaging (Windows): LogShaderCompilers: Display: === FShaderJobCache stats ===
UATHelper: Packaging (Windows): LogShaderCompilers: Display: Total job queries 0, among them cache hits 0 (0.00%)
UATHelper: Packaging (Windows): LogShaderCompilers: Display: Tracking 0 distinct input hashes that result in 0 distinct outputs (0.00%)
UATHelper: Packaging (Windows): LogShaderCompilers: Display: RAM used: 240.00 B of 819.20 MiB budget. Usage: 0.00%
UATHelper: Packaging (Windows): LogShaderCompilers: Display: === Shader Compilation stats ===
UATHelper: Packaging (Windows): LogShaderCompilers: Display: Shaders Compiled: 0
UATHelper: Packaging (Windows): LogShaderCompilers: Display: Jobs assigned 0, completed 0 (0%)
UATHelper: Packaging (Windows): LogShaderCompilers: Display: Time at least one job was in flight (either pending or executed): 0.00 s
UATHelper: Packaging (Windows): LogShaderCompilers: Display: ================================================
UATHelper: Packaging (Windows): LogTemp: Error: [VtkPlugin] Not freeing dlls on Windows because dlls are not delay-loaded & this additionally generates a crash on shutdown (with debugger attached).
UATHelper: Packaging (Windows): Took 20.04s to run UnrealEditor-Cmd.exe, ExitCode=1
UATHelper: Packaging (Windows): Cook failed.
UATHelper: Packaging (Windows): (see C:\Users\Pawan\AppData\Roaming\Unreal Engine\AutomationTool\Logs\D+UE_5.3\Log.txt for full exception trace)
UATHelper: Packaging (Windows): AutomationTool executed for 0h 0m 40s
UATHelper: Packaging (Windows): AutomationTool exiting with ExitCode=25 (Error_UnknownCookFailure)
UATHelper: Packaging (Windows): BUILD FAILED
PackagingResults: Error: Unknown Cook Failure

I see the errors of delay-loading popping up from VTK-Library but is there any way to create a standalone package. Any help would be appreciated. Thanks.

@QTM3
Copy link
Author

QTM3 commented Sep 29, 2024

I tried cooking with an empty project. Simply enabling the plugin gives above mentioned errors. Disabling it works for both cooking and packaging for all configurations. I cannot seem to create a standalone package with the plugin enabled. Any help would be appreciated in fixing this bug. Thanks in advance.

@brugr9
Copy link

brugr9 commented Dec 21, 2024

HI @QTM3
As I can read in your post, UATHelper says: Packaging (Windows): LogTemp: Error: [VtkPlugin] Not freeing dlls on Windows because dlls are not delay-loaded & this additionally generates a crash on shutdown (with debugger attached).

Eventually dlls should be delay-loaded to get the packaging working?

@QTM3
Copy link
Author

QTM3 commented Dec 21, 2024

Hi @brugr9

Indeed it seems like delay-loading is needed for packaging to work for this project, but as stated on the project page

https://github.com/VRGroupRWTH/VTKPlugin

delay-loading of VTK dlls is not supported by this plugin. I tried different approaches but could not get it to work on UE 5.x. Eventually making a statically liked "ThirdParty Plugin" from scratch for UE version 4.23 seems to work (though I could not get it to work for 5.x either). Hope this helps.

@jfmilke
Copy link
Contributor

jfmilke commented Dec 21, 2024

Hey, I was the one who added that error message as I could not delay loading working on Windows. Things might have changed or you may find a solution by trial and error?
I think to remember that it was a VTK problem as there was a dependency problem of some DLLs, I'd investigate in that direction. Maybe also update the script to fetch the newest VTK version.

Have a look at the Build.cs file of the ThirdParty plugin where the error (more a warning actually) is generated to fiddle around.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants