UAT Packaging fail: Wrong path for SharedPointer

Assertion failed: IsValid() [File:D:\Build++UE4\Sync\Engine\Source\Runtime\Core\Public\Templates/SharedPointer.h] [Line: 838]

I can’t cook my project because the UAT packaging is failing at this line. Since I just don’t have any D:\ drive, I think it’s a problem with a environment variable or a define in one of the .build.cs files, but I can’t find it!

Here’s my log:

link text

Check the file c:\repo\Game\clientue4\source\clientue4\sstandardslatewidget.h at line 57.
This should be the line that causes the problem. Maybe comment it here for further investigation.

This is L.57:

std::shared_ptr<GameplayClient> mClient;

I have included and GameplayClient.h. Playing within the Editor works

It might be
TSharedRef GSlider = SNew(GSSlider);
because of the LogWindows: Error: [Callstack] 0x000007fea8438859 UE4Editor-ClientUE4.dll!MakeTDecl() [c:\program files\epic games\ue_4.21\engine\source\runtime\slatecore\public\widgets\declarativesyntaxsupport.h:1107]

Solved: It was my GSSlider, which is a SCompoundWidget, that caused the problem. I think the fact that I constructed it in my .h was causing an arguments problem.