Skip to content

bug: libobs: image sources report 0 bytes of memory, so the slideshow memory cap never applies (upstream #14076) #2279

Closed

Description

@rdoupe

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

  1. 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.
  2. GREEN: pass &image->mem_usage, as upstream PR 14078 does.

Activity

  1. added
    bug
    on Oct 25, 2026
  2. rdoupe commented on Oct 25, 2026

    @rdoupe
    CollaboratorAuthor

    Claiming: #2279.

  3. added
    claimed
    on Oct 25, 2026
  4. added
    ready
    and removed
    claimed
    on Oct 25, 2026
  5. moved this from Triage to In review in obs-rust Multiviewon Oct 25, 2026
  6. rdoupe commented on Nov 1, 2026

    @rdoupe
    CollaboratorAuthor

    @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

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

Metadata

Metadata

Assignees

Labels

bugready

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions