GPU PCG nodes that are not in the top level of a graph (within a subgraph) fail to cook with errors about an illegal reference, if located in the top level of a graph the project cooks as expected.
Steps to Reproduce
Cooking the project that has a PCG graph with a subgraph containing a GPU node(Point Processor in the example) fails to cook with an illegal reference, the same GPU node used in the top level of a PCG graph cooks as expected.
Cook error:
UATHelper: Cooking (Windows): LogWindows: Error: appError called: Can't save 'C:/####/PCG_GPU_Subgraph/Saved/Cooked/Windows/PCG_GPU_Subgraph/Content/GPUSpawn.uasset': Illegal reference to private object: 'PCGNode /Game/GPUSubgraph.GPUSubgraph:CustomHLSL_0' referenced by 'PCGCustomKernelDataInterface_0' (at '/Game/GPUSpawn.GPUSpawn:GPUSpawn_1') in its 'Settings' property. UATHelper: Cooking (Windows): LogWindows: Error: begin: stack for UAT UATHelper: Cooking (Windows): LogWindows: Error: === Critical error: === UATHelper: Cooking (Windows): LogWindows: Error: UATHelper: Cooking (Windows): LogWindows: Error: Can't save 'C:/####/PCG_GPU_Subgraph/Saved/Cooked/Windows/PCG_GPU_Subgraph/Content/GPUSpawn.uasset': Illegal reference to private object: 'PCGNode /Game/GPUSubgraph.GPUSubgraph:CustomHLSL_0' referenced by 'PCGCustomKernelDataInterface_0' (at '/Game/GPUSpawn.GPUSpawn:GPUSpawn_1') in its 'Settings' property. UATHelper: Cooking (Windows): LogWindows: Error: UATHelper: Cooking (Windows): LogWindows: Error: UATHelper: Cooking (Windows): LogWindows: Error: end: stack for UAT PackagingResults: Error: appError called: Can't save 'C:/####/PCG_GPU_Subgraph/Saved/Cooked/Windows/PCG_GPU_Subgraph/Content/GPUSpawn.uasset': Illegal reference to private object: 'PCGNode /Game/GPUSubgraph.GPUSubgraph:CustomHLSL_0' referenced by 'PCGCustomKernelDataInterface_0' (at '/Game/GPUSpawn.GPUSpawn:GPUSpawn_1') in its 'Settings' property. PackagingResults: Error: begin: stack for UAT PackagingResults: Error: === Critical error: === PackagingResults: Error: Can't save 'C:/####/PCG_GPU_Subgraph/Saved/Cooked/Windows/PCG_GPU_Subgraph/Content/GPUSpawn.uasset': Illegal reference to private object: 'PCGNode /Game/GPUSubgraph.GPUSubgraph:CustomHLSL_0' referenced by 'PCGCustomKernelDataInterface_0' (at '/Game/GPUSpawn.GPUSpawn:GPUSpawn_1') in its 'Settings' property. PackagingResults: Error: end: stack for UAT
Hello,
I have put together a bug report for this, which can be tracked here if/when it’s approved for public visibility: Unreal Engine Issues and Bug Tracker (UE\-282099\). There is no ETA as priorities for bugs and features can shift at any time.
We don’t provide updates on UDN, but progress can be followed on that public issue tracker page.
Take care,
John
Hey John, we were aware of this (fortunately!) and while we didn’t have a fix in for 5.6 preview 1, we did push a fix after that in 5.6.
Also, since we’ve had a user report this earlier this year, I’ve done a fix on 5.5.4 if you want it.
It’s been tested very, very minimally and is not intended to be the final fix and YMMV.
Hope this helps,
Cheers,
Julien
Hi John,
Just a heads up, I have verified this is also the case in the 5.6 preview.
Cheers,
Andre