Cannot package ZEDSamples UE5.4

Hi

The sample project runs fine, and tracking is good.
But when I try to package the project i get this:

[59/63] Compile [x64] ZEDWidget.cpp
C:\Users\Plan8-PC\Downloads\ZEDExample\zed-UE5-main\Plugins\Stereolabs\Source\Stereolabs\Public\Core\StereolabsCoreGlobals.h(2463): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
C:\Users\Plan8-PC\Downloads\ZEDExample\zed-UE5-main\Plugins\Stereolabs\Source\Stereolabs\Public\Core\StereolabsCoreGlobals.h(2464): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
C:\Users\Plan8-PC\Downloads\ZEDExample\zed-UE5-main\Plugins\Stereolabs\Source\Stereolabs\Public\Core\StereolabsCoreGlobals.h(2481): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
[60/63] Compile [x64] ZEDWidgetComponent.cpp
C:\Users\Plan8-PC\Downloads\ZEDExample\zed-UE5-main\Plugins\Stereolabs\Source\ZED\Private\HUD\ZEDWidgetComponent.cpp(30): warning C4996: 'UTextBlock::Font': Direct access to Font is deprecated. Please use the getter or setter. Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile.
[61/63] Compile [x64] ZEDPlayerController.cpp
C:\Users\Plan8-PC\Downloads\ZEDExample\zed-UE5-main\Plugins\Stereolabs\Source\Stereolabs\Public\Core\StereolabsCoreGlobals.h(2463): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
C:\Users\Plan8-PC\Downloads\ZEDExample\zed-UE5-main\Plugins\Stereolabs\Source\Stereolabs\Public\Core\StereolabsCoreGlobals.h(2464): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
C:\Users\Plan8-PC\Downloads\ZEDExample\zed-UE5-main\Plugins\Stereolabs\Source\Stereolabs\Public\Core\StereolabsCoreGlobals.h(2481): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
Total time in Parallel executor: 142.16 seconds
Total execution time: 148.59 seconds
CompilationResultException: OtherCompilationError
   at UnrealBuildTool.ActionGraph.ExecuteActionsAsync(BuildConfiguration BuildConfiguration, List`1 ActionsToExecute, List`1 TargetDescriptors, ILogger Logger, IActionArtifactCache actionArtifactCache) in C:\Program Files\Epic Games\UE_5.4\Engine\Source\Programs\UnrealBuildTool\System\ActionGraph.cs:line 451
   at UnrealBuildTool.BuildMode.BuildAsync(TargetMakefile[] Makefiles, List`1 TargetDescriptors, BuildConfiguration BuildConfiguration, BuildOptions Options, FileReference WriteOutdatedActionsFile, ILogger Logger) in C:\Program Files\Epic Games\UE_5.4\Engine\Source\Programs\UnrealBuildTool\Modes\BuildMode.cs:line 801
   at UnrealBuildTool.BuildMode.BuildAsync(List`1 TargetDescriptors, BuildConfiguration BuildConfiguration, ISourceFileWorkingSet WorkingSet, BuildOptions Options, FileReference WriteOutdatedActionsFile, ILogger Logger, Boolean bSkipPreBuildTargets) in C:\Program Files\Epic Games\UE_5.4\Engine\Source\Programs\UnrealBuildTool\Modes\BuildMode.cs:line 411
   at UnrealBuildTool.BuildMode.ExecuteAsync(CommandLineArguments Arguments, ILogger Logger) in C:\Program Files\Epic Games\UE_5.4\Engine\Source\Programs\UnrealBuildTool\Modes\BuildMode.cs:line 252
   at UnrealBuildTool.UnrealBuildTool.Main(String[] ArgumentsArray) in C:\Program Files\Epic Games\UE_5.4\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.cs:line 660
WriteFileIfChanged() wrote 120 changed files of 120 requested writes.
Timeline:

[ 0.000]
[ 0.000](+148.623) <unknown>
[148.623]

