# Parametric methods crash server in bigger projects

**URL:** <https://forums.unrealengine.com/t/parametric-methods-crash-server-in-bigger-projects/1783828>\
**Category:** Issues and Bug Reporting\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, fortnite\
**Created:** [April 2, 2024, 3:41pm UTC](https://forums.unrealengine.com/t/parametric-methods-crash-server-in-bigger-projects/1783828 "2024-04-02T15:41:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kamyker](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kamyker/32/1194621_2.png) [@Kamyker](https://forums.unrealengine.com/u/Kamyker)\
**Post date:** [April 2, 2024, 3:41pm UTC](https://forums.unrealengine.com/t/parametric-methods-crash-server-in-bigger-projects/1783828/1 "2024-04-02T15:41:17Z")

</div>

### Please select what you are reporting on:

Verse

### What Type of Bug are you experiencing?

Verse

### Summary

I’ve seen this issue in many projects with different types of parametric methods.

The bigger project gets the chance of parametric methods crashing server increases.

Example methods:

- any array sort method
- methods returning t like:

```auto
(Arr:[]t where t:type).FirstData<public>(Check:type{_(:t,:t2)<decides><transacts>:void}, Data:t2 where t2:type)<decides><transacts>:t=
	var Ret:?t = false
	N := Arr.Length
	var X :int= 0 
	loop:
		if(Item := Arr[X], Check[Item, Data]):
			set Ret = option. Item
			break

		set X += 1
		if(X >= N):
			break
			
	if(Item := Ret?):
		Item
	else:
		Fail[]
		Err()

```

Replacing these methods with non-parametric versions stops crashing.

### Steps to Reproduce

1. Open island with private version 5629-5012-5598
2. Run
3. Wait for player to fall down
4. Crash (visible by top money popup not disappearing, waiting longer will kick player from the server)

It’s caused by line 167 in house\_manager\_devic.verse file, replacing with commented non parametric method stops crashing:

```auto
	GetAgentsHouse(Agent:agent)<decides><transacts>:house_manager=
		HouseManagers.FirstDataHouseAgent[IsPlayerOwningHouse, Agent]
		# HouseManagers.FirstData[IsPlayerOwningHouse, Agent]

```

### Expected Result

No crash when using parametric method

### Observed Result

Server crash

### Platform(s)

Windows

### Island Code

5629-5012-5598

---

<div class="post-metadata">

**Author:** ![Bug-Reporter](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/bug-reporter/32/1223650_2.png) [@Bug-Reporter](https://forums.unrealengine.com/u/Bug-Reporter)\
**Post date:** [April 2, 2024, 5:07pm UTC](https://forums.unrealengine.com/t/parametric-methods-crash-server-in-bigger-projects/1783828/2 "2024-04-02T17:07:50Z")

</div>

The status of FORT-727850 incident has been moved from ‘In Testing’ to ‘Closed’. Resolution Reason: ‘Fixed’

---

<div class="post-metadata">

**Author:** ![Kamyker](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kamyker/32/1194621_2.png) [@Kamyker](https://forums.unrealengine.com/u/Kamyker)\
**Post date:** [April 13, 2024, 11:23am UTC](https://forums.unrealengine.com/t/parametric-methods-crash-server-in-bigger-projects/1783828/3 "2024-04-13T11:23:24Z")

</div>

Bump, anyone with the same issue - upvote please.

---

<div class="post-metadata">

**Author:** ![Kamyker](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kamyker/32/1194621_2.png) [@Kamyker](https://forums.unrealengine.com/u/Kamyker)\
**Post date:** [June 16, 2024, 7:44pm UTC](https://forums.unrealengine.com/t/parametric-methods-crash-server-in-bigger-projects/1783828/4 "2024-06-16T19:44:30Z")

</div>

> <https://x.com/saambarati/status/1798759275982147722>
