[GH-ISSUE #6549] [Issue]: Blank Custom Tracker fields permanently crash Roleplay chats #3669

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

Originally created by @SpicyMarinara on GitHub (Sep 22, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6549

Originally assigned to: @SpicyMarinara on GitHub.

Summary

A blank or nameless Custom Tracker row, such as an agent-emitted {}, can be persisted in a Roleplay chat's tracker state. Opening the affected chat then permanently crashes the app while rendering the tracker HUD.

Expected behavior

The Tracker HUD should render even when agent output contains blank or nameless fields, and invalid blank fields should not be saved to tracker state.

Actual behavior

Opening a chat with a persisted blank Custom Tracker row throws TypeError: can't access property "split", f is undefined in the RoleplayHUD Custom Tracker widget. AppRecoveryBoundary catches the error, causing the entire app to crash for that chat on every reload.

Steps to reproduce

  1. Use Roleplay mode with Custom Tracker enabled until the agent emits a blank or nameless field, such as a trailing {} in customTrackerFields.
  2. Open the affected chat.
  3. Observe that the app crashes while rendering the tracker HUD.
  4. Reload the app and reopen the chat; the crash persists because the invalid row is already stored in the game-state snapshot.

Environment

  • Marinara Engine version: 2.4.4; also confirmed on staging at 77e06ab3a and main 2.4.6
  • Install type: source
  • OS + version: Windows
  • Browser or app shell: Chromium desktop

Logs, screenshots, or video

Error: TypeError: can't access property "split", f is undefined, thrown in the RoleplayHUD Custom Tracker widget and caught by AppRecoveryBoundary. No screenshots or video provided.

Additional context

Severity is medium: the crash is unrecoverable for the affected chat unless raw storage JSON is edited by hand, but it is scoped to that chat with no reported security or data-loss impact. The reporter has a tested fix that filters blank or nameless rows in resolveTrackerRowsUpdate, also protecting Inventory Tracker and present-characters through the same code path, with a defense-in-depth widget guard and regression test. pnpm lint, format check, and regression tests pass on the fix branch.

Discord thread: TypeError: can't access property "split", f is undefined due to blank Custom Tracker field
Discord thread link: https://discord.com/channels/1417099416812392641/1552031426130485289
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)

Discord thread transcript (2 messages)
[2026-09-22T18:58:47.339Z] Jason_Street: A blank Custom Tracker field (agent-emitted row with no name/value, e.g. {}) can get saved into a Roleplay chat's tracker state. Once one exists, opening that chat permanently crashes the whole app — reloading does not help, since the bad row is already persisted in the game-state snapshot.

Chat mode: Roleplay

Expected: Tracker HUD renders regardless of agent output; blank fields never get saved.

Actual: TypeError: can't access property "split", f is undefined, thrown in RoleplayHUD's Custom Tracker widget, caught by AppRecoveryBoundary. Whole app goes down for that chat, every time, permanently.

Steps to reproduce:

Play Roleplay with Custom Tracker enabled until it emits a blank/nameless field (mine ended up with a trailing {} in customTrackerFields).
Open that chat.
App crashes rendering the tracker HUD. Reload doesn't fix it.
Environment

Version: 2.4.4 (confirmed still present on staging @ 77e06ab3a and main 2.4.6)
Install: source
OS: Windows
Shell: Chromium desktop
Severity: Medium — full, unrecoverable app crash for the affected chat (only fixable by hand-editing raw storage JSON), though scoped to that one chat with no security/data-loss impact beyond it.

I already have a tested fix ready: filters blank/nameless rows in resolveTrackerRowsUpdate (also protects Inventory Tracker and present-characters via the same code path), plus a defense-in-depth guard in the widget and a new regression test. pnpm lint/format:check/regression all pass clean on the fix branch. Happy to open a PR against staging once this gets a GitHub issue number.
[Discord message: https://discord.com/channels/1417099416812392641/1552031426130485289/1552031426130485289]

[2026-09-22T18:58:48.146Z] Professor Mari [bot]: Howdy!

Thank you for submitting a new bug report/feature request, your support means a lot. A member of the team will look into it as soon as possible, and if they find it valid, they will open a GitHub Issue out of it. You can check whether it was addressed on the staging build of Marinara Engine. **Do not ping any of the developers, this will not speed up the process.**

**Please include a Support Diagnostic in the post if you haven't done it yet.** Otherwise, ignore this step. To grab it, go to the Marinara Engine tab:

`Settings -> Advanced -> Support Diagnostics -> Copy Support Diagnostics.`

If your report is about any of the **Agents**, please provide **the Agent's version** which you can grab from here:

`Agents -> Download Agents -> Installed Agents -> Selected Agent -> Installed Version`

Thank you, this will help tremendously.

This is an automated message, but if you reply to it, I will do my best to assist you using my LLM-powered brain. That said, it's best for a human to handle this case.

Cheers!
[Discord message: https://discord.com/channels/1417099416812392641/1552031426130485289/1552031429515542581]

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @SpicyMarinara on GitHub (Sep 22, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6549 Originally assigned to: @SpicyMarinara on GitHub. ## Summary A blank or nameless Custom Tracker row, such as an agent-emitted `{}`, can be persisted in a Roleplay chat's tracker state. Opening the affected chat then permanently crashes the app while rendering the tracker HUD. ## Expected behavior The Tracker HUD should render even when agent output contains blank or nameless fields, and invalid blank fields should not be saved to tracker state. ## Actual behavior Opening a chat with a persisted blank Custom Tracker row throws `TypeError: can't access property "split", f is undefined` in the RoleplayHUD Custom Tracker widget. AppRecoveryBoundary catches the error, causing the entire app to crash for that chat on every reload. ## Steps to reproduce 1. Use Roleplay mode with Custom Tracker enabled until the agent emits a blank or nameless field, such as a trailing `{}` in `customTrackerFields`. 2. Open the affected chat. 3. Observe that the app crashes while rendering the tracker HUD. 4. Reload the app and reopen the chat; the crash persists because the invalid row is already stored in the game-state snapshot. ## Environment - Marinara Engine version: 2.4.4; also confirmed on staging at 77e06ab3a and main 2.4.6 - Install type: source - OS + version: Windows - Browser or app shell: Chromium desktop ## Logs, screenshots, or video Error: `TypeError: can't access property "split", f is undefined`, thrown in the RoleplayHUD Custom Tracker widget and caught by AppRecoveryBoundary. No screenshots or video provided. ## Additional context Severity is medium: the crash is unrecoverable for the affected chat unless raw storage JSON is edited by hand, but it is scoped to that chat with no reported security or data-loss impact. The reporter has a tested fix that filters blank or nameless rows in `resolveTrackerRowsUpdate`, also protecting Inventory Tracker and present-characters through the same code path, with a defense-in-depth widget guard and regression test. pnpm lint, format check, and regression tests pass on the fix branch. Discord thread: TypeError: can't access property "split", f is undefined due to blank Custom Tracker field Discord thread link: https://discord.com/channels/1417099416812392641/1552031426130485289 Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653) <details> <summary>Discord thread transcript (2 messages)</summary> ```text [2026-09-22T18:58:47.339Z] Jason_Street: A blank Custom Tracker field (agent-emitted row with no name/value, e.g. {}) can get saved into a Roleplay chat's tracker state. Once one exists, opening that chat permanently crashes the whole app — reloading does not help, since the bad row is already persisted in the game-state snapshot. Chat mode: Roleplay Expected: Tracker HUD renders regardless of agent output; blank fields never get saved. Actual: TypeError: can't access property "split", f is undefined, thrown in RoleplayHUD's Custom Tracker widget, caught by AppRecoveryBoundary. Whole app goes down for that chat, every time, permanently. Steps to reproduce: Play Roleplay with Custom Tracker enabled until it emits a blank/nameless field (mine ended up with a trailing {} in customTrackerFields). Open that chat. App crashes rendering the tracker HUD. Reload doesn't fix it. Environment Version: 2.4.4 (confirmed still present on staging @ 77e06ab3a and main 2.4.6) Install: source OS: Windows Shell: Chromium desktop Severity: Medium — full, unrecoverable app crash for the affected chat (only fixable by hand-editing raw storage JSON), though scoped to that one chat with no security/data-loss impact beyond it. I already have a tested fix ready: filters blank/nameless rows in resolveTrackerRowsUpdate (also protects Inventory Tracker and present-characters via the same code path), plus a defense-in-depth guard in the widget and a new regression test. pnpm lint/format:check/regression all pass clean on the fix branch. Happy to open a PR against staging once this gets a GitHub issue number. [Discord message: https://discord.com/channels/1417099416812392641/1552031426130485289/1552031426130485289] [2026-09-22T18:58:48.146Z] Professor Mari [bot]: Howdy! Thank you for submitting a new bug report/feature request, your support means a lot. A member of the team will look into it as soon as possible, and if they find it valid, they will open a GitHub Issue out of it. You can check whether it was addressed on the staging build of Marinara Engine. **Do not ping any of the developers, this will not speed up the process.** **Please include a Support Diagnostic in the post if you haven't done it yet.** Otherwise, ignore this step. To grab it, go to the Marinara Engine tab: `Settings -> Advanced -> Support Diagnostics -> Copy Support Diagnostics.` If your report is about any of the **Agents**, please provide **the Agent's version** which you can grab from here: `Agents -> Download Agents -> Installed Agents -> Selected Agent -> Installed Version` Thank you, this will help tremendously. This is an automated message, but if you reply to it, I will do my best to assist you using my LLM-powered brain. That said, it's best for a human to handle this case. Cheers! [Discord message: https://discord.com/channels/1417099416812392641/1552031426130485289/1552031429515542581] ``` </details> ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 06:05:45 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Sep 23, 2026):

Fixed in #6554, now merged into staging. Saved blank Custom Tracker rows no longer crash Roleplay, and new nameless fields are removed after applying field locks.

<!-- gh-comment-id:5787761085 --> @SpicyMarinara commented on GitHub (Sep 23, 2026): Fixed in #6554, now merged into staging. Saved blank Custom Tracker rows no longer crash Roleplay, and new nameless fields are removed after applying field locks.
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#3669
No description provided.