# ErrRuntime\_Internal when callng team settings device EndRound

**URL:** <https://forums.unrealengine.com/t/errruntime-internal-when-callng-team-settings-device-endround/1836689>\
**Category:** Issues and Bug Reporting\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, fixed, fortnite\
**Created:** [May 2, 2024, 3:22pm UTC](https://forums.unrealengine.com/t/errruntime-internal-when-callng-team-settings-device-endround/1836689 "2024-05-02T15:22:37Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![VerySpicyGames](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@VerySpicyGames](https://forums.unrealengine.com/u/VerySpicyGames)\
**Post date:** [May 2, 2024, 3:22pm UTC](https://forums.unrealengine.com/t/errruntime-internal-when-callng-team-settings-device-endround/1836689/1 "2024-05-02T15:22:37Z")

</div>

### Reference ID

dc580972-40f8-ff29-e63b-c4b2f81d97cc

### Please select what you are reporting on:

Verse

### What Type of Bug are you experiencing?

Verse

### Summary

Have 3 separate errors piling up in the thousands in the content service that all seem to lead to one place:  
team\_settings\_and\_inventory?ice:(/Fortnite.com/Devices/team\_settings\_and\_inventory\_device:)EndRound

### Steps to Reproduce

Check the error log of the islands

### Expected Result

No errors

### Observed Result

> ErrRuntime\_Internal  
> An internal runtime error occurred. There is no other information available.  
> Stack Trace
> 
> Verse unrecoverable error: ErrRuntime\_Internal: An internal runtime error occurred. There is no other information available.
> 
> Truncated callstack follows:  
> team\_settings\_and\_inventory?ice:(/Fortnite.com/Devices/team\_settings\_and\_inventory\_device:)EndRound (Unknown source) (Source: Unknown(0,0, 0,0))  
> winner\_manager?ice:(/projects.epicgames.com/\_0e74621044b49e68877dfcb2cebe3b22/winner\_manager\_device:)OnWinnerStopped (Unknown source) (Source: Unknown(0,0, 0,0))  
> winner\_manager?ice:(/projects.epicgames.com/\_0e74621044b49e68877dfcb2cebe3b22/winner\_manager\_device:)OnWinnerStopped3(:any):void (Unknown source) (Source: Unknown(0,0, 0,0))

> ErrRuntime\_Internal  
> An internal runtime error occurred. There is no other information available.  
> Stack Trace
> 
> Verse unrecoverable error: ErrRuntime\_Internal: An internal runtime error occurred. There is no other information available.
> 
> Truncated callstack follows:  
> team\_settings\_and\_inventory?ice:(/Fortnite.com/Devices/team\_settings\_and\_inventory\_device:)EndRound (Unknown source) (Source: Unknown(0,0, 0,0))  
> game\_manager?ice:(/projects.epicgames.com/\_0e74621044b49e68877dfcb2cebe3b22/game\_manager\_device:)OnAgentEntersStartArea(:agent) (Unknown source) (Source: Unknown(0,0, 0,0))  
> game\_manager?ice:(/projects.epicgames.com/\_0e74621044b49e68877dfcb2cebe3b22/game\_manager\_device:)OnAgentEntersStartArea38(:any):void (Unknown source) (Source: Unknown(0,0, 0,0))

> ErrRuntime\_Internal  
> An internal runtime error occurred. There is no other information available.  
> Stack Trace
> 
> Verse unrecoverable error: ErrRuntime\_Internal: An internal runtime error occurred. There is no other information available.
> 
> Truncated callstack follows:  
> team\_settings\_and\_inventory?ice:(/Fortnite.com/Devices/team\_settings\_and\_inventory\_device:)EndRound (Unknown source) (Source: Unknown(0,0, 0,0))  
> game\_manager?ice:(/projects.epicgames.com/\_0e74621044b49e68877dfcb2cebe3b22/game\_manager\_device:)OnAgentEntersStartArea(:agent) (Unknown source) (Source: Unknown(0,0, 0,0))  
> game\_manager?ice:(/projects.epicgames.com/\_0e74621044b49e68877dfcb2cebe3b22/game\_manager\_device:)OnAgentEntersStartArea38(:any):void (Unknown source) (Source: Unknown(0,0, 0,0))

### Platform(s)

windows

### Island Code

1734-8951-4401

---

<div class="post-metadata">

**Author:** ![Nathanpr0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nathanpr0](https://forums.unrealengine.com/u/Nathanpr0)\
**Post date:** [May 6, 2024, 5:58pm UTC](https://forums.unrealengine.com/t/errruntime-internal-when-callng-team-settings-device-endround/1836689/2 "2024-05-06T17:58:57Z")

</div>

This error also happened to me.

```auto
Verse unrecoverable error: ErrRuntime_Internal: An internal runtime error occurred. There is no other information available.

Truncated callstack follows:
team_settings_and_inventory?ice:(/Fortnite.com/Devices/team_settings_and_inventory_device:)EndRound (Unknown source) (Source: Unknown(0,0, 0,0))
colored_buddies_gamemode:(/projects.epicgames.com/_6639007046b4267f65b07dac72c64960/colored_buddies_gamemode:)RestartGame(:?RespawnPlayers:logic = ...) (Unknown source) (Source: Unknown(0,0, 0,0))
task_colored_buddies_gamemode$StartObjective(:int):Update (Unknown source) (Source: Unknown(0,0, 0,0))

```

---

<div class="post-metadata">

**Author:** ![SpyderNic](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/spydernic/32/933252_2.png) [@SpyderNic](https://forums.unrealengine.com/u/SpyderNic)\
**Post date:** [May 24, 2024, 6:44pm UTC](https://forums.unrealengine.com/t/errruntime-internal-when-callng-team-settings-device-endround/1836689/3 "2024-05-24T18:44:24Z")

</div>

I also get this error

```auto
team_settings_and_inventory?ice:(/Fortnite.com/Devices/team_settings_and_inventory_device:)EndRound (Unknown source) (Source: Unknown(0,0, 0,0))

```

It doesn’t happen 100% of the time `EndRound()` is called either, so not sure what’s going on.

Also since last update (v30.00), it stops the game with the Verse runtime error popup, making it impossible to release the island as is.

---

<div class="post-metadata">

**Author:** ![SpyderNic](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/spydernic/32/933252_2.png) [@SpyderNic](https://forums.unrealengine.com/u/SpyderNic)\
**Post date:** [May 26, 2024, 12:53pm UTC](https://forums.unrealengine.com/t/errruntime-internal-when-callng-team-settings-device-endround/1836689/4 "2024-05-26T12:53:51Z")

</div>

After further investigation, it looks like if **anyone** leaves the match, the error will happen when ending the round.

I have tried the following scenarios on a 1v1 match:

- Team 1 player leaving the match, Team 1 winning the round
- Team 1 player leaving the match, Team 2 winning the round
- Team 1 player leaving the match then rejoining, Team 1 winning the round
- Team 1 player leaving the match then rejoining, Team 2 winning the round

In all of the above, another player was present on the server in Team 2, and the error triggered every time. I have also reproduced some of these with 2v1, with the player in the team of 2 leaving.

The error did not trigger if no one left the match during the round.

@Flak is that something the team is aware of? I hope these extra details can help tracking down the issue.

---

<div class="post-metadata">

**Author:** ![LionUnchained](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/lionunchained/32/1039015_2.png) [@LionUnchained](https://forums.unrealengine.com/u/LionUnchained)\
**Post date:** [May 26, 2024, 2:34pm UTC](https://forums.unrealengine.com/t/errruntime-internal-when-callng-team-settings-device-endround/1836689/5 "2024-05-26T14:34:03Z")

</div>

Currently thinking this related to them being the last player in the game and then leaving, which no valid players are then left to use for EndRound so it just errors, but the server is closing anyways. Not sure if this could still result in the win/loss pattern you’re seeing.

---

<div class="post-metadata">

**Author:** ![SpyderNic](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/spydernic/32/933252_2.png) [@SpyderNic](https://forums.unrealengine.com/u/SpyderNic)\
**Post date:** [May 26, 2024, 2:49pm UTC](https://forums.unrealengine.com/t/errruntime-internal-when-callng-team-settings-device-endround/1836689/6 "2024-05-26T14:49:25Z")

</div>

Definitely not the last player on the server - in the scenarios I’ve provided above, there was always at least one player on the server, and the second player was leaving (and rejoining in some cases).  
I have edited my previous post to highlight that, in case it wasn’t clear.

---

<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:** [May 26, 2024, 3:10pm UTC](https://forums.unrealengine.com/t/errruntime-internal-when-callng-team-settings-device-endround/1836689/7 "2024-05-26T15:10:36Z")

</div>

Check your verse code, ensure it is not trying to access or pass agent who has left as a parameter. I think the team is working on devices so that they are more resilient, but in the meantime try to subscribe to PlayerRemovedEvent and update your maps and arrays accordingly so they no longer contain invalid agents.

---

<div class="post-metadata">

**Author:** ![SpyderNic](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/spydernic/32/933252_2.png) [@SpyderNic](https://forums.unrealengine.com/u/SpyderNic)\
**Post date:** [May 26, 2024, 3:15pm UTC](https://forums.unrealengine.com/t/errruntime-internal-when-callng-team-settings-device-endround/1836689/8 "2024-05-26T15:15:09Z")

</div>

The `EndRound` function in `team_settings_and_inventory_device` does not take any parameter.

> **[End Round Function | Unreal Editor For Fortnite Documentation | Epic...](https://dev.epicgames.com/documentation/en-us/uefn/verse-api/fortnitedotcom/devices/team_settings_and_inventory_device/endround)**
>
> Learn technical details about the EndRound function.

---

<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:** [May 26, 2024, 4:31pm UTC](https://forums.unrealengine.com/t/errruntime-internal-when-callng-team-settings-device-endround/1836689/9 "2024-05-26T16:31:18Z")

</div>

Lol is it possible there is no one left on that team? You should probably check before calling.

BTW I use round\_settings\_device to manage rounds.

---

<div class="post-metadata">

**Author:** ![SpyderNic](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/spydernic/32/933252_2.png) [@SpyderNic](https://forums.unrealengine.com/u/SpyderNic)\
**Post date:** [May 26, 2024, 4:35pm UTC](https://forums.unrealengine.com/t/errruntime-internal-when-callng-team-settings-device-endround/1836689/10 "2024-05-26T16:35:35Z")

</div>

Even if no-one was left on either team, I’d still expect it to work, but as I mentioned earlier, it doesn’t matter how many people are left in either team, the error will trigger if anyone leaves.

I was originally using `round_settings_device` and passing an `Agent` to end a round, but somehow I always ended up in a “Draw” rather than Victory/Defeat, and using the teams settings directly was actually working.  
Well, until last update that is 🙂

I will check tomorrow whether the error is a red herring and something happens after the round ends - and as you suggested whether a invalid player is being accessed.  
I do keep players that left on the scoreboard as well, I’ll have to play with that setting to see if it’s related.

---

<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:** [May 26, 2024, 4:39pm UTC](https://forums.unrealengine.com/t/errruntime-internal-when-callng-team-settings-device-endround/1836689/11 "2024-05-26T16:39:47Z")

</div>

I too think all Fortnite devices should just do nothing if somehow agent became invalid or handle better instead of runtime error.

---

<div class="post-metadata">

**Author:** ![SpyderNic](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/spydernic/32/933252_2.png) [@SpyderNic](https://forums.unrealengine.com/u/SpyderNic)\
**Post date:** [May 27, 2024, 10:38am UTC](https://forums.unrealengine.com/t/errruntime-internal-when-callng-team-settings-device-endround/1836689/13 "2024-05-27T10:38:39Z")

</div>

More tests…

- Unticking “Include Players Who Left Game In Scoreboard” does not fix the issue  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/7/6/a76182c7fb0ebc59bb6042089eafb8b4817c4acd.png)

- There is nothing happening after the `RoundEnd` is called, so it’s not an invalid player issue

- Tried to use the RoundSettings to call `EndRound(Agent)`, and to my surprise the **error still occurs**

---

<div class="post-metadata">

**Author:** ![SpyderNic](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/spydernic/32/933252_2.png) [@SpyderNic](https://forums.unrealengine.com/u/SpyderNic)\
**Post date:** [May 27, 2024, 4:12pm UTC](https://forums.unrealengine.com/t/errruntime-internal-when-callng-team-settings-device-endround/1836689/14 "2024-05-27T16:12:22Z")

</div>

So by now I am able to recreate the error 100% of the time. Out of curiosity I’ve been reverting to various previous check-ins, and at some point that error was not happening. It took a loooong time to pinpoint the version that caused the issue.

The culprit version only had cosmetic changes, such as moving walls, and one functional change, which was adding a barrier device to block bullets in a specific area.

So the first thing I tried was going back to the latest version again, and deleting that barrier. The error is gone… Adding another barrier made the error come back.

I don’t know what to tell you, I have questions… like, is there a limit of the barrier devices you can have in the map? This was barrier #42… is 42 really the answer to everything?

I feel like my sanity is slipping away, but at least that error is gone.

As a side note, deleting the barrier made most of my custom devices lose reference to each other, or empty data arrays they had, so I had to re-hook all that up, but again, the issue is gone at long last. 🤷‍♂️

---

<div class="post-metadata">

**Author:** ![Punkcat](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/punkcat/32/1191421_2.png) [@Punkcat](https://forums.unrealengine.com/u/Punkcat)\
**Post date:** [May 28, 2024, 4:40am UTC](https://forums.unrealengine.com/t/errruntime-internal-when-callng-team-settings-device-endround/1836689/15 "2024-05-28T04:40:52Z")

</div>

I’ve noticed an issues when using the End Game Device. Not seeing any Runtime Errors, but rounds are sometimes not ending when End Game is called from Verse (passing Agent) and then also when a backup End Game Device is triggered from a Triggered Device. The issue appears to carry between all rounds in a session that experiences this issue.

The only thing I’ve been able to point at is:

- Players leaving the game.
- A current Matchmaking bug that doesn’t allow Matchmaking to be disabled.

I’ve been unable to recreate the effect with 100% accuracy to confidently pinpoint the issue.

---

<div class="post-metadata">

**Author:** ![LionUnchained](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/lionunchained/32/1039015_2.png) [@LionUnchained](https://forums.unrealengine.com/u/LionUnchained)\
**Post date:** [June 3, 2024, 9:21am UTC](https://forums.unrealengine.com/t/errruntime-internal-when-callng-team-settings-device-endround/1836689/16 "2024-06-03T09:21:51Z")

</div>

I stopped using built in rounds personally. If I need rounds I just handle everything myself. It’s really a shame that so much of epics built in functionality is so buggy, I remember when I started how nice it was to have devices and game modes, but now it actually makes development more difficult.

---

<div class="post-metadata">

**Author:** ![lootheo](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/lootheo/32/720722_2.png) [@lootheo](https://forums.unrealengine.com/u/lootheo)\
**Post date:** [June 19, 2024, 12:42am UTC](https://forums.unrealengine.com/t/errruntime-internal-when-callng-team-settings-device-endround/1836689/17 "2024-06-19T00:42:48Z")

</div>

We also have this issue, doesn’t matter what way we end the round, via team settings or end round device, checking our player also doesnt work.

If anyone knows of a workaround let us besides creating our round system let us know.

A few key things to mention from our map.

We move players from one team to another via AddToTeam  
Almost always breaks after a player leaving a map and the round ending.

---

<div class="post-metadata">

**Author:** ![LionUnchained](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/lionunchained/32/1039015_2.png) [@LionUnchained](https://forums.unrealengine.com/u/LionUnchained)\
**Post date:** [June 19, 2024, 9:45am UTC](https://forums.unrealengine.com/t/errruntime-internal-when-callng-team-settings-device-endround/1836689/19 "2024-06-19T09:45:23Z")

</div>

Have you guys tried using the Round Manager to end the round instead of the Team Settings & Inventory?

The other things I’d try is using a Round Settings & Inventory Device that’s team is set to Any so no specific team is sent thru the end round device. As well as hooking up a trigger to either the round manager or ts&i devices and then triggering that and letting the device association do the End Round event.

If those fail then you probably need to just use conditions that are present within the round settings device. Im not sure there are any other options outside of these.

---

<div class="post-metadata">

**Author:** ![lootheo](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/lootheo/32/720722_2.png) [@lootheo](https://forums.unrealengine.com/u/lootheo)\
**Post date:** [June 20, 2024, 5:32pm UTC](https://forums.unrealengine.com/t/errruntime-internal-when-callng-team-settings-device-endround/1836689/20 "2024-06-20T17:32:19Z")

</div>

Yeah we tried we various devices but with no luck.  
We also tried triggering with a normal trigger as you mentioned.  
My other assumption is that player eliminated event was being executed outside the game thread, so we set a variable and trigger end game from elsewhere.

My assumption is that when a player leaves there is a dangling null pointer somewhere in the code for team collections, crashing the device when triggering an end game.

We will do more tests tomorrow but we also noticed that the crash seems to allow the game to keep running so we will just do some housekeeping on each round start to ensure no issues. If the issue continues to degrade the round we will have to just do our own round system like you mentioned.

---

<div class="post-metadata">

**Author:** ![LionUnchained](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/lionunchained/32/1039015_2.png) [@LionUnchained](https://forums.unrealengine.com/u/LionUnchained)\
**Post date:** [June 22, 2024, 8:50am UTC](https://forums.unrealengine.com/t/errruntime-internal-when-callng-team-settings-device-endround/1836689/21 "2024-06-22T08:50:29Z")

</div>

Not sure if this insight adds any value to you but I think that there may be something going on with teams and end round conditions that is implied by this solution.

> [@End of round - logic](https://forums.unrealengine.com/t/end-of-round-logic/1885552):
>
> Hey everyone! I’m working on a Box PvP map in Unreal Editor for Fortnite, and I’m having some trouble with the end-of-round logic. I’ve designed the map to accommodate 8 players, but I want to implement a feature where the last player standing automatically wins the round and the next round begins immediately. However, I’m having trouble figuring out how to achieve this. Also: players who have died before - spectate until the next round starts Thank you in advance!

If you have last man standing in order to handle join in progress you have to set it to spectator. I did some tests before and the way that spectator spawn on join works is the players get spawned and instantly eliminated.  
I am wondering if your join in progress setting may have anything to do with it. (you really never know when you let epic handle this kind of stuff, and is precisely why I ended up just doing a full replacement, too many inferred dependencies and workarounds involved)  
(no idea if this will be useful but just figured I’d check since you seem to be out of options)

---

<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:** [June 24, 2024, 7:04pm UTC](https://forums.unrealengine.com/t/errruntime-internal-when-callng-team-settings-device-endround/1836689/22 "2024-06-24T19:04:19Z")

</div>

Thanks all for the detailed info. The team is working on a fix for this.

[Next page](https://forums.unrealengine.com/t/errruntime-internal-when-callng-team-settings-device-endround/1836689.md?page=2)
