You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug: libobs: image sources report 0 bytes of memory, so the slideshow memory cap never applies (upstream #14076) #2279
Upstream OBS bug, reported in obsproject/obs-studio#14076: memory use in 33.0.0 is about 9x higher than in 32.2.2. Upstream PR 14078 is still open.
Cause (master)
libobs/graphics/image-file.c.h around line 244: gs_image_file_ex_init() calls gs_image_file_ex_init_internal(image, file, NULL, ...), so image->mem_usage is never filled and stays 0 for every image.
Image sources report 0 bytes.
The legacy Image Slide Show's 400 MB MAX_MEM_USAGE cap (plugins/image-source/obs-slideshow.c.h around lines 227, 408 and 420) never trips, so every slide stays decoded in memory.
Plan
RED:
gs_image_file_ex_init() on a generated 1024x1024 PNG reports mem_usage of at least 4 MiB. Also an animated GIF.
A slideshow test over many large PNGs stops preloading at the cap.
GREEN: pass &image->mem_usage, as upstream PR 14078 does.
@TheLEGObrick The much higher memory use in 33.0.0 (upstream obs-studio issue 14076) is changed in obs-rust. Image sources reported 0 bytes of memory use, so the Image Slide Show's 400 MB cap never applied and every slide stayed decoded in memory. Images now report their real size, so the cap works again. This is a backport of upstream PR 14078.
obs-rust is an AI-assisted fork of OBS, based on current OBS master, with extra bug fixes like this one.
Activity
rdoupe commentedon Oct 25, 2026
Claiming: #2279.
test: Check image memory use and slideshow cap
libobs: Count image memory, keep slides past cap
test: Check image memory use and slideshow cap
libobs: Count image memory, keep slides past cap
libobs: Count image memory, keep every slideshow slide (obs-rust#2289)
rdoupe commentedon Nov 1, 2026
@TheLEGObrick The much higher memory use in 33.0.0 (upstream obs-studio issue 14076) is changed in obs-rust. Image sources reported 0 bytes of memory use, so the Image Slide Show's 400 MB cap never applied and every slide stayed decoded in memory. Images now report their real size, so the cap works again. This is a backport of upstream PR 14078.
obs-rust is an AI-assisted fork of OBS, based on current OBS master, with extra bug fixes like this one.
It ships in the OBS-Studio-Rust v1.0.0 release: https://github.com/obs-rust/obs-studio/releases