[GH-ISSUE #3727] [Issue]: hierarchical-maps v1.0.6 TypeError (t.select is not a function) crashes server via autonomous-scheduler retry loop #2011

Closed
opened 2026-10-21 05:44:34 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @Useeeeeerr on GitHub (Jul 16, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3727

Originally assigned to: @SpicyMarinara on GitHub.

Summary

The hierarchical-maps v1.0.6 capability package throws a t.select is not a function TypeError, which propagates as an unhandled rejection and crashes the entire server process. Because autonomous-scheduler keeps retrying generate for a specific chat, the crash repeats immediately on every restart, before there's any chance to disable the feature from the UI.

Expected behavior

A failure in resolveOwnerSpatialProjection / the hierarchical-maps capability call should be caught and logged, failing only that single generate request or scheduler job. It should not crash the whole server process.

Actual behavior

After starting the server, autonomous-scheduler retries generate for a specific chat, which triggers a TypeError (t.select is not a function) inside hierarchical-maps/1.0.6/server.mjs's ns() function. This becomes an unhandled rejection, the sidecar gets reaped, and the server exits unexpectedly. On restart, the scheduler immediately retries the same chat, so the crash loop repeats and the server can't stay up.

Steps to reproduce

  1. Have a chat with an active autonomous-scheduler job and the hierarchical-maps capability enabled.
  2. Start the server.
  3. Wait for (or trigger) autonomous-scheduler to run generate for that chat.
  4. Server crashes with t.select is not a function and exits.

Environment

  • Marinara Engine version: v2.3.2 (unconfirmed — need to double-check in About/launcher screen)
  • Install type: installer
  • OS + version: Windows (version unconfirmed)
  • Browser or app shell: local browser (http://127.0.0.1:7860)

Logs, screenshots, or video

{"level":40,"time":1784243763907,"pid":18736,"hostname":"REDACTED","msg":"[autonomous-scheduler] Pausing retries for chat <CHAT_ID> for 300 seconds after transient failure: t.select is not a function"}
{"level":40,"time":1784243763908,"pid":18736,"hostname":"REDACTED","msg":"[autonomous-scheduler] Generate failed for chat <CHAT_ID>: t.select is not a function"}
{"level":50,"time":1784243763908,"pid":18736,"hostname":"REDACTED","err":{"type":"TypeError","message":"t.select is not a function","stack":"TypeError: t.select is not a function\n    at ns (file:///<APP_PATH>/packages/server/data/capability-packages/versions/hierarchical-maps/1.0.6/server.mjs?activation=1.0.6-1784243742776:701:81997)\n    at Object.ROe (file:///<APP_PATH>/packages/server/data/capability-packages/versions/hierarchical-maps/1.0.6/server.mjs?activation=1.0.6-1784243742776:705:715)\n    at resolveOwnerSpatialProjection (file:///<APP_PATH>/packages/server/dist/services/spatial-context/projection.js:7:23)\n    at Object.<anonymous> (file:///<APP_PATH>/packages/server/dist/routes/generate.routes.js:761:51)\n    at process.processTicksAndRejections (node:internal/process/task_queues:104:5)"},"msg":"[process] Unhandled rejection; reaping sidecar before exit"}

Additional context

  • The same stack trace also occurs via chats.routes.js (same function path is hit just by opening the chat).
  • Temporary workaround: renaming/disabling the capability-packages/versions/hierarchical-maps folder stops the crash, but the pending scheduler job for the affected chat caused several crashes before the server could stay up long enough for the rename to take effect.
  • There doesn't seem to be a UI or CLI way to safely cancel/delete a scheduler job tied to a specific chat, which makes it hard to work around a problem chat without touching the capability package itself.

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @Useeeeeerr on GitHub (Jul 16, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3727 Originally assigned to: @SpicyMarinara on GitHub. ## Summary The `hierarchical-maps` v1.0.6 capability package throws a `t.select is not a function` TypeError, which propagates as an unhandled rejection and crashes the entire server process. Because autonomous-scheduler keeps retrying generate for a specific chat, the crash repeats immediately on every restart, before there's any chance to disable the feature from the UI. ## Expected behavior A failure in `resolveOwnerSpatialProjection` / the hierarchical-maps capability call should be caught and logged, failing only that single generate request or scheduler job. It should not crash the whole server process. ## Actual behavior After starting the server, autonomous-scheduler retries generate for a specific chat, which triggers a TypeError (`t.select is not a function`) inside `hierarchical-maps/1.0.6/server.mjs`'s `ns()` function. This becomes an unhandled rejection, the sidecar gets reaped, and the server exits unexpectedly. On restart, the scheduler immediately retries the same chat, so the crash loop repeats and the server can't stay up. ## Steps to reproduce 1. Have a chat with an active autonomous-scheduler job and the hierarchical-maps capability enabled. 2. Start the server. 3. Wait for (or trigger) autonomous-scheduler to run generate for that chat. 4. Server crashes with `t.select is not a function` and exits. ## Environment - Marinara Engine version: v2.3.2 (unconfirmed — need to double-check in About/launcher screen) - Install type: installer - OS + version: Windows (version unconfirmed) - Browser or app shell: local browser (`http://127.0.0.1:7860`) ## Logs, screenshots, or video ``` {"level":40,"time":1784243763907,"pid":18736,"hostname":"REDACTED","msg":"[autonomous-scheduler] Pausing retries for chat <CHAT_ID> for 300 seconds after transient failure: t.select is not a function"} {"level":40,"time":1784243763908,"pid":18736,"hostname":"REDACTED","msg":"[autonomous-scheduler] Generate failed for chat <CHAT_ID>: t.select is not a function"} {"level":50,"time":1784243763908,"pid":18736,"hostname":"REDACTED","err":{"type":"TypeError","message":"t.select is not a function","stack":"TypeError: t.select is not a function\n at ns (file:///<APP_PATH>/packages/server/data/capability-packages/versions/hierarchical-maps/1.0.6/server.mjs?activation=1.0.6-1784243742776:701:81997)\n at Object.ROe (file:///<APP_PATH>/packages/server/data/capability-packages/versions/hierarchical-maps/1.0.6/server.mjs?activation=1.0.6-1784243742776:705:715)\n at resolveOwnerSpatialProjection (file:///<APP_PATH>/packages/server/dist/services/spatial-context/projection.js:7:23)\n at Object.<anonymous> (file:///<APP_PATH>/packages/server/dist/routes/generate.routes.js:761:51)\n at process.processTicksAndRejections (node:internal/process/task_queues:104:5)"},"msg":"[process] Unhandled rejection; reaping sidecar before exit"} ``` ## Additional context - The same stack trace also occurs via `chats.routes.js` (same function path is hit just by opening the chat). - Temporary workaround: renaming/disabling the `capability-packages/versions/hierarchical-maps` folder stops the crash, but the pending scheduler job for the affected chat caused several crashes before the server could stay up long enough for the rename to take effect. - There doesn't seem to be a UI or CLI way to safely cancel/delete a scheduler job tied to a specific chat, which makes it hard to work around a problem chat without touching the capability package itself. ## Template check - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:44:34 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@SpicyMarinara commented on GitHub (Jul 17, 2026):

Resolved by #3731, which quarantines incompatible Hierarchical Maps 1.0.x runtimes before activation, now merged into staging.

<!-- gh-comment-id:5000939563 --> @SpicyMarinara commented on GitHub (Jul 17, 2026): Resolved by #3731, which quarantines incompatible Hierarchical Maps 1.0.x runtimes before activation, now merged into staging.
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-Engine#2011
No description provided.