matcha icon indicating copy to clipboard operation
matcha copied to clipboard

BUG: Channel deadlock potential in daemon IDLE loop

Open andrinoff opened this issue 7 months ago • 2 comments

Describe the bug IDLE notification at daemon/daemon.go:417 sends to channel without timeout. If receiver blocked, goroutine hangs forever.

To reproduce

  1. Block daemon event loop processing
  2. IDLE pushes many updates to notify channel
  3. Channel buffer fills, send blocks indefinitely

Expected behavior Use select with timeout or non-blocking send with dropped update

Matcha version master

OS All

Additional context File: daemon/daemon.go line 417 Deadlock under load

andrinoff avatar Apr 21 '26 14:04 andrinoff

This has had no activity for 30 days. It will be closed in 14 days unless updated. Comment or remove the stale label to keep it open.

floatpanebot avatar May 22 '26 06:05 floatpanebot

Closing due to inactivity. Reopen if still relevant.

floatpanebot avatar Jun 04 '26 19:06 floatpanebot