SIGABRT in copy_image when ArtCNN GLSL user shader engages (video.c:1419 assertion) on 0.41.0 / NVIDIA / OpenGL

Aperta
#18,546 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
c

Direzione di ricerca

Start at video/out/gpu/video.c:1419 and reproduce with the provided mpv command using ArtCNN_C4F32_DS.glsl, focusing on the copy_image assertion when the //!WHEN guard engages. Compare the failing ArtCNN pass structure with the clean CuNNy-4x16-DS case; done means the shader engages without an abort under the reported scaling conditions.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

priority:ignored-issue-template

Summary

mpv 0.41.0 aborts the moment the ArtCNN_C4F32_DS user shader engages (output ≥1.3× the video size, i.e. when its //!WHEN guard fires):

video/out/gpu/video.c:1419: copy_image: Assertion '*offset + count < sizeof(dst)' failed.

The shader compiles cleanly — this is a runtime abort, not a GLSL error. Windowed at 1.0× (guard not firing) playback idles cleanly; the abort happens exactly on engagement (2× window scale and on fullscreen 4K both reproduce).

Repro

mpv --no-config --vo=gpu --gpu-api=opengl     --glsl-shaders=ArtCNN_C4F32_DS.glsl     --force-window=yes --window-scale=2.0 <any 640x360 test clip>

ArtCNN_C4F32_DS.glsl from https://github.com/Artoriuz/ArtCNN @ 7d69551 (with the #extension line hoisted to line 1 for NVIDIA compat — Artoriuz/ArtCNN#48).

Environment

  • mpv 0.41.0 (vo=gpu AND vo=gpu-next), --gpu-api=opengl
  • NVIDIA 595.84 and 595.91.07, RTX 3070
  • Ubuntu (kernel 6.x), GNOME/mutter wayland + XWayland
  • The abort reproduces identically headless (Xvfb, llvmpipe) — so it is not driver-specific rendering, it is the copy_image path's bounds assumption on the doubled texture

Notes

  • The sibling doubler CuNNy-4x16-DS engages and plays cleanly under identical conditions, so this is specific to ArtCNN's pass structure (it uses //!SAVE textures at 2× width / 4× height ratios).
  • A backtrace from the core shows the abort in copy_image during the second render pass after the WHEN guard engages.

Happy to provide the full log, the core backtrace, or test a patch.

Lingua principale
C
Stelle
38.2k
Fork
3.7k
Merge medio
1g 13h
PR unite (30g)
76

Preparare l'ambiente

  • Nessun Dockerfile né file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di mpv-player/mpv

Tutte le issue di mpv-player/mpv

Issue simili

Altre issue su C

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.