# CasparCG crashes randomly on Ubuntu 24.04

**URL:** <https://casparcgforum.org/t/casparcg-crashes-randomly-on-ubuntu-24-04/7537>\
**Category:** General\
**Created:** [April 15, 2026, 11:57am UTC](https://casparcgforum.org/t/casparcg-crashes-randomly-on-ubuntu-24-04/7537 "2026-04-15T11:57:50Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![mko1989](https://casparcgforum.org/letter_avatar_proxy/v4/letter/m/3bc359/32.png) [@mko1989](https://casparcgforum.org/u/mko1989)\
**Post date:** [April 15, 2026, 11:57am UTC](https://casparcgforum.org/t/casparcg-crashes-randomly-on-ubuntu-24-04/7537/1 "2026-04-15T11:57:50Z")

</div>

Hi!

I’m having this issue with CasparCG crashing randomly with illegal instructions error.

/home/casparcg/run.sh: line 12: 2493 Illegal instruction (core dumped) LD\_LIBRARY\_PATH=“$BASE\_DIR” “$BASE\_DIR/casparcg-server-2.5” “$BASE\_DIR/config/casparcg.config”

CasparCG crashed with code 132 — restarting in 2s…

Type “q” to close application.

Logging [info] or higher severity to log/

I tried many different approaches, fixes and builds and nothing seems to work. It happens on two different machines.  
Does anyone have any idea what it is and how can i fix this?

---

<div class="post-metadata">

**Author:** ![Julusian](https://casparcgforum.org/user_avatar/casparcgforum.org/julusian/32/12_2.png) [@Julusian](https://casparcgforum.org/u/Julusian)\
**Post date:** [April 15, 2026, 6:02pm UTC](https://casparcgforum.org/t/casparcg-crashes-randomly-on-ubuntu-24-04/7537/2 "2026-04-15T18:02:17Z")

</div>

How have you built this? have you tried with the deb packages?

Maybe your cpu doesnt support AVX2? The 2.5.0 release was built requiring that, but that has been stepped back in the not yet released 2.5.1 (but the beta builds of 2.5 on the website since then are updated)

---

<div class="post-metadata">

**Author:** ![mko1989](https://casparcgforum.org/letter_avatar_proxy/v4/letter/m/3bc359/32.png) [@mko1989](https://casparcgforum.org/u/mko1989)\
**Post date:** [April 15, 2026, 6:40pm UTC](https://casparcgforum.org/t/casparcg-crashes-randomly-on-ubuntu-24-04/7537/3 "2026-04-15T18:40:06Z")

</div>

I started with official deb package.  
My cpu does support avx2. Checked it a couple times.  
I went into a rabbit hole of trying to rule out its cef issues.  
Tried also a build from source with the portAudio from [GitHub - gmeisel01/server at portaudio-consumer · GitHub](https://github.com/gmeisel01/server/tree/portaudio-consumer)  
The second machine is an older one so it could be missing avx2, but the one i’m using now is quite modern with i7-14700KF.

Now im testing on Ubuntu 26.04

Will try beta builds next

---

<div class="post-metadata">

**Author:** ![mko1989](https://casparcgforum.org/letter_avatar_proxy/v4/letter/m/3bc359/32.png) [@mko1989](https://casparcgforum.org/u/mko1989)\
**Post date:** [April 16, 2026, 7:41am UTC](https://casparcgforum.org/t/casparcg-crashes-randomly-on-ubuntu-24-04/7537/4 "2026-04-16T07:41:28Z")

</div>

I can confirm now the crashes happen because of CEF. I did a fresh Ubuntu install, installed deb package of beta build 2.5.0 f517f48 Dev. Had it running all night with just videos, then in the morning i added some templates and in a couple minutes it crashed.  
Does anyone have an idea what can i do to fix this?

---

<div class="post-metadata">

**Author:** ![niklas](https://casparcgforum.org/letter_avatar_proxy/v4/letter/n/34f0e0/32.png) [@niklas](https://casparcgforum.org/u/niklas)\
**Post date:** [April 16, 2026, 2:09pm UTC](https://casparcgforum.org/t/casparcg-crashes-randomly-on-ubuntu-24-04/7537/5 "2026-04-16T14:09:50Z")

</div>

I’m guessing your templates are using quite a lot of memory? It’s probably the same issue as this:

> <https://github.com/chromiumembedded/cef/issues/3963>
>
> Hello
> 
> I'd like to bring to your attention a problem that some of our users are …experiencing.
> 
> This problem is a systematic crash with the following trace:
> 
> \`\`\`
> Stack trace : 
> Thread 171 "MemoryInfra" received signal SIGILL, Illegal instruction.
> \[Switching to Thread 0x7f584eaa2700 (LWP 88758)\]
> 0x00007f5858a2331a in ?? ()
> from /u/user/test/bin/libcef.so
> (gdb) backtrace
> \#0 0x00007f5858a2331a in ()
> at from /u/user/test/bin/libcef.so
> \#1 0x0001993083603000 in ()
> \#2 0x0000000300001139 in ()
> \#3 0x000000000016f000 in ()
> \#4 0x59cb2f800004cf20 in ()
> \#5 0x00d2fae029950080 in ()
> \#6 0x00007f588402cda0 in ()
> \#7 0x0000000000000000 in ()
> \`\`\`
> 
> It's difficult to debug because, if memory serves, MemoryInfra is very low in chromium. Unfortunately, we haven't yet managed to reproduce the scenario with cefclient on Linux.
> 
> However, while browsing the CEF forum, I noticed that we weren't the only ones: https://magpcss.org/ceforum/viewtopic.php?f=6&t=20146
> 
> There's every reason to believe that the switch to Chrome Runtime has led to a major change.
> 
> There may be a real problem lurking out there that deserves your attention.
> 
> We'd be delighted to hear from you.
> 
> For our part, we try to do our best to provide a reproducible scenario, as the crash often occurs after a prolonged standby period when the screen locks and the user returns to connect to it.

The tl:dr; seems to be to “ **build CEF without sysroot** ” (in an environment with glibc \>= 2.33). …which is rather inconvenient for regular users of casparcg… I know of others that have done just that, and it resolved the issue for them. I’ll see if I can get hold of their cef build and how to make that available for you to test

---

<div class="post-metadata">

**Author:** ![mko1989](https://casparcgforum.org/letter_avatar_proxy/v4/letter/m/3bc359/32.png) [@mko1989](https://casparcgforum.org/u/mko1989)\
**Post date:** [April 16, 2026, 3:19pm UTC](https://casparcgforum.org/t/casparcg-crashes-randomly-on-ubuntu-24-04/7537/6 "2026-04-16T15:19:59Z")

</div>

Yes, that is exactly it. If you manage to get a build, that would be great.

I’ll get back to it next week.

The templates I use are mostly borders for PIP layers, will also try to check how memory hungry they are.

---

<div class="post-metadata">

**Author:** ![niklas](https://casparcgforum.org/letter_avatar_proxy/v4/letter/n/34f0e0/32.png) [@niklas](https://casparcgforum.org/u/niklas)\
**Post date:** [April 17, 2026, 8:43am UTC](https://casparcgforum.org/t/casparcg-crashes-randomly-on-ubuntu-24-04/7537/7 "2026-04-17T08:43:55Z")

</div>

@Julusian How would we go about doing this? I can upload the custom built cef archive (it’s a drop in replacement for the “official” releases that we use, exact same version) to the dependencies releases. I’m not 100% sure what the consequences are if you try to run this build on a system with a glibc version earlier that 2.33, but from what I can tell, even ubuntu 22.04 came with a newer glibc than that.

Should I just replace the cef archive that we have, or should we provide som kind of “alternative cef” that you opt-in for via cmake options? I think it could be fine to try to just replace it. Ppl running the dev builds know what they are in for 🙂

---

<div class="post-metadata">

**Author:** ![mko1989](https://casparcgforum.org/letter_avatar_proxy/v4/letter/m/3bc359/32.png) [@mko1989](https://casparcgforum.org/u/mko1989)\
**Post date:** [April 25, 2026, 9:38pm UTC](https://casparcgforum.org/t/casparcg-crashes-randomly-on-ubuntu-24-04/7537/8 "2026-04-25T21:38:56Z")

</div>

I’ve managed to build cef without sys root and it 100% stopped the crashes.

I have the same question as one of the commenters from the GitHub thread you linked. How is this not more widespread?

---

<div class="post-metadata">

**Author:** ![Julusian](https://casparcgforum.org/user_avatar/casparcgforum.org/julusian/32/12_2.png) [@Julusian](https://casparcgforum.org/u/Julusian)\
**Post date:** [April 26, 2026, 2:51pm UTC](https://casparcgforum.org/t/casparcg-crashes-randomly-on-ubuntu-24-04/7537/9 "2026-04-26T14:51:14Z")

</div>

I am not opposed to replacing the default CEF build, it would keep variations in build config to a minimum. I don’t think the glibc change is a problem, as long as it is compatible with our target ubuntu releases.

I think that before we change it we need to make sure that the process of building this is documented (relative to the official building docs), so that I know how to rebuild CEF in the same way when we want to update it (and technically its needed for GPL reasons)

---

<div class="post-metadata">

**Author:** ![niklas](https://casparcgforum.org/letter_avatar_proxy/v4/letter/n/34f0e0/32.png) [@niklas](https://casparcgforum.org/u/niklas)\
**Post date:** [April 26, 2026, 4:52pm UTC](https://casparcgforum.org/t/casparcg-crashes-randomly-on-ubuntu-24-04/7537/10 "2026-04-26T16:52:37Z")

</div>

The archive I have has been built in a docker container. It would be easy to make a minimal Dockerfile that we can include or link from documentation

---

<div class="post-metadata">

**Author:** ![theyknewallalong](https://casparcgforum.org/user_avatar/casparcgforum.org/theyknewallalong/32/2361_2.png) [@theyknewallalong](https://casparcgforum.org/u/theyknewallalong)\
**Post date:** [June 4, 2026, 10:31am UTC](https://casparcgforum.org/t/casparcg-crashes-randomly-on-ubuntu-24-04/7537/11 "2026-06-04T10:31:41Z")

</div>

@mko1989 Hi, do you have a way to share the cef build with the community?  
Having the exact same problem for some time

---

<div class="post-metadata">

**Author:** ![mko1989](https://casparcgforum.org/letter_avatar_proxy/v4/letter/m/3bc359/32.png) [@mko1989](https://casparcgforum.org/u/mko1989)\
**Post date:** [June 4, 2026, 10:46am UTC](https://casparcgforum.org/t/casparcg-crashes-randomly-on-ubuntu-24-04/7537/12 "2026-06-04T10:46:51Z")

</div>

It’s on my GitHub in releases, but it was built against a custom CasparCG build with port audio and some other enhancements. It should still work tho.

> **[Release cef\_build\_minimal\_no\_root · mko1989/highascg](https://github.com/mko1989/highascg/releases/tag/v.142)**
>
> test client for casparcg. Contribute to mko1989/highascg development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![dimitry\_ishenko](https://casparcgforum.org/user_avatar/casparcgforum.org/dimitry_ishenko/32/1250_2.png) [@dimitry\_ishenko](https://casparcgforum.org/u/dimitry_ishenko)\
**Post date:** [June 11, 2026, 11:54pm UTC](https://casparcgforum.org/t/casparcg-crashes-randomly-on-ubuntu-24-04/7537/13 "2026-06-11T23:54:31Z")

</div>

FWIW there will be an official Debian package for CEF at some point:

> **[Juan Manuel Méndez Rey / chromium-embedded-framework · GitLab](https://salsa.debian.org/mendezr/chromium-embedded-framework)**
>
> Debian Salsa Gitlab

In the meantime, unofficial debian packages can be picked up on the Releases page.

---

<div class="post-metadata">

**Author:** ![joshm1234](https://casparcgforum.org/letter_avatar_proxy/v4/letter/j/cdc98d/32.png) [@joshm1234](https://casparcgforum.org/u/joshm1234)\
**Post date:** [July 15, 2026, 4:18pm UTC](https://casparcgforum.org/t/casparcg-crashes-randomly-on-ubuntu-24-04/7537/14 "2026-07-15T16:18:04Z")

</div>

Hi all,

I think I’m hitting this same crash on two separate machines running **casparcg-server 2.5.0 stable** on **Ubuntu 24.04 LTS.** We’re getting multiple of these crashes per day.

The crashes occur when using HTML templates (our template sizes are around 5-20KB) and we only ever have at most two HTML templates on at once.

casparcg-server logs show normal activity before the crashes, and then nothing else during or after each crash.

The only useful log I can find is inside the Kernel Journal (using **journalctl -k** ) which occurs at exactly the same time as each crash:

```auto
15:52:14 kernel: traps: MemoryInfra[14141] trap invalid opcode ip:713c1e7270aa sp:713baa7fa730 error:0 in libcef.so[77260aa,713c1984a000+b16d000]

```

Here’s the log of casparcg-server exiting at the same time (using **journalctl -u casparcg-server** )

```auto
15:52:15 systemd: casparcg-server.service: Main process exited, code=dumped, status=4/ILL

```

Something else interesting, the byte offset **(77260aa)** is the same on every crash, on both machines. Thought I’d mention that in case it points to somewhere interesting in libcef?

This is quite a systemic bug for us currently! Let me know if you need any other logs or information.

Best,

Josh

---

<div class="post-metadata">

**Author:** ![mko1989](https://casparcgforum.org/letter_avatar_proxy/v4/letter/m/3bc359/32.png) [@mko1989](https://casparcgforum.org/u/mko1989)\
**Post date:** [July 18, 2026, 9:38am UTC](https://casparcgforum.org/t/casparcg-crashes-randomly-on-ubuntu-24-04/7537/15 "2026-07-18T09:38:18Z")

</div>

Looks exactly the same.  
Did you try the CEF from this link

> **[Juan Manuel Méndez Rey / chromium-embedded-framework · GitLab](https://salsa.debian.org/mendezr/chromium-embedded-framework)**
>
> Debian Salsa Gitlab

or from my build:

> **[Release cef\_build\_minimal\_no\_root · mko1989/highascg](https://github.com/mko1989/highascg/releases/tag/v.142)**
>
> test client for casparcg. Contribute to mko1989/highascg development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![joshm1234](https://casparcgforum.org/letter_avatar_proxy/v4/letter/j/cdc98d/32.png) [@joshm1234](https://casparcgforum.org/u/joshm1234)\
**Post date:** [July 20, 2026, 10:39am UTC](https://casparcgforum.org/t/casparcg-crashes-randomly-on-ubuntu-24-04/7537/16 "2026-07-20T10:39:27Z")

</div>

Hey,

I’ve tried your build and my own, both no-sysroot, CEF 142. Caspar hangs when initialising CEF and never launches a subprocess.

Both hang at the same point:

```auto
[info] Initialized artnet module.
[info] [html] Using CEF cache path: /opt/casparcg/cef-cache

```

Then it deadlocks and hangs forever, the HTML module never initalises like it normally does.

I swapped the whole set (everything from the build’s Release and Resources folders swapping files within **/usr/lib/casparcg-cef-142** ) so I’m guessing I’m missing something else?

As you say, I’m surprised this issue is not more widespread.

Thanks,

Josh

---

<div class="post-metadata">

**Author:** ![mko1989](https://casparcgforum.org/letter_avatar_proxy/v4/letter/m/3bc359/32.png) [@mko1989](https://casparcgforum.org/u/mko1989)\
**Post date:** [July 20, 2026, 10:54am UTC](https://casparcgforum.org/t/casparcg-crashes-randomly-on-ubuntu-24-04/7537/17 "2026-07-20T10:54:31Z")

</div>

This looks like it maybe a permission/ownership issue, where cef fails to write to cache.

in my setup i moved everything to home/casparcg/\* to avoid those issues. I also strictly call lib dir with libcef in my run.sh

set -f

CASPAR\_ROOT=“${CASPAR\_ROOT:-/home/casparcg/highascg}”

CASPAR\_LIB=“${CASPAR\_LIB:-$CASPAR\_ROOT/lib}”

export LD\_LIBRARY\_PATH=“$CASPAR\_LIB”

unset LD\_PRELOAD

export DISPLAY=“${DISPLAY:-:0}”

export XAUTHORITY=“${XAUTHORITY:-/home/casparcg/.Xauthority}”

CONFIG\_PATH=“${CASPAR\_CONFIG:-${CASPAR\_CONFIG\_PATH:-$CASPAR\_ROOT/config/casparcg.config}}”

CASPAR\_BIN=“${CASPAR\_BIN:-$CASPAR\_ROOT/bin/casparcg}”

exec 9\>\>“${CASPAR\_RUNSH\_LOCK:-/tmp/caspar-runsh.lock}”

flock -n 9 || exit 0

---

<div class="post-metadata">

**Author:** ![joshm1234](https://casparcgforum.org/letter_avatar_proxy/v4/letter/j/cdc98d/32.png) [@joshm1234](https://casparcgforum.org/u/joshm1234)\
**Post date:** [July 22, 2026, 4:04pm UTC](https://casparcgforum.org/t/casparcg-crashes-randomly-on-ubuntu-24-04/7537/18 "2026-07-22T16:04:22Z")

</div>

Hey,

Tried this a couple of times today and yesterday, it still seems to deadlock for me? I’ve tried running it as a different user from home too.

@mko1989 were you running this with your CasparCG fork, or the standard v2.5.0 build?

@Julusian would this crash issue be something we need to raise on GitHub? It’s preventing us from going live with Caspar at the moment.

Any logs or information you need, feel free to let me know.

Thanks,

Josh

---

<div class="post-metadata">

**Author:** ![mko1989](https://casparcgforum.org/letter_avatar_proxy/v4/letter/m/3bc359/32.png) [@mko1989](https://casparcgforum.org/u/mko1989)\
**Post date:** [July 22, 2026, 4:17pm UTC](https://casparcgforum.org/t/casparcg-crashes-randomly-on-ubuntu-24-04/7537/19 "2026-07-22T16:17:43Z")

</div>

i am running this cef with many different builds of caspar on ubuntu 24 without issues for months now.

including the stable 2.5.0

---

<div class="post-metadata">

**Author:** ![joshm1234](https://casparcgforum.org/letter_avatar_proxy/v4/letter/j/cdc98d/32.png) [@joshm1234](https://casparcgforum.org/u/joshm1234)\
**Post date:** [July 23, 2026, 11:19pm UTC](https://casparcgforum.org/t/casparcg-crashes-randomly-on-ubuntu-24-04/7537/20 "2026-07-23T23:19:39Z")

</div>

Hey @mko1989

Thanks so much for your help over the last week, I’ve solved the deadlock, it was caused by a different issue with an NVIDIA driver. Was thinking it was caused by the build due to how close it was on boot with the sysroot issues.

The no-sysroot build works for me now, and I’ve run graphics continuously with no issues!

Thanks so much,

Josh

[Next page](https://casparcgforum.org/t/casparcg-crashes-randomly-on-ubuntu-24-04/7537.md?page=2)