Running Win 11
Latest ZED SDK
CUDA 12

Hi,

I only see warnings in your logs. Could you share the errors you are getting?

Hey @BenjaminV, and thanks for you quick answer.

I think the issue was the older SDK that I had, when downloading the latest one I could package the demo project.

But now i have started using the plugin in my other project and i have a lot of craches with this error message:

Fatal error: [File:D:\build\++UE5\Sync\Engine\Source\Runtime\RenderCore\Private\RenderingThread.cpp] [Line: 952] 
Rendering thread exception:
Fatal error!

Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0x0000000000000059

0x00007ffbcc7158cc sl_zed64.dll!UnknownFunction []
0x00007ffbe1d63977 UnrealEditor-Stereolabs.dll!USlTexture::UpdateTexture() [C:\Users\Plan8-PC\Downloads\zed_new\zed-UE5-main\Plugins\Stereolabs\Source\Stereolabs\Private\Core\StereolabsTexture.cpp:218]
0x00007ffbe1d39efb UnrealEditor-Stereolabs.dll!`USlGPUTextureBatch::Tick'::`14'::<lambda_2>::operator()() [C:\Users\Plan8-PC\Downloads\zed_new\zed-UE5-main\Plugins\Stereolabs\Source\Stereolabs\Private\Core\StereolabsTextureBatch.cpp:553]
0x00007ffc669a6bd0 UnrealEditor-RenderCore.dll!UnknownFunction []
0x00007ffc669e3165 UnrealEditor-RenderCore.dll!UnknownFunction []
0x00007ffc5115b88a UnrealEditor-Core.dll!UnknownFunction []
0x00007ffc5115bf2e UnrealEditor-Core.dll!UnknownFunction []
0x00007ffc66a1180f UnrealEditor-RenderCore.dll!UnknownFunction []
0x00007ffc66a164b4 UnrealEditor-RenderCore.dll!UnknownFunction []
0x00007ffc5179c93d UnrealEditor-Core.dll!UnknownFunction []
0x00007ffc517902b7 UnrealEditor-Core.dll!UnknownFunction []
0x00007ffcb23a259d KERNEL32.DLL!UnknownFunction []

Any ideas?

It seems to crash when calling a ZED SDK function. Is there anything different in both projects? ZED SDK version, UE version… Are both projects using DX12?

Hi again @BenjaminV

Seems kind of random I’m afraid.
This happens in a fairly fresh UE5.4.4 project. I have rebuilt the plugin for that project.
Using Cuda 12.6.85
ZED SDK 4.2.3

But sometime when hitting play in the editor i get this

LoginId:3da97e3542f935ca567a03b106e5440b
EpicAccountId:be6f921b7aed4c6990f7d632a416ae1b

Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0x0000000000000059

sl_zed64
UnrealEditor_Stereolabs!USlTexture::UpdateTexture() [C:\Users\Plan8-PC\Perforce\perforce_Plan8-PC-1_Main_9385\CF_2025\Plugins\Stereolabs\Source\Stereolabs\Private\Core\StereolabsTexture.cpp:218]
UnrealEditor_Stereolabs!`USlGPUTextureBatch::Tick'::`14'::<lambda_2>::operator()() [C:\Users\Plan8-PC\Perforce\perforce_Plan8-PC-1_Main_9385\CF_2025\Plugins\Stereolabs\Source\Stereolabs\Private\Core\StereolabsTextureBatch.cpp:553]
UnrealEditor_RenderCore
UnrealEditor_RenderCore
UnrealEditor_Core
UnrealEditor_Core
UnrealEditor_RenderCore
UnrealEditor_RenderCore
UnrealEditor_Core
UnrealEditor_Core
kernel32
ntdll

Very frustrating, any hints?
Do you need anything else from me?

Thanks!
ZED_Diagnostic_Results.json (17.0 KB)

Hi again.

I really get this often now, what could be the problem?

