# Exception support broken in UE5.1 linux?

**URL:** <https://forums.unrealengine.com/t/exception-support-broken-in-ue5-1-linux/778664>\
**Category:** C++\
**Tags:** library, exception, Third-Party, unreal-engine\
**Created:** [February 25, 2023, 11:28pm UTC](https://forums.unrealengine.com/t/exception-support-broken-in-ue5-1-linux/778664 "2023-02-25T23:28:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![axr\_jean-philippe](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@axr\_jean-philippe](https://forums.unrealengine.com/u/axr_jean-philippe)\
**Post date:** [February 25, 2023, 11:28pm UTC](https://forums.unrealengine.com/t/exception-support-broken-in-ue5-1-linux/778664/1 "2023-02-25T23:28:39Z")

</div>

I have a third-party C++17 library that utilizes exceptions which was first successfully integrated into UE 4.24 and has worked in every major version since.

Now for some reason, in UE5.1, the exact same library, whose code and build configuration hasn’t changed is causing hard runtime crashes but only for the Linux build of the 5.1 engine. Everything still works fine for Windows builds.

Has something changed in the 5.1 linux configuration to cause this?

TIA!

---

<div class="post-metadata">

**Author:** ![nxrighthere](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@nxrighthere](https://forums.unrealengine.com/u/nxrighthere)\
**Post date:** [December 12, 2023, 3:33pm UTC](https://forums.unrealengine.com/t/exception-support-broken-in-ue5-1-linux/778664/2 "2023-12-12T15:33:59Z")

</div>

We encountered the same issue today; exception handling no longer works on Linux.

---

<div class="post-metadata">

**Author:** ![nxrighthere](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@nxrighthere](https://forums.unrealengine.com/u/nxrighthere)\
**Post date:** [January 8, 2024, 4:23pm UTC](https://forums.unrealengine.com/t/exception-support-broken-in-ue5-1-linux/778664/3 "2024-01-08T16:23:02Z")

</div>

I found the root cause. It appears that when the Steam online subsystem is enabled, it re-handles any exceptions and forcefully terminates the program with `pthread_kill()`. Setting

```auto
[OnlineSubsystemSteam]
bEnabled=false

```

in `DefaultEngine.ini` restores the exception handling.

---

<div class="post-metadata">

**Author:** ![nxrighthere](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@nxrighthere](https://forums.unrealengine.com/u/nxrighthere)\
**Post date:** [January 8, 2024, 7:26pm UTC](https://forums.unrealengine.com/t/exception-support-broken-in-ue5-1-linux/778664/4 "2024-01-08T19:26:21Z")

</div>

To be more precise, it seems that it’s the `SteamShared` which is the dependency in the `OnlineSubsystemSteam`.

A more spartan approach is to disable Steam modules loading in `FSteamSharedModule::LoadSteamModules()`.

---

<div class="post-metadata">

**Author:** ![nxrighthere](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@nxrighthere](https://forums.unrealengine.com/u/nxrighthere)\
**Post date:** [January 24, 2024, 10:26am UTC](https://forums.unrealengine.com/t/exception-support-broken-in-ue5-1-linux/778664/5 "2024-01-24T10:26:21Z")

</div>

Updating Steamworks from 1.53a to 1.58a also resolves the issue with exceptions.
