Server crash when trying to send a class in function

Reference ID

2c2ed937-4168-f946-f6d9-ce952f8fc832

Please select what you are reporting on:

verse

What Type of Bug are you experiencing?

verse

Summary

Server crash when trying to send a class in function. UPD: The problem occurs when trying to pass a texture regardless of the class load.

Steps to Reproduce

  1. Create a class with 8 parameters. 2. Initialize in an array 3. Try to send it to a function. 4. The server will crash. The code is given in the first comment.

Expected Result

It’s transmitting and it’s working.

Observed Result

Server crashing.

Platform(s)

PC

Additional Notes

LogNet: Warning: UNetConnection::Tick: Connection TIMED OUT. Closing connection… Elapsed: 30.00, Real: 30.00, Good: 30.00, DriverTime: 162.39, Threshold: 30.00, [UNetConnection] RemoteAddr: 18.157.26.104:15003, Name: IpConnection_3, Driver: IpNetDriver_3 IpNetDriver_3, IsServer: NO, PC: NULL, Owner: ValkyrieBeaconClient_3, UniqueId: MCP:1d7c6a35c273448c839d9914378115c1
LogNet: Error: UEngine::BroadcastNetworkFailure: FailureType = ConnectionTimeout, ErrorString = UNetConnection::Tick: Connection TIMED OUT. Closing connection… Elapsed: 30.00, Real: 30.00, Good: 30.00, DriverTime: 162.39, Threshold: 30.00, [UNetConnection] RemoteAddr: 18.157.26.104:15003, Name: IpConnection_3, Driver: IpNetDriver_3 IpNetDriver_3, IsServer: NO, PC: NULL, Owner: ValkyrieBeaconClient_3, UniqueId: MCP:1d7c6a35c273448c839d9914378115c1, Driver = IpNetDriver_3 IpNetDriver_3
LogValkyrieRequestManagerEditor: Warning: Encountered Network Error!

blacksmith_craft := class<concrete>:

    var AgentCanvas : [agent]canvas = map{}
    var AgentWeaponIndex : [agent]int = map{}

    Logger : log = log{Channel := BLACKSMITH_CRAFT_LOG}

    Weapons : []blacksmith_craft_weapon = array:
        blacksmith_craft_weapon:
           item := weaponitem.HeistedRunAndGunL7
           res1 := conditional.Gold
           price1 := 1
           res2 := conditional.Gold
           price2 := 1
           res3 := conditional.Gold
           price3 := 1
           Texture := ResourcePNG.WOOD}

    AddNewUI<private>(Agent : agent):void=
        Logger.Print("Add New UI")
        if(PlayerUI := GetPlayerUI[player[Agent]], Weapon := Weapons[AgentWeaponIndex[Agent]]):
            NewCanvas := MakeNewCanvas(Agent, Weapon)
            PlayerUI.AddWidget(NewCanvas)
            if(set AgentCanvas[Agent] = NewCanvas):
                Logger.Print("Success set new UI for agent")

    MakeNewCanvas<private>(Agent : agent, Weapon : blacksmith_craft_weapon):canvas=

        Logger.Print("Make New UI")

        Canvas := canvas:
            Slots := array:
                canvas_slot:
                    Anchors := anchors:
                        Minimum := vector2{X:= 0.0, Y:= 0.0}
                        Maximum := vector2{X:= 0.0, Y:= 0.0}
                    Widget := texture_block:
                        DefaultImage := Weapon.Texture #Problem with texture
                        DefaultDesiredSize := vector2{X:= 300.0, Y:= 300.0}

blacksmith_craft_weapon := class:

    item : weaponitem
    res1 : conditional
    price1 : int
    res2 : conditional
    price2: int
    res3 : conditional
    price3 : int
    Texture : texture