[GH-ISSUE #790] [Issue]: Scene analyzer can generate Android Termux background filenames that are too long #383

Closed
opened 2026-10-20 17:28:14 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @cha1latte on GitHub (May 13, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/790

Originally assigned to: @cha1latte on GitHub.

Summary

In Game Mode on Android Termux, the scene analyzer can generate a background tag that uses the entire scene description as the slug. That slug becomes the illustration filename, exceeds Android/Termux filename length limits, and causes image saving to fail with ENAMETOOLONG.

Source: https://discord.com/channels/1417099416812392641/1504034653051293797

Expected behavior

Generated background illustration filenames should stay within platform filesystem filename limits. Long scene descriptions or tags should be shortened, hashed, or otherwise converted into safe filenames before writing the image.

Actual behavior

The scene analyzer sometimes uses a long scene description as the background slug/filename. On Android Termux, this can exceed the 255-byte filename limit and fail with ENAMETOOLONG, preventing the generated image from saving.

Steps to reproduce

  1. Run Marinara Engine v1.5.9 on Android through Termux.
  2. Use Game Mode.
  3. Let the scene analyzer generate a background tag from a long scene description.
  4. Observe that the generated slug can become a very long filename under packages/server/data/game-assets/backgrounds/illustrations/.
  5. Observe that writing the image fails with ENAMETOOLONG and the image does not save.

Marinara Engine version

v1.5.9

Install type

Termux

OS + version

Android, exact version not specified.

Browser or app shell

Termux

Screenshots or video

Not a visual/UI issue.

Logs

{"level":50,"errno":-36,"code":"ENAMETOOLONG","syscall":"open","path":"/data/data/com.termux/files/home/Marinara-Engine/packages/server/data/game-assets/backgrounds/illustrations/story-defining-moment-of-intimate-emotional-recognition-akari-s-deliberate-disobedience-rewarded-hassan-s-possessive-desire-deepened-power-dynamics-established-the-song-performance-is-the-emotional-and-narrative-climax-of-this-scene-where-vulnerability-becomes-weaponized-intimacy-mp3ckuzn.png","msg":"[game-asset-gen] Failed to generate scene illustration \"story-defining-moment-of-intimate-emotional-recognition-akari-s-deliberate-disobedience-rewarded-hassan-s-possessive-desire-deepened-power-dynamics-established-the-song-performance-is-the-emotional-and-narrative-climax-of-this-scene-where-vulnerability-becomes-weaponized-intimacy-mp3ckuzn\""}

Additional context

Reporter is not sure whether this only affects Android/Termux or other platforms as well. Android filesystems commonly enforce a 255-byte filename limit, so the filename safety issue may be platform-sensitive.

Template check

  • I provided the required summary, behavior, reproduction, and environment details.
  • If this is a visual/UI bug, blank screen, layout issue, mobile/responsive issue, incorrect image or sprite, broken animation, or unexpected error state, I attached screenshots or video.
Originally created by @cha1latte on GitHub (May 13, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/790 Originally assigned to: @cha1latte on GitHub. ## Summary In Game Mode on Android Termux, the scene analyzer can generate a background tag that uses the entire scene description as the slug. That slug becomes the illustration filename, exceeds Android/Termux filename length limits, and causes image saving to fail with `ENAMETOOLONG`. Source: https://discord.com/channels/1417099416812392641/1504034653051293797 ## Expected behavior Generated background illustration filenames should stay within platform filesystem filename limits. Long scene descriptions or tags should be shortened, hashed, or otherwise converted into safe filenames before writing the image. ## Actual behavior The scene analyzer sometimes uses a long scene description as the background slug/filename. On Android Termux, this can exceed the 255-byte filename limit and fail with `ENAMETOOLONG`, preventing the generated image from saving. ## Steps to reproduce 1. Run Marinara Engine v1.5.9 on Android through Termux. 2. Use Game Mode. 3. Let the scene analyzer generate a background tag from a long scene description. 4. Observe that the generated slug can become a very long filename under `packages/server/data/game-assets/backgrounds/illustrations/`. 5. Observe that writing the image fails with `ENAMETOOLONG` and the image does not save. ## Marinara Engine version v1.5.9 ## Install type Termux ## OS + version Android, exact version not specified. ## Browser or app shell Termux ## Screenshots or video Not a visual/UI issue. ## Logs ```json {"level":50,"errno":-36,"code":"ENAMETOOLONG","syscall":"open","path":"/data/data/com.termux/files/home/Marinara-Engine/packages/server/data/game-assets/backgrounds/illustrations/story-defining-moment-of-intimate-emotional-recognition-akari-s-deliberate-disobedience-rewarded-hassan-s-possessive-desire-deepened-power-dynamics-established-the-song-performance-is-the-emotional-and-narrative-climax-of-this-scene-where-vulnerability-becomes-weaponized-intimacy-mp3ckuzn.png","msg":"[game-asset-gen] Failed to generate scene illustration \"story-defining-moment-of-intimate-emotional-recognition-akari-s-deliberate-disobedience-rewarded-hassan-s-possessive-desire-deepened-power-dynamics-established-the-song-performance-is-the-emotional-and-narrative-climax-of-this-scene-where-vulnerability-becomes-weaponized-intimacy-mp3ckuzn\""} ``` ## Additional context Reporter is not sure whether this only affects Android/Termux or other platforms as well. Android filesystems commonly enforce a 255-byte filename limit, so the filename safety issue may be platform-sensitive. ## Template check - [ ] I provided the required summary, behavior, reproduction, and environment details. - [ ] If this is a visual/UI bug, blank screen, layout issue, mobile/responsive issue, incorrect image or sprite, broken animation, or unexpected error state, I attached screenshots or video.
bsakaguchi 2026-10-20 17:28:14 +07:00
  • closed this issue
  • added the
    bug
    label
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#383
No description provided.