Skip to content

OBS/Plugin Crash Without GPU (On Linux) #44

@VladislavF

Description

@VladislavF

When adding the filter to an audio source OBS will crash if you don't have a GPU installed

To Reproduce

Steps to reproduce the behavior:

  1. Open OBS
  2. Add the filter to an audio source

Expected behavior

The filter should initialize and default or fall-back to CPU

Log and Crash Report
warning: [obs-cleanstream] Invalid GPU device selected: 0. Using CPU for inference/home/runner/work/occ-ai-dep-whispercpp/occ-ai-dep-whispercpp/build/Whispercpp_Build-prefix/src/Whispercpp_Build/ggml/src/ggml-backend.cpp:501: GGML_ASSERT(device) failed

Desktop (please complete the following information):

  • OS: Ubuntu 24.04
  • Plugin Version: 0.2
  • OBS Version: 32

Additional context
It is clear the problem comes from the pre-compiled whisper/GGML libraries which are for some reason failing to use the CPU.
for argument, I tried removing all video libraries (Blas, vulkan, opencl) via cmake flags and building from source. unfortunately, since artifacts are pulled, flags to disable libraries are effectively ignored. So there's a sort of two part bug here, unless I just don't understand how to make the build system actually build instead of pull artifacts (very possible).

Asks:

OBS-log.txt

  • I don't see why whisper/ggml are failing to fallback to CPU, this seems like it should work and is maybe their bug?
  • But in the absence of that option simply compiling with GPU features disabled would be possible.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions