Skip to content

VAAPI crashes at recording on Ubuntu #13316

Open

Description

@vicho314

Operating System Info

Ubuntu 24.04

Other OS

No response

OBS Studio Version

32.1.1

OBS Studio Version (Other)

No response

OBS Studio Log URL

https://obsproject.com/logs/DHs0eyObzTUgI5Dx

OBS Studio Crash Log URL

No response

Expected Behavior

GPU recording works (as in previous versions)

Current Behavior

GPU recording crashes the program

Steps to Reproduce

  1. Select FFMPEG VAAPI encoder
  2. Choose default settings
  3. Do a simple scene
  4. Start recording
    ...

Anything else we should know?

Here is a crash log with a backtrace of a debugging session on the flatpak version. This error happens in both the PPA and flatpak.

Thread 48 "obs gpu encode " received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fff87fff6c0 (LWP 63)]

ff_avc_find_startcode_internal (p=0x0, end=0xfffffffffffffffd <error: Cannot access memory at address 0xfffffffffffffffd>) at /run/build/obs/libobs/obs-nal.c:28
28			if (p[0] == 0 && p[1] == 0 && p[2] == 1)
(gdb)
(gdb) bt
#0  ff_avc_find_startcode_internal
    (p=0x0, end=0xfffffffffffffffd <error: Cannot access memory at address 0xfffffffffffffffd>) at /run/build/obs/libobs/obs-nal.c:28
#1  obs_nal_find_startcode (p=0x0, end=end@entry=0x0)
    at /run/build/obs/libobs/obs-nal.c:62
#2  0x00007ffff59182ad in obs_avc_keyframe
    (data=<optimized out>, size=<optimized out>)
    at /run/build/obs/libobs/obs-avc.c:30
#3  0x00007fffadbcd61d in vaapi_encode_internal
    (enc=enc@entry=0x5555589b7a60, frame=<optimized out>, packet=packet@entry=0x7fff87ffe6a0, received_packet=received_packet@entry=0x7fff87ffe667)
    at /run/build/obs/plugins/obs-ffmpeg/obs-ffmpeg-vaapi.c:696
#4  0x00007fffadbcde09 in vaapi_encode_tex
    (data=0x5555589b7a60, texture=0x7fff87ffe700, pts=1, lock_key=<optimized out>, next_key=<optimized out>, packet=0x7fff87ffe6a0, received_packet=0x7fff87ffe667)
    at /run/build/obs/plugins/obs-ffmpeg/obs-ffmpeg-vaapi.c:805
#5  0x00007ffff596f37f in gpu_encode_thread (data=<optimized out>)
    at /run/build/obs/libobs/obs-video-gpu-encode.c:158
#6  0x00007ffff2a9b56a in start_thread (arg=<optimized out>)
    at pthread_create.c:448
#7  0x00007ffff2b1ee94 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:100

