InvokeAI icon indicating copy to clipboard operation
InvokeAI copied to clipboard

[bug]: “InvokeAI 6.4 and above shuts down after generating about 250 images.”

Open baradoc76 opened this issue 4 months ago • 3 comments

Is there an existing issue for this problem?

  • [x] I have searched the existing issues

Install method

Invoke's Launcher

Operating system

macOS

GPU vendor

Apple Silicon (MPS)

GPU model

Mac Studio M2 Max

GPU VRAM

64

Version number

6.5

Browser

No response

System Information

No response

What happened

After generating approximately 200–300 images (either via the Web UI or Desktop app), InvokeAI suddenly crashes without error dialogs, returning: Process exited with code: 0 In some cases, the following stack trace appears: BrokenPipeError: [Errno 32] Broken pipe ... self.sp = self.status_printer(self.fp) ... File "/invokeai/backend/stable_diffusion/diffusers_pipeline.py", line 395, in latents_from_embeddings for i, t in enumerate(self.progress_bar(timesteps)): Additionally, in the UI, this exception occurs: { "name": "TypeError", "message": "e.map is not a function", "stack": "... App-BAHkxqK1.js" } • Crash does not correlate with a specific prompt or model. • The issue occurs regardless of the frontend used (desktop app or Web UI). • The issue already existed in version 6.4 and is still present. • Memory usage is monitored and stable before crash. • Logs indicate full VRAM use (VRAM: 100%) just before termination. • Happened both with the --max_loaded_models=1 setting and without. • Reproducible after consistent long runs, regardless of whether using scheduler queues or direct prompt • Model cache logs show MPS device memory being filled progressively: VRAM: 100% just before crash

What you expected to happen

not to crash :-)

How to reproduce the problem

Steps to Reproduce 1. Launch InvokeAI (UI or Web) 2. Queue or manually trigger 200+ image generations in a session 3. Wait for process crash or silent termination

Additional context

•	The system is stable, has plenty of resources, and the issue is not linked to any specific model or prompt.
•	No memory leak or OOM errors are observed.
•	Precision set to float32 for compatibility with MPS but the bug is still here

Discord username

No response

baradoc76 avatar Sep 05 '25 19:09 baradoc76

InvokeAI suddenly crashes without error dialogs, returning: Process exited with code: 0

To confirm, are you seeing Process exited with code: 0 in the Launcher's log viewer? And the Launcher itself does not crash, only the Invoke app>

psychedelicious avatar Sep 10 '25 11:09 psychedelicious

yes in the the Launcher's log viewer. And the Launcher itself does not crash, only the Invoke app crash

baradoc76 avatar Sep 11 '25 22:09 baradoc76

This happens for me too but only in the launcher UI on linux, I don't think i've had it happen when i run Invoke headless and connect through a browser

kyhavlov avatar Oct 23 '25 02:10 kyhavlov