Skip to content

Stability Matrix Inference under Cachyos Create Massive 100mb+ png #1728

Description

@trilias

What happened?

Operating System: CachyOS Linux
KDE Plasma Version: 6.7.4
KDE Frameworks Version: 6.29.0
Qt Version: 6.11.2
Kernel Version: 7.2.2-1-cachyos (64-bit)
Graphics Platform: Wayland

When i use Stability Matrix Inference he output PNG images with 100mb or more, i try change models or image size 1024x1024 or 512x512 and many other settings always the same result png is over 100mb.
When i open the output browser he try to preview them and the CPU load go to 100% the only way to stop that its close Stability Matrix .
In Comfyui self over workflows all runs normal png its 1-2mb with same settings and prompt.

i ask the Google AI thats the result:

Problem Description

The built-in Stability Matrix Inference interface generates massive, uncompressed PNG files (sometimes exceeding 100MB per image) even for standard resolutions where the pure pixel data should only be around 1-3MB.

Root Cause

  1. Uncompressed Metadata Chunks: Stability Matrix embeds the entire UI state, used LoRA weights, and project configurations directly into the PNG as custom metadata blocks. These metadata blocks are stored completely uncompressed.
  2. Missing Format Alternatives: The application strictly enforces this heavy PNG structure because the internal gallery UI relies on reading these .smproj embedded chunks to load history. There is currently no user toggle to disable metadata embedding or switch the output format to highly efficient WebP/JPEG (which handles embedded data much better).
  3. Linux Impact (Avalonia UI): On Linux systems (specifically Arch/CachyOS), when the Avalonia UI framework tries to scale and render these 100MB+ files for the gallery sidebar preview, it triggers massive CPU spikes and crashes/freezes the system instead of using hardware acceleration efficiently.

Suggested Solutions

  • Provide an option in the Inference settings to disable metadata embedding.
  • Allow changing the output format to WebP while safely compressing the generation workflow data.
  • Optimize the Avalonia UI gallery loader so it doesn't parse the entire 100MB metadata overhead just to show a tiny preview thumbnail.

Version

v2.16.3

What Operating System are you using?

CachyOS Linux

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions