mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #503] [Issue]: Game Mode always fails to start with JSON error #229
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#229
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 @butterbutts on GitHub (May 7, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/503
Summary
I'm on a brand new setup with Gemma 4 and KoboldCPP. I'm trying to start game mode, but I get as far as hitting "Start Game" before it gives me an error after generating the game's prompt.
Expected behavior
Game Mode starts as expected.
Actual behavior
The following errors appear and I'm prompted to manually fix the JSON, although as far as I can tell nothing is wrong with it.
The model returned JSON that Marinara could not apply. Fix the brackets, commas, or fields here, then apply it without regenerating the whole response.
JSON.parse: expected ',' or '}' after property value in object at line 46 column 7 of the JSON data
The error is always line 46 column 7 specifically.
Steps to reproduce
1.Set up a new game
2.Enter the required information
3.Click "Start Game"
Environment
1e4ac10Logs, screenshots, or video
Additional context
Just as a side note, the editor provided does not show line numbers. It says to manually change a line without telling the user what line that is.
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:
@SpicyMarinara commented on GitHub (May 10, 2026):
Implemented for v1.5.9. The Game setup JSON parser now tolerates common LLM JSON mistakes that caused this report, including a missing comma before the next property, comments, and trailing commas. The JSON repair modal also now shows line numbers so line/column errors are actionable when repair is still needed. Added the CHANGELOG entry and focused parser coverage.\n\nValidation:\n- pnpm --filter @marinara-engine/server exec tsx --import ./test/setup-env.ts --test test/game-jsonish.test.ts\n- pnpm --filter @marinara-engine/server lint\n- pnpm --filter @marinara-engine/client lint
@butterbutts commented on GitHub (May 11, 2026):
I'm still having a similar issue, but now it keeps saying line 42 column 120. I also ran the output through gemini to fix it for me, and it accepted the json after that, but now I just get led to a screen that has some short details about the world and a big "Start Game" button, but pressing the button does nothing.