[GH-ISSUE #1184] [Issue]: Gacha Forge 1.8.9 — art is painted twice when image generation is slow #604

Closed
opened 2026-10-20 17:28:58 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @SonaGat3 on GitHub (Oct 1, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/1184

Originally assigned to: @SonaGat3 on GitHub.

Summary

On a slow image connection, Gacha Forge pays for the same picture twice. A player reported it: "for some reason generated all the backgrounds and enemies for a chapter and then decided to generate them all a second time". The same happens to banner art, portraits, key images, Bond backgrounds and outfits.

Affected package

gacha-forge

Expected behavior

A picture that is already being painted, or already painted, is not painted again. A second request for it gets the first one.

Actual behavior

Every painter asked "is this already painted?" when it was queued, then waited for the image connection's turn. Its lock (dedupe) has a 20-minute ceiling. On a slow connection the queue outlives it: the next request (the client re-warms a chapter's fights on every plan load; the boot re-warms the featured banner and its outfits; every won fight re-pays a Bond background still owed) finds the lock expired and nothing filed yet, and queues the whole batch again. Both are paid for.

Two more gaps in the same painters:

  • The outfit rotation filed all its outfits at the end: a rotation slower than the ceiling was minted in full a second time, and the last of the two writes erased the other's pieces.
  • The banner art, key image and portrait writes did not check documents.update: on a write conflict the route answered ok, the paid picture had no owner, and the next request painted it again.

Steps to reproduce

  1. Use an image connection that takes minutes per picture (a local model with a long queue).
  2. Open a chapter whose enemies and backgrounds are not painted yet; leave it while the queue works.
  3. More than 20 minutes later, open the chapter again while the first batch is still in line.
  4. The image backend receives every enemy and background a second time.

Environment

  • Marinara Engine version: 2.4.6 (staging)
  • Package version: 1.8.9 (the version currently in staging)
  • Install type: source
  • OS + version: Windows 10 Pro
  • Browser or app shell: Chrome

Logs, screenshots, or video

Measured on the package's own bench, with the painter held and the clock moved past the ceiling: two requests → two paintings for each banner, portrait, key image and Bond background, and 6 for a rotation of 3 outfits.

Additional context

The chat photo is requested once, when its message arrives, and nothing asks for it again, so it cannot be painted twice; it is left as it is.

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @SonaGat3 on GitHub (Oct 1, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/1184 Originally assigned to: @SonaGat3 on GitHub. ## Summary On a slow image connection, Gacha Forge pays for the same picture twice. A player reported it: *"for some reason generated all the backgrounds and enemies for a chapter and then decided to generate them all a second time"*. The same happens to banner art, portraits, key images, Bond backgrounds and outfits. ## Affected package `gacha-forge` ## Expected behavior A picture that is already being painted, or already painted, is not painted again. A second request for it gets the first one. ## Actual behavior Every painter asked "is this already painted?" when it was **queued**, then waited for the image connection's turn. Its lock (`dedupe`) has a 20-minute ceiling. On a slow connection the queue outlives it: the next request (the client re-warms a chapter's fights on every plan load; the boot re-warms the featured banner and its outfits; every won fight re-pays a Bond background still owed) finds the lock expired and nothing filed yet, and queues the whole batch again. Both are paid for. Two more gaps in the same painters: - The outfit rotation filed all its outfits at the **end**: a rotation slower than the ceiling was minted in full a second time, and the last of the two writes erased the other's pieces. - The banner art, key image and portrait writes did not check `documents.update`: on a write conflict the route answered `ok`, the paid picture had no owner, and the next request painted it again. ## Steps to reproduce 1. Use an image connection that takes minutes per picture (a local model with a long queue). 2. Open a chapter whose enemies and backgrounds are not painted yet; leave it while the queue works. 3. More than 20 minutes later, open the chapter again while the first batch is still in line. 4. The image backend receives every enemy and background a second time. ## Environment - Marinara Engine version: 2.4.6 (`staging`) - Package version: 1.8.9 (the version currently in `staging`) - Install type: source - OS + version: Windows 10 Pro - Browser or app shell: Chrome ## Logs, screenshots, or video Measured on the package's own bench, with the painter held and the clock moved past the ceiling: two requests → **two** paintings for each banner, portrait, key image and Bond background, and **6** for a rotation of 3 outfits. ## Additional context The chat photo is requested once, when its message arrives, and nothing asks for it again, so it cannot be painted twice; it is left as it is. ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-20 17:28:58 +07:00
  • closed this issue
  • added the
    bug
    label
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Agents#604
No description provided.