Generic struct causes network error during set operation

Summary

After several hours of very slow debugging process that required restarting the session many many times, I finally was able to pin point that a certain type setup seems to cause the server to crash and result into a network error.

Please select what you are reporting on:

Verse

What Type of Bug are you experiencing?

Stability

Steps to Reproduce

Here’s a reduced version (not tested in isolation):

some_object := class<final><persistable> {}

# This type might be the cause for this issue.
some_generic_struct(t: type) := struct<computes> {
  SomeObject: t
}

some_generic_struct_1 := some_generic_struct(some_object)

some_struct := struct<computes> {
  SomeGenericStruct: some_generic_struct_1 
}

# Somewhere else
set SomeStruct.SomeGenericStruct.SomeObject = Value # THIS CRASHES THE SERVER

WORKAROUND:

some_generic_struct_1 := struct<computes> {
  SomeObject: some_object
}

Expected Result

The server should not crash with a network error.

Observed Result

The server crashes with a network error and disconnects the session.

Platform(s)

UEFN (v36.20)

FORT-942777 has been created and its status is ‘Unconfirmed’. This is now in a queue to be reproduced and confirmed.