# What happens when verse runtime error occurs

**URL:** <https://forums.unrealengine.com/t/what-happens-when-verse-runtime-error-occurs/1863257>\
**Category:** Verse\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, question, fortnite\
**Created:** [May 19, 2024, 1:07pm UTC](https://forums.unrealengine.com/t/what-happens-when-verse-runtime-error-occurs/1863257 "2024-05-19T13:07:37Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kasity](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kasity](https://forums.unrealengine.com/u/Kasity)\
**Post date:** [May 19, 2024, 1:07pm UTC](https://forums.unrealengine.com/t/what-happens-when-verse-runtime-error-occurs/1863257/1 "2024-05-19T13:07:37Z")

</div>

When a `Verse unrecoverable error` occurs, will that one device with the runtime error stop working under that game/round or will every device that is written in verse (my other devices) stop working under the same game/round. So basically will one runtime error make verse completely stop working for that round/game? I didn’t find any documantion on runtime errors and what happens after it occurs 🙂

---

<div class="post-metadata">

**Author:** ![Jimbohalo10](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jimbohalo10/32/961440_2.png) [@Jimbohalo10](https://forums.unrealengine.com/u/Jimbohalo10)\
**Post date:** [May 19, 2024, 8:09pm UTC](https://forums.unrealengine.com/t/what-happens-when-verse-runtime-error-occurs/1863257/2 "2024-05-19T20:09:16Z")

</div>

@Kasity ,

There was a runtime error before and it needed `<decides>` added to start of your function recover on error and appear to have done nothing you then have to use Log.Print or print  
to check the values

[I want to know under what conditions this error occurs in Verse](https://forums.unrealengine.com/t/i-want-to-know-under-what-conditions-this-error-occurs-in-verse/1841137/5)

---

<div class="post-metadata">

**Author:** ![im\_a\_lama](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/im_a_lama/32/995063_2.png) [@im\_a\_lama](https://forums.unrealengine.com/u/im_a_lama)\
**Post date:** [May 23, 2024, 7:57am UTC](https://forums.unrealengine.com/t/what-happens-when-verse-runtime-error-occurs/1863257/3 "2024-05-23T07:57:56Z")

</div>

As of 29.40, Verse runtime errors seem to work that way (from what I tested) :

- When a crash occurs, the whole **stack trace that caused the crash** gets crashed
- What’s crashing is not necessarily the device that contains the faulty code, but rather **the device that called the faulty code**  
So if deviceA calls deviceB.FunctionThatCrashes(), then deviceA will get crashed
- As I said, when crashed, everything in the **call stack** is crashed, and because the origin of all calls are located inside the OnBegin() function, **every call that you made inside OnBegin gets also canceled** , event subscriptions included  
If we take the example with deviceA and deviceB again, deviceA will get crashed and subscriptions inside this device are directly canceled, but deviceA and its functions are still callable, I’m not sure if the mutated data is retained there, but I think it should
- Because event subscriptions are canceled upon crash, your server might actually get frozen if your gameplay loop relies on the device that crashed
- **1.0 devices** and events plugged through **DEB** will keep on working
- The device OnEnd() method doesn’t get called
- There’s no native way to handle crashes

> To iterate once more on the call stack example, if **deviceB** calls **deviceA** which calls **deviceB.FunctionThatCrashes()** in the same call stack (same frame, same initial call), then deviceB will crash, I’d suggest looking more into what the call stack means if you’re having trouble understand that

Here’s a script I made to handle runtime errors, I wish we had a way to handle that natively though, hope it helps, I’m here if you have any questions

~~[https://dev.epicgames.com/community/snippets/4WDO/fortnite-verse-crash-detector](https://dev.epicgames.com/community/snippets/4WDO/fortnite-verse-crash-detector)~~

[verse\_crash\_detector (README) - Pastebin.com](https://pastebin.com/BmWxGrw1) (  
[verse\_crash\_detector (VERSE CODE) - Pastebin.com](https://pastebin.com/0VjLViFu) (  
[verse\_crash\_detector (DEVICES) - Pastebin.com](https://pastebin.com/p4xEdHVF) (

---

<div class="post-metadata">

**Author:** ![TheGirlsStudio](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TheGirlsStudio](https://forums.unrealengine.com/u/TheGirlsStudio)\
**Post date:** [May 23, 2024, 3:40pm UTC](https://forums.unrealengine.com/t/what-happens-when-verse-runtime-error-occurs/1863257/5 "2024-05-23T15:40:58Z")

</div>

That sounds fantastic, but is the snippet link private or something? Even while logged in, I got a 404 Not Found error.

---

<div class="post-metadata">

**Author:** ![Astrotronic](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/astrotronic/32/1194566_2.png) [@Astrotronic](https://forums.unrealengine.com/u/Astrotronic)\
**Post date:** [May 23, 2024, 3:54pm UTC](https://forums.unrealengine.com/t/what-happens-when-verse-runtime-error-occurs/1863257/6 "2024-05-23T15:54:09Z")

</div>

Double-check that you are logged in. I just opened a new incognito tab, ctrl + shift + n in chrome, to mimic what happens when someone would try to open that link without being logged in, and I do see that 404 error. - Works normally for me otherwise.

---

<div class="post-metadata">

**Author:** ![PWRKKSlider](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/pwrkkslider/32/637009_2.png) [@PWRKKSlider](https://forums.unrealengine.com/u/PWRKKSlider)\
**Post date:** [May 23, 2024, 6:13pm UTC](https://forums.unrealengine.com/t/what-happens-when-verse-runtime-error-occurs/1863257/7 "2024-05-23T18:13:08Z")

</div>

This was really helpful! Only problem was I couldn’t get the verse snippit even if I was logged in (gives me a 404 error).

I was also wondering if you knew why I sometimes get (Callstack Unavailable) in the crash report. I’ve been working on this bug for days but can’t understand where the problem is without the callstack info. [Imgur: The magic of the Internet](https://imgur.com/qkoptg8)

Thanks again for the helpful info. Hopefully this will let me fix my crashes!

---

<div class="post-metadata">

**Author:** ![im\_a\_lama](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/im_a_lama/32/995063_2.png) [@im\_a\_lama](https://forums.unrealengine.com/u/im_a_lama)\
**Post date:** [May 23, 2024, 7:07pm UTC](https://forums.unrealengine.com/t/what-happens-when-verse-runtime-error-occurs/1863257/8 "2024-05-23T19:07:43Z")

</div>

I don’t know what’s wrong with the snippet page, we shouldn’t be connected to get access to that (@Astrotronic), can you try reconnecting though ? I’ll upload somewhere else otherwise, lmk

The infinite loop issue won’t be detected in my script also, it’s an issue somewhere in your code, look for `loop` blocks that could eventually trigger infinitely

EDIT: mb the snippet got refused somehow

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/5/d/85d5a58eb2baffdfc7186b7c4a425b3d8bff03b9.png)

I think it got refused because I used the Verse category to add the README, it wouldn’t let me choose any other relevant category in which people could press “Expand” instead of “Copy full snippet” (which doesn’t make sense for a README), had to switch to pastebin

---

<div class="post-metadata">

**Author:** ![im\_a\_lama](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/im_a_lama/32/995063_2.png) [@im\_a\_lama](https://forums.unrealengine.com/u/im_a_lama)\
**Post date:** [May 23, 2024, 7:16pm UTC](https://forums.unrealengine.com/t/what-happens-when-verse-runtime-error-occurs/1863257/9 "2024-05-23T19:16:58Z")

</div>

I updated the post