LoginId:3da97e3542f935ca567a03b106e5440b
EpicAccountId:be6f921b7aed4c6990f7d632a416ae1b

Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0x0000000000000059

sl_zed64
UnrealEditor_Stereolabs!USlTexture::UpdateTexture() [C:\Users\Plan8-PC\Perforce\perforce_Plan8-PC-1_Main_9385\CF_2025\Plugins\Stereolabs\Source\Stereolabs\Private\Core\StereolabsTexture.cpp:218]
UnrealEditor_Stereolabs!`USlGPUTextureBatch::Tick'::`14'::<lambda_2>::operator()() [C:\Users\Plan8-PC\Perforce\perforce_Plan8-PC-1_Main_9385\CF_2025\Plugins\Stereolabs\Source\Stereolabs\Private\Core\StereolabsTextureBatch.cpp:553]
UnrealEditor_RenderCore
UnrealEditor_RenderCore
UnrealEditor_Core
UnrealEditor_Core
UnrealEditor_RenderCore
UnrealEditor_RenderCore
UnrealEditor_Core
UnrealEditor_Core
kernel32
ntdll

Also, the origin of the chatracter when body tracking is the center of the “floor” i assume. Meaning that if there is a carpet in half the room the avatar gets an offset to the right? Even if i stand straight infront of the camera the avatar “manny” is placed to the right…Unchecking “Set Floor as origin” crashes UE, at least for me.

Appreciate any help!

/T

Hi,

I tried to reproduce the issue with no success yet.

Are you using a specific level or set of settings?

Stereolabs Support

Thanks for getting back to me!

No nothing special. What can i provide to you to solve this? Can i share the project somehow, or do you want other logs etc?

Would really appreciate any help to hunt. this down.

Thanks!

The project would help.
You can send me this link at support@stereolabs.com

Thanks!

Stereolabs Support

Great!

I’ll zip the project and send it over to you.

Thanks!

Den tors 23 jan. 2025 kl 10:30 skrev Benjamin Vallon (Stereolabs) support@stereolabs.com:

Hi again.

I have now uploaded the project here

The whole project is a bit of a mess, with some blueprint compile errors and missing plugins.
To reproduce the crash: open the level Healthcare_2025 in the editor and try to play it.

Please let me know if you need anything else. Maybe i could create a smaller project with the crash?

/T

Den tors 23 jan. 2025 kl 10:39 skrev Tor Castensson tor@plan8.se:

Great!

I’ll zip the project and send it over to you.

Thanks!

Den tors 23 jan. 2025 kl 10:30 skrev Benjamin Vallon (Stereolabs) support@stereolabs.com:

Thanks.

It’s fine, I managed to play the scene and make it crash. I’ll investigate today and hopefully, I have something to share before the end of the day.

Best,
Benjamin V.

Stereolabs Support

Well, actually it was not the same crash.

It seems it tries to set the position of the ZEDPawn to (nan, nan, nan) in your level, I quite don’t understand why.

Stereolabs Support

Huh?

I don’t think i have touched the ZED pawn.
If I did would that cause a crash?
Do you need anything else from me?

Best

Tor

Hi again

Now a new crash, this time with a different log:

LoginId:3da97e3542f935ca567a03b106e5440b
EpicAccountId:be6f921b7aed4c6990f7d632a416ae1b

Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0x0000093d13a5a4c0

