StabilityMatrix icon indicating copy to clipboard operation
StabilityMatrix copied to clipboard

Crash with long text/ fast text writing to comfyUI internal terminal

Open mcDandy opened this issue 4 months ago • 0 comments

What happened?

I was running inference using comfyUI with custom node which can emit a lot of text (debug data I did not remove from node) at once which crashed stability matrix.

Example how to get a lot of text:

  1. start comfyUI with this custom node: https://github.com/mcDandy/more_math/tree/main
  2. if node fails to import install antlr4-python3-runtime (any version above 4.11 should work)
  3. go to 127.0.0.1:8188 where comfyUI exposes interface
  4. open any workflow which can run a lot (e.g. sd 1.5)
  5. place Conditioning math between text input and ksampler
  6. it will most likely crash when running the workflow multiple times (for me )it crashed after around 40th iteration of FLUX workflow where I have 4 conditioining math nodes interacting with each other

Exception Details

Exception

InvalidOperationException: Operation is not valid due to the current state of the object.

Sentry ID

d8a82d97

Stack Trace

   at Avalonia.Rendering.Composition.CompositingRenderer.UpdateCore()
   at Avalonia.Rendering.Composition.CompositingRenderer.Update()
   at Avalonia.Rendering.Composition.Compositor.CommitCore()
   at Avalonia.Rendering.Composition.Compositor.Commit()
   at Avalonia.Media.MediaContext.CommitCompositor(Compositor compositor)
   at Avalonia.Media.MediaContext.SyncCommit(Compositor compositor, Boolean waitFullRender, Boolean catchExceptions)
   at Avalonia.Win32.WindowImpl.AppWndProc(IntPtr hWnd, UInt32 msg, IntPtr wParam, IntPtr lParam)
   at Avalonia.Win32.WindowImpl.WndProcMessageHandler(IntPtr hWnd, UInt32 msg, IntPtr wParam, IntPtr lParam)
   at FluentAvalonia.Interop.Win32Interop.CallWindowProcW(IntPtr lpPrevWndProc, HWND hWnd, UInt32 msg, WPARAM wParam, LPARAM lParam)
   at FluentAvalonia.UI.Windowing.Win32WindowManager.WndProc(HWND hWnd, UInt32 msg, WPARAM wParam, LPARAM lParam)
   at FluentAvalonia.UI.Windowing.Win32WindowManager.WndProcStatic(IntPtr hwnd, UInt32 msg, IntPtr wParam, IntPtr lParam)```


### Version

2.14.3

### What Operating System are you using?

Windows

mcDandy avatar Aug 03 '25 10:08 mcDandy