Activity

  1. kkartaltepe commented on Apr 13, 2026

    @kkartaltepe
    Collaborator

    This stack doesnt look correct. Try upgrading to a processor from this decade as your system may simply be unstable.

  2. bv101rj commented on Nov 20, 2026

    @bv101rj

    This is happening to me as well. Or something very similar at least. This only started after I did an upgrade to this system last night, other than that I have over a 100 hours of WoW recorded locally before this. Still trying to track down the root cause at this point, the previous mesa version I was on had a different set of issues lol.

    https://obsproject.com/logs/kV8H8b5ObmZ1jlWJ

    Kernel: 7.2.15-artix1-1
    Drivers: mesa 1:26.2.7-1
    OBS: 33.0.1-1
    CPU: 5800X3D
    GPU: 7900XT

    [35277.156777] elogind[1334]: Watching system buttons on /dev/input/event11 (Compx 2.4G Wireless Receiver Keyboard) [39752.609026] amdgpu 0000:0b:00.0: [drm] REG_WAIT timeout 1us * 100 tries - dcn32_program_compbuf_size line:148 [44321.893724] amdgpu 0000:0b:00.0: Dumping IP State [44321.895173] amdgpu 0000:0b:00.0: Dumping IP State Completed [44321.895187] amdgpu 0000:0b:00.0: [drm] AMDGPU device coredump file has been created [44321.895189] amdgpu 0000:0b:00.0: [drm] Check your /sys/class/drm/card1/device/devcoredump/data [44321.895192] amdgpu 0000:0b:00.0: ring vcn_unified_1 timeout, signaled seq=207591, emitted seq=207593 [44321.895195] amdgpu 0000:0b:00.0: Process obs pid 26382 thread obs:cs0 pid 26724 [44321.895198] amdgpu 0000:0b:00.0: Starting vcn_unified_1 ring reset [44322.135513] amdgpu 0000:0b:00.0: Register(1) [regUVD_POWER_STATUS] failed to reach value 0x00000001 != 0x00000000n [44322.375253] amdgpu 0000:0b:00.0: Register(1) [regUVD_RB_RPTR] failed to reach value 0x000000c0 != 0x00000040n [44322.613410] amdgpu 0000:0b:00.0: Register(1) [regUVD_POWER_STATUS] failed to reach value 0x00000001 != 0x00000000n [44322.615473] amdgpu 0000:0b:00.0: Ring vcn_unified_1 reset succeeded [44322.615476] amdgpu 0000:0b:00.0: [drm] device wedged, but no recovery needed [44322.615545] obs gpu encode [25641]: segfault at 0 ip 00007f822c4dcae5 sp 00007f819bcb0e18 error 4 in libobs.so.30[46ae5,7f822c4b9000+bf000] likely on CPU 7 (core 7, socket 0) [44322.615556] Code: 8d 7e fd 49 89 f1 48 83 e2 fc 4c 89 c0 48 83 c2 04 49 39 f8 73 32 49 39 d0 72 0f eb 2b 0f 1f 84 00 00 00 00 00 48 39 f8 73 1e <80> 38 00 75 10 80 78 01 00 75 0a 80 78 02 01 0f 84 d6 00 00 00 48 [44773.854304] amdgpu 0000:0b:00.0: Dumping IP State [44773.855565] amdgpu 0000:0b:00.0: Dumping IP State Completed [44773.855580] amdgpu 0000:0b:00.0: [drm] AMDGPU device coredump file has been created [44773.855582] amdgpu 0000:0b:00.0: [drm] Check your /sys/class/drm/card1/device/devcoredump/data [44773.855584] amdgpu 0000:0b:00.0: ring vcn_unified_1 timeout, signaled seq=207631, emitted seq=207633 [44773.855587] amdgpu 0000:0b:00.0: Process obs pid 3911 thread obs:cs0 pid 4453 [44773.855589] amdgpu 0000:0b:00.0: Starting vcn_unified_1 ring reset [44774.094228] amdgpu 0000:0b:00.0: Register(1) [regUVD_POWER_STATUS] failed to reach value 0x00000001 != 0x00000000n [44774.332366] amdgpu 0000:0b:00.0: Register(1) [regUVD_RB_RPTR] failed to reach value 0x000000c0 != 0x00000040n [44774.568010] amdgpu 0000:0b:00.0: Register(1) [regUVD_POWER_STATUS] failed to reach value 0x00000001 != 0x00000000n [44774.569847] amdgpu 0000:0b:00.0: Ring vcn_unified_1 reset succeeded [44774.569850] amdgpu 0000:0b:00.0: [drm] device wedged, but no recovery needed [44774.569915] obs gpu encode [3298]: segfault at 0 ip 00007f3330f2eae5 sp 00007f32a0cb0e18 error 4 in libobs.so.30[46ae5,7f3330f0b000+bf000] likely on CPU 10 (core 2, socket 0) [44774.569924] Code: 8d 7e fd 49 89 f1 48 83 e2 fc 4c 89 c0 48 83 c2 04 49 39 f8 73 32 49 39 d0 72 0f eb 2b 0f 1f 84 00 00 00 00 00 48 39 f8 73 1e <80> 38 00 75 10 80 78 01 00 75 0a 80 78 02 01 0f 84 d6 00 00 00 48

    When I get a second tomorrow I will try and reproduce and see if I can get it logged but OBS hard crashes after this happens should still work I would figure

  3. bv101rj commented on Nov 20, 2026

    @bv101rj

    Want to circle back on this because I had a bug up my ass about this before going to bed, ignore this comment, this doesn't actually appear to be even remotely related to OBS. I just ran a vulkan native game w/ vkcapture, and used one of my local scripts to start recording via websocket..... and it ran for like 20+ minutes with no issues, this could be a vkd3d thing or AMD drivers issue. To sleepy to tell.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions