Skip to content

Image generation: follow-ups from the #971 post-merge QA (free-0 GPU memory, log ordering test) #980

Closed

Description

@leehack

Low-severity follow-ups from post-merge QA of #971 (b8d092ded). Neither is a regression against 0.11.1: both paths are new in that PR. Tracker: #966.

  1. Zero free GPU memory is read as "the driver reports nothing". _gpuFigure in lib/src/backends/stable_diffusion/stable_diffusion_memory.dart falls back to total memory when freeBytes is 0. The released sd_dart_wrapper.h says a device over its budget also reads as 0 free, so a fully used Vulkan GPU is treated as having all its memory available: no "slower" warning and a looser refusal bound. It errs permissive. Found by reading; not run on a Vulkan device.
  2. Untested ordering guard in log forwarding. Replacing after: max(position.after, known.after) with after: position.after in _LogBatch.deliver (lib/src/backends/stable_diffusion/stable_diffusion_image_worker.dart) leaves all image unit tests green. The comment says it protects against two workers finishing out of order; nothing asserts it. A regression would show as duplicated log records, not lost ones.

Activity

  1. added
    bug
    priority:P3
    on Oct 9, 2026
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

    bugpriority:P3

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions