[GH-ISSUE #503] [Issue]: Game Mode always fails to start with JSON error #229

Closed
opened 2026-10-20 17:26:33 +07:00 by bsakaguchi · 2 comments
Owner

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

  • Marinara Engine version: Release: v1.5.8 Build: 1e4ac10
  • Install type: Git and start.bat
  • OS + version: Windows 11 25H2
  • Browser or app shell: Firefox

Logs, screenshots, or video

Image

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:

  • [] I DID NOT read this template and provide the requested details.
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 <!-- What happened instead? --> 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 - Marinara Engine version: Release: v1.5.8 Build: 1e4ac10 - Install type: Git and start.bat - OS + version: Windows 11 25H2 - Browser or app shell: Firefox ## Logs, screenshots, or video <img width="1102" height="886" alt="Image" src="https://github.com/user-attachments/assets/86e45c7f-742e-4cf9-9aa5-7d83f9e1cdc5" /> ## 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: - [] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-20 17:26:33 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@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

<!-- gh-comment-id:4415144847 --> @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
Author
Owner

@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.

<!-- gh-comment-id:4418195512 --> @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.
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#229
No description provided.