# Server crashes several minutes after using Verse to create a temporary instance of material with a parameter

**URL:** <https://forums.unrealengine.com/t/server-crashes-several-minutes-after-using-verse-to-create-a-temporary-instance-of-material-with-a-parameter/1997990>\
**Category:** Issues and Bug Reporting\
**Tags:** fortnite-creative, unreal-editor-for-fortnite, fortnite\
**Created:** [August 30, 2024, 8:24am UTC](https://forums.unrealengine.com/t/server-crashes-several-minutes-after-using-verse-to-create-a-temporary-instance-of-material-with-a-parameter/1997990 "2024-08-30T08:24:01Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![djpixel](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@djpixel](https://forums.unrealengine.com/u/djpixel)\
**Post date:** [August 30, 2024, 8:24am UTC](https://forums.unrealengine.com/t/server-crashes-several-minutes-after-using-verse-to-create-a-temporary-instance-of-material-with-a-parameter/1997990/1 "2024-08-30T08:24:01Z")

</div>

### Summary

Whether in Editor and Private Version, server consistently crashes several minutes after Verse is used to create a temporary instance of material with a parameter, and assign it to a temporary prop.

### Please select what you are reporting on:

Verse

### What Type of Bug are you experiencing?

Stability

### Steps to Reproduce

1. In Editor, create a Material that has a Material Parameter node, e.g. `M_Test` with a parameter named `Opacity`

2. In Verse, create an instance of this material, e.g.

```verse
Material := M_Test_material { Opacity := 0.1 }

```

Do not store this instance on the device.

1. Assign this material to temporary spawned prop  
(Not sure if this is required to reproduce, haven’t tried without this):

```verse
Prop := SpawnProp(...) # Any asset
Prop.SetMaterial(Material)
Prop.Dispose()

```

1. Run your game
2. Wait 3-10 minutes (after material was used).

### Expected Result

No issues

### Observed Result

```auto
[2024.08.30-19.33.24:737][217]LogNet: Warning: UNetConnection::Tick: Connection TIMED OUT. Closing connection.. Elapsed: 30.01, Real: 30.01, Good: 30.01, DriverTime: 933.17, Threshold: 30.00, [UNetConnection] RemoteAddr: 3.25.183.145:15031, Name: IpConnection_4, Driver: Name:IpNetDriver_4 Def:BeaconNetDriver IpNetDriver_4, IsServer: NO, PC: NULL, Owner: ValkyrieBeaconClient_2, UniqueId: MCP:cfa359c8474d4e399eb4c668b125a9e6
[2024.08.30-19.33.24:743][217]LogNet: Error: UEngine::BroadcastNetworkFailure: FailureType = ConnectionTimeout, ErrorString = UNetConnection::Tick: Connection TIMED OUT. Closing connection.. Elapsed: 30.01, Real: 30.01, Good: 30.01, DriverTime: 933.17, Threshold: 30.00, [UNetConnection] RemoteAddr: 3.25.183.145:15031, Name: IpConnection_4, Driver: Name:IpNetDriver_4 Def:BeaconNetDriver IpNetDriver_4, IsServer: NO, PC: NULL, Owner: ValkyrieBeaconClient_2, UniqueId: MCP:cfa359c8474d4e399eb4c668b125a9e6, Driver = Name:IpNetDriver_4 Def:BeaconNetDriver IpNetDriver_4
[2024.08.30-19.33.24:756][217]LogValkyrieRequestManagerEditor: Warning: Encountered Network Error!
[2024.08.30-19.33.24:760][217]LogValkyrieRequestManagerEditor: Error: Failed to handle connection attempt (Network error occurred when connecting to a server after matchmaking completed. Error: UNetConnection::Tick: Connection TIMED OUT. Closing connection.. Elapsed: 30.01, Real: 30.01, Good: 30.01, DriverTime: 933.17, Threshold: 30.00, [UNetConnection] RemoteAddr: 3.25.183.145:15031, Name: IpConnection_4, Driver: Name:IpNetDriver_4 Def:BeaconNetDriver IpNetDriver_4, IsServer: NO, PC: NULL, Owner: ValkyrieBeaconClient_2, UniqueId: MCP:cfa359c8474d4e399eb4c668b125a9e6)
[2024.08.30-19.33.24:844][218]LogValkyrieSummary: Destroying Valkyrie Beacon

```

### Platform(s)

Windows (PC)

### Additional Notes

If created `Material` instance is saved on the device (e.g. `set Self.SavedMaterial = Material`), then the crash does not happen.

I assume that crash might be related to server garbage collection (when material instance is collected), which would explain why timing is a bit random (3-10 minutes), and why it does not happen if material lifetime is extended by storing the instance.

---

<div class="post-metadata">

**Author:** ![Flak](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/flak/32/769441_2.png) [@Flak](https://forums.unrealengine.com/u/Flak)\
**Post date:** [August 30, 2024, 9:36am UTC](https://forums.unrealengine.com/t/server-crashes-several-minutes-after-using-verse-to-create-a-temporary-instance-of-material-with-a-parameter/1997990/2 "2024-08-30T09:36:36Z")

</div>

We’ll get someone to take a look.

---

<div class="post-metadata">

**Author:** ![Bug-Reporter](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/bug-reporter/32/997076_2.png) [@Bug-Reporter](https://forums.unrealengine.com/u/Bug-Reporter)\
**Post date:** [September 11, 2024, 12:41am UTC](https://forums.unrealengine.com/t/server-crashes-several-minutes-after-using-verse-to-create-a-temporary-instance-of-material-with-a-parameter/1997990/3 "2024-09-11T00:41:43Z")

</div>

The status of FORT-789823 incident has been moved from ‘Needs Triage’ to ‘Closed’. Resolution Reason: ‘Cannot Reproduce’

---

<div class="post-metadata">

**Author:** ![Mohamad-Haikal](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mohamad-Haikal](https://forums.unrealengine.com/u/Mohamad-Haikal)\
**Post date:** [November 17, 2024, 2:44am UTC](https://forums.unrealengine.com/t/server-crashes-several-minutes-after-using-verse-to-create-a-temporary-instance-of-material-with-a-parameter/1997990/4 "2024-11-17T02:44:17Z")

</div>

I am facing the same problem. Did you find a solution?

---

<div class="post-metadata">

**Author:** ![latunda](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/latunda/32/1047041_2.png) [@latunda](https://forums.unrealengine.com/u/latunda)\
**Post date:** [November 17, 2024, 5:06am UTC](https://forums.unrealengine.com/t/server-crashes-several-minutes-after-using-verse-to-create-a-temporary-instance-of-material-with-a-parameter/1997990/5 "2024-11-17T05:06:53Z")

</div>

The workaround is in the Additional notes
