🛠️ Real incident, fixed with AI

Diagnosing LM Studio's Vulkan Survey Crash

LM Studio crashed during its Vulkan hardware survey inside a VM; how the cause was isolated.

In short

LM Studio 0.4.20 aborted once while it asked the computer what graphics chips it could see. The virtual machine offered a Virtio display but no working Vulkan driver (Vulkan is a way programs talk to a GPU). Update past 0.4.20. Reading the crash log is a few commands.

What you need

Read the crash record

  1. List saved crashes, then open the one you care about:
coredumpctl list
coredumpctl info PROCESS_ID

You should see: process node, binary ~/.lmstudio/.internal/utils/node, signal SIGABRT. LM Studio kept running after the abort.

  1. Rule out the machine running out of memory:
free -h
journalctl -b --no-pager \
  | grep -Ei 'out of memory|oom-kill|killed process'
  1. Read the system log from one minute before the crash to one minute after:
journalctl --since 'CRASH_TIME_MINUS_ONE_MINUTE' \
  --until 'CRASH_TIME_PLUS_ONE_MINUTE' --no-pager

Open a core dump only if you still need the cause

A core dump is a copy of the program’s memory. It can hold passwords or private files.

Warning: do not commit it or share it. The commands below delete the copy when the shell exits. If you copy it somewhere else, delete that copy yourself.

core=$(mktemp -t crash-XXXXXX.core)
trap 'rm -f "$core"' EXIT
coredumpctl dump PROCESS_ID --output="$core"
DEBUGINFOD_URLS="https://debuginfod.archlinux.org" \
  gdb -q EXECUTABLE "$core" \
  -batch \
  -ex 'set debuginfod enabled on' \
  -ex 'thread apply all bt'

That trace landed in lm_studio::system::QueryGpusVulkan().

What actually failed

On first launch, LM Studio 0.4.20 tried to survey Vulkan hardware. The VM exposed a Virtio GPU but no usable Vulkan ICD (the driver file Vulkan looks up). The helper hit an uncaught C++ exception and aborted on purpose with SIGABRT.

The file that crashed is LM Studio’s bundled Node program. This was not a JavaScript failure.

What followed:

Update the app

  1. Update LM Studio past 0.4.20.
  2. If the same crash happens again on the current version, save the version, the GPU and VM setup, coredumpctl info, and the symbolized backtrace. Send those to LM Studio.
  3. Do not file a one-off app crash as an Omarchy bug unless the evidence points at Omarchy’s own config or packages.

  4. Check that it stayed quiet, and that LM Studio is using the CPU or GPU backend you wanted:
coredumpctl list

If it doesn’t work

Official sources

Spot something wrong or outdated? Leave a comment below. Every comment is reviewed to keep these posts accurate.

By commenting, you agree to our Terms of use and confirm this is your own work. Short quotes are fine with a credit and link. Copied, unsafe, or abusive comments are removed. See something copied? Say so here.