Skip to content

Crash when using gpu-next on AMD 5800H due to libplacebo assertion failure #434

@erickyun

Description

@erickyun

Hi, I’m encountering a reproducible crash when using a custom mpv-1.dll with gpu-next and vulkan backend on a Beelink SER5 mini PC (AMD Ryzen 7 5800H, Windows 11).

Steps to Reproduce

  1. Replace mpv-1.dll with dev build (e.g., mpv-dev-i686-20241227-git-379c078).

  2. Patch Stremio executable to enable MPV config reading (as suggested here: Make it possible to create mpv config file #81 (comment)).

  3. Use input.conf with key apply-profile gpu-next

  4. Launch a video.

Expected Behavior

Video should play using gpu-next profile.

Actual Behavior

Stremio crashes immediately. Stremio logs show the following assertion failure:

Assertion failed: gpu->limits.max_vbo_size <= gpu->limits.max_buf_size in ../../../../../src_packages/libplacebo/src/gpu/utils.c:160

Additional Info

This issue does not occur on my other PC with NVIDIA GPU — only on the Beelink mini PC.

If I switch to opengl, the crash stops but MPV video output window is gone entirely.

MPV itself works standalone with gpu-next and Vulkan — only crashes inside Stremio.

System: Windows 11, AMD 5800H

Workarounds Tried

Different MPV builds

Changing API to opengl (avoids crash but breaks video window)

Click here to see Log stremio.exe > logs.txt
hls executables located ->  {
  ffmpeg: 'C:\\Users\\aydin\\AppData\\Local\\Programs\\LNV\\Stremio-4\\ffmpeg.exe',
  ffsplit: null,
  ffprobe: 'C:\\Users\\aydin\\AppData\\Local\\Programs\\LNV\\Stremio-4\\ffprobe.exe'
}
Using app path -> C:\Users\aydin\AppData\Roaming\stremio\stremio-server
Enabling casting...
(node:4348) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
(Use `stremio-runtime --trace-deprecation ...` to show where the warning was created)
Assertion failed: gpu->limits.max_vbo_size <= gpu->limits.max_buf_size in ../../../../../src_packages/libplacebo/src/gpu/utils.c:160
Click here to see Log Event Viewer
Log Name:      Application
Source:        Application Error
Date:          22.04.2025 01:41:42
Event ID:      1000
Task Category: Application Crashing Events
Level:         Error
Keywords:      
User:          AYDN\aydin
Computer:      aydn
Description:
Faulting application name: stremio.exe, version: 0.0.0.0, time stamp: 0x6603f767
Faulting module name: ucrtbase.dll, version: 10.0.22621.3593, time stamp: 0x84b62951
Exception code: 0xc0000409
Fault offset: 0x0009e3bb
Faulting process id: 0x0x29C4
Faulting application start time: 0x0x1DBB30E769D45D7
Faulting application path: C:\Users\aydin\AppData\Local\Programs\LNV\Stremio-4\stremio.exe
Faulting module path: C:\WINDOWS\System32\ucrtbase.dll
Report Id: daabbfb1-7a98-4208-8cec-0b8ff4af85d9
Faulting package full name: 
Faulting package-relative application ID: 
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="Application Error" Guid="{a0e9b465-b939-57d7-b27d-95d8e925ff57}" />
    <EventID>1000</EventID>
    <Version>0</Version>
    <Level>2</Level>
    <Task>100</Task>
    <Opcode>0</Opcode>
    <Keywords>0x8000000000000000</Keywords>
    <TimeCreated SystemTime="2025-04-21T22:41:42.0703016Z" />
    <EventRecordID>19337</EventRecordID>
    <Correlation />
    <Execution ProcessID="7568" ThreadID="7588" />
    <Channel>Application</Channel>
    <Computer>aydn</Computer>
    <Security UserID="S-1-5-21-1037397759-3751909605-3073522692-1001" />
  </System>
  <EventData>
    <Data Name="AppName">stremio.exe</Data>
    <Data Name="AppVersion">0.0.0.0</Data>
    <Data Name="AppTimeStamp">6603f767</Data>
    <Data Name="ModuleName">ucrtbase.dll</Data>
    <Data Name="ModuleVersion">10.0.22621.3593</Data>
    <Data Name="ModuleTimeStamp">84b62951</Data>
    <Data Name="ExceptionCode">c0000409</Data>
    <Data Name="FaultingOffset">0009e3bb</Data>
    <Data Name="ProcessId">0x29c4</Data>
    <Data Name="ProcessCreationTime">0x1dbb30e769d45d7</Data>
    <Data Name="AppPath">C:\Users\aydin\AppData\Local\Programs\LNV\Stremio-4\stremio.exe</Data>
    <Data Name="ModulePath">C:\WINDOWS\System32\ucrtbase.dll</Data>
    <Data Name="IntegratorReportId">daabbfb1-7a98-4208-8cec-0b8ff4af85d9</Data>
    <Data Name="PackageFullName">
    </Data>
    <Data Name="PackageRelativeAppId">
    </Data>
  </EventData>
</Event>

</details>

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