mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[GH-ISSUE #1094] [Issue]: Slurp world tick freezes the whole Engine for ~7 s every 5 minutes #558
Labels
No labels
agent: chess
agent: conversation-calls
agent: eightball
agent: haptic
agent: hierarchical-maps
agent: hierarchical-maps
agent: illustrator
agent: poker
agent: rock-paper-scissors
agent: tic-tac-toe
agent: uno
artifacts
bug
bugfix
build
catalog
ci
client
dependencies
docs
documentation
enhancement
feature
fixed-in-staging
in-pr
normal-scope
packages
pull-request
qol
regression
roadmap
scope-risk
server
soup
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Agents#558
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Gunterlie on GitHub (Sep 26, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/1094
Originally assigned to: @Gunterlie on GitHub.
Summary
Every ~5 minutes the
[slurp-world]simulation tick runs on the Engine's main thread for about 7 seconds. While it runs, the whole Marinara Engine process is frozen: every other capability package, every API route and every open tab stops responding. About 4.4 of those 7 seconds are spent in Slurp'sgetSettings(), which re-normalizes and fully re-validates the settings with zod on every call, and the tick calls it many times.Reported by SonaGate.
Affected package
slurp2(Slurp Remastered) 0.2.38Expected behavior
The world tick runs without blocking the Engine. Other packages, routes and tabs keep responding.
Actual behavior
The Engine freezes for ~7 s every 5:07 (
tickMinutesplus the work). An event-loop lag watchdog logged:A scene-close request in another package took 5.4 s because it was queued behind the tick.
Steps to reproduce
setIntervalthat logsperformance.now()lag: it shows ~7000 ms late ticks every 5:07.getSettings/normalizeSlurpSettings/ zod dominate.Environment
Logs, screenshots, or video
CPU profile (1 ms sampling) of the busiest 7-second window, 7,002 ms sampled:
getSettingsappears under several callers, includingwithoutHiddenAmbientAccountsand microtask continuations, so it is called per item or per step during the tick.Additional context
Suggested fixes: read or cache settings once instead of re-validating on every call, and yield to the event loop during the tick. Workaround until a fix lands: raise
simulationTuning.clock.tickMinutes.Fix: #1093
Template check