UnrealEditor_Stereolabs!TBaseFunctorDelegateInstance<void __cdecl(FViewport *,unsigned int),FDefaultDelegateUserPolicy,`FSlViewportHelper::AddToViewportResizeEvent'::`2'::<lambda_1> >::ExecuteIfSafe() [C:\Program Files\Epic Games\UE_5.4\Engine\Source\Runtime\Core\Public\Delegates\DelegateInstancesImpl.h:868]
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_Slate
UnrealEditor_SlateCore
UnrealEditor_SlateCore
UnrealEditor_SlateCore
UnrealEditor_SlateCore
UnrealEditor_SlateCore
UnrealEditor_SlateCore
UnrealEditor_Slate
UnrealEditor_SlateCore
UnrealEditor_SlateCore
UnrealEditor_SlateCore
UnrealEditor_SlateCore
UnrealEditor_SlateCore
UnrealEditor_SlateCore
UnrealEditor_SlateCore
UnrealEditor_SlateCore
UnrealEditor_SlateCore
UnrealEditor_Slate
UnrealEditor_SlateCore
UnrealEditor_SlateCore
UnrealEditor_SlateCore
UnrealEditor_SlateCore
UnrealEditor_Slate
UnrealEditor_SlateCore
UnrealEditor_SlateCore
UnrealEditor_SlateCore
UnrealEditor_SlateCore
UnrealEditor_SlateCore
UnrealEditor_SlateCore
UnrealEditor_SlateCore
UnrealEditor_SlateCore
UnrealEditor_SlateCore
UnrealEditor_SlateCore
UnrealEditor_SlateCore
UnrealEditor_SlateCore
UnrealEditor_SlateCore
UnrealEditor_SlateCore
UnrealEditor_SlateCore
UnrealEditor_SlateCore
UnrealEditor_Slate
UnrealEditor_SlateCore
UnrealEditor_SlateCore
UnrealEditor_SlateCore
UnrealEditor_SlateCore
UnrealEditor_SlateCore
UnrealEditor_SlateCore
UnrealEditor_SlateCore
UnrealEditor_SlateCore
UnrealEditor_SlateCore
UnrealEditor_Slate
UnrealEditor_SlateCore
UnrealEditor_SlateCore
UnrealEditor_SlateCore
UnrealEditor_SlateCore
UnrealEditor_SlateCore
UnrealEditor_SlateCore
UnrealEditor_SlateCore
UnrealEditor_SlateCore
UnrealEditor_SlateCore
UnrealEditor_SlateCore
UnrealEditor_SlateCore
UnrealEditor_SlateCore
UnrealEditor_SlateCore
UnrealEditor_SlateCore
UnrealEditor_SlateCore
UnrealEditor_SlateCore
UnrealEditor_SlateCore
UnrealEditor_SlateCore
UnrealEditor_SlateCore
UnrealEditor_SlateCore
UnrealEditor_SlateCore
UnrealEditor_SlateCore
UnrealEditor_SlateCore
UnrealEditor_Slate
UnrealEditor_Slate
UnrealEditor_Slate
UnrealEditor_Slate
UnrealEditor_Slate
UnrealEditor
UnrealEditor
UnrealEditor
UnrealEditor
UnrealEditor
UnrealEditor
kernel32
ntdll

I a fresh build of the ZEDSample project, i got this when unchecking “Set Floor As Origin”

LoginId:3da97e3542f935ca567a03b106e5440b
EpicAccountId:be6f921b7aed4c6990f7d632a416ae1b

Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0x0000000000000034

sl_zed_c
UnrealEditor_Stereolabs!USlTexture::UpdateTexture() [C:\Users\Plan8-PC\Desktop\ZEDDEMO\Plugins\Stereolabs\Source\Stereolabs\Private\Core\StereolabsTexture.cpp:236]
UnrealEditor_Stereolabs!`USlGPUTextureBatch::Tick'::`14'::<lambda_2>::operator()() [C:\Users\Plan8-PC\Desktop\ZEDDEMO\Plugins\Stereolabs\Source\Stereolabs\Private\Core\StereolabsTextureBatch.cpp:542]
UnrealEditor_RenderCore
UnrealEditor_RenderCore
UnrealEditor_Core
UnrealEditor_Core
UnrealEditor_RenderCore
UnrealEditor_RenderCore
UnrealEditor_Core
UnrealEditor_Core
kernel32
ntdll

Hi,

I pushed a modification to the plugin to handle the crash. I still don’t know why sometimes, the texture is not correctly initialised but this temporary fix should work for now.

Best regards,
Benjamin V.

Stereolabs Support

1 Like