[GH-ISSUE #7173] [Issue]: Marinara Engine server crashes when accessed remotely through a browser #4004

Closed
opened 2026-10-21 06:09:27 +07:00 by bsakaguchi · 2 comments
Owner

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

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Accessing Marinara Engine through a browser on a PC causes the Termux-hosted server to crash, making remote use unavailable. The crash occurs while processing a background image thumbnail because the sharp dependency cannot load.

Expected behavior

Marinara Engine should remain running and be usable remotely through a browser on a PC.

Actual behavior

The Marinara Engine server exits with status 1 when a background image request is processed. Image processing fails because sharp cannot load, including a missing @emnapi/runtime module.

Steps to reproduce

  1. Run Marinara Engine version 2.5.0 in Termux on Android.
  2. Access Marinara Engine remotely through a browser on a PC.
  3. Allow the application to request a background image or its thumbnail.
  4. Observe that the server crashes and remote access becomes unavailable.

Environment

  • Marinara Engine version: 2.5.0
  • Install type: termux
  • OS + version: Android 16; server runs in Termux
  • Browser or app shell: MarinaraEngine/Android app shell using Android WebView; Chrome 153.0.8010.36

Logs, screenshots, or video

Relevant errors: TypeError: sharp.libvipsVersion is not a function; Image processing is unavailable on this platform (native 'sharp' module could not be loaded); Error: Cannot find module '@emnapi/runtime' from @img/sharp-wasm32; Marinara Engine server exited with status 1. No screenshots or video provided.

Additional context

The user reports that the normal automatic installation/update process handled the dependencies and that they did not manually modify the installation. Support diagnostics showed the server became unreachable after the crash. Client OS: Android 16; GPU: Adreno (TM) 840; active connection: Mimo through openrouter.

Discord thread: ME Crashes when accessed through pc
Discord thread link: https://discord.com/channels/1417099416812392641/1557101289400442973
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)

Discord thread transcript (10 messages)
[2026-10-06T18:44:36.936Z] Leytra: So this is a new one, tried to open up ME through the browser so I could start fiddling with the new agents on a bigger screen, but every time I do, it crashes the program entirely, meaning it can't be used remotely now.
[Discord message: https://discord.com/channels/1417099416812392641/1557101289400442973/1557101289400442973]

[2026-10-06T18:44:37.652Z] 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/1557101289400442973/1557101292403425413]

[2026-10-06T18:44:46.513Z] Leytra: Termux crash data:
[Discord message: https://discord.com/channels/1417099416812392641/1557101289400442973/1557101329569153178]

[2026-10-06T18:45:15.714Z] Leytra: Press Ctrl+C to stop
  ══════════════════════════════════════════

  [OK] Auto-open disabled (AUTO_OPEN_BROWSER=false)
  [OK] Android wake lock acquired for background reliability
{"level":40,"time":1791312131696,"pid":26166,"hostname":"localhost","bootId":"9fb25040","previousPid":25644,"path":"/data/data/com.termux/files/home/Marinara-Engine/packages/server/data/storage/.writer-lease","staleReason":"liveness","hostProof":"termux-home","msg":"[file-storage] Reclaimed the writer lease after confirming the previous owner was no longer listening."}
{"level":40,"time":1791312141070,"pid":26166,"hostname":"localhost","bootId":"9fb25040","requestId":"babd07a3-9182-4101-994d-e3cb387623b3","route":"/api/backgrounds/file/:filename","err":{"type":"TypeError","message":"sharp.libvipsVersion is not a function","stack":"TypeError: sharp.libvipsVersion is not a function\n    at file:///data/data/com.termux/files/home/Marinara-Engine/.pnpm/sharp@0.35.5_@types+node@24.13.5/node_modules/sharp/dist/utility.mjs:18:30\n    at ModuleJob.run (node:internal/modules/esm/module_job:439:25)\n    at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:643:26)\n    at async getSharp (file:///data/data/com.termux/files/home/Marinara-Engine/packages/server/dist/services/image/sharp-runtime.js:8:17)\n    at async resolveThumbPath (file:///data/data/com.termux/files/home/Marinara-Engine/packages/server/dist/services/image/image-thumbnail.js:23:19)\n    at async Object.<anonymous> (file:///data/data/com.termux/files/home/Marinara-Engine/packages/server/dist/routes/backgrounds.routes.js:575:40)"},"msg":"[sprites] Image processing unavailable because sharp could not be loaded"}
{"level":40,"time":1791312141071,"pid":26166,"hostname":"localhost","bootId":"9fb25040","requestId":"babd07a3-9182-4101-994d-e3cb387623b3","route":"/api/backgrounds/file/:filename","err":{"type":"Error","message":"Image processing is unavailable on this platform (native 'sharp' module could not be loaded). Sprite generation and background removal are disabled.","stack":"Error: Image processing is unavailable on this platform (native 'sharp' module could not be loaded). Sprite generation and background removal are disabled.\n    at getSharp (file:///data/data/com.termux/files/home/Marinara-Engine/packages/server/dist/services/image/sharp-runtime.js:16:22)\n    at async resolveThumbPath (file:///data/data/com.termux/files/home/Marinara-Engine/packages/server/dist/services/image/image-thumbnail.js:23:19)\n    at async Object.<anonymous> (file:///data/data/com.termux/files/home/Marinara-Engine/packages/server/dist/routes/backgrounds.routes.js:575:40)"},"msg":"Image thumbnail failed for /data/data/com.termux/files/home/Marinara-Engine/packages/server/data/backgrounds/Black.jpg"}
{"level":50,"time":1791312141072,"pid":26166,"hostname":"localhost","bootId":"9fb25040","requestId":"babd07a3-9182-4101-994d-e3cb387623b3","route":"/api/backgrounds/file/:filename","err":{"type":"Error","message":"Cannot find module '@emnapi/runtime'\nRequire stack:\n- /data/data/com.termux/files/home/Marinara-Engine/.pnpm/@img+sharp-wasm32@0.35.5/node_modules/@img/sharp-wasm32/lib/sharp-wasm32-0.35.5.node.js\n- /data/data/com.termux/files/home/Marinara-Engine/.pnpm/@img+sharp-wasm32@0.35.5/node_modules/@img/sharp-wasm32/index.cjs\n- /data/data/com.termux/files/home/Marinara-Engine/.pnpm/sharp@0.35.5_@types+node@24.13.5/node_modules/sharp/dist/sharp.mjs","stack":"Error: Cannot find module '@emnapi/runtime'\nRequire stack:\n- /data/data/com.termux/files/home/Marinara-Engine/.pnpm/@img+sharp-wasm32@0.35.5/node_modules/@img/sharp-wasm32/lib/sharp-wasm32-0.35.5.node.js\n-
[Discord message: https://discord.com/channels/1417099416812392641/1557101289400442973/1557101452047028395]

[2026-10-06T18:45:18.096Z] Leytra: /data/data/com.termux/files/home/Marinara-Engine/.pnpm/@img+sharp-wasm32@0.35.5/node_modules/@img/sharp-wasm32/index.cjs\n- /data/data/com.termux/files/home/Marinara-Engine/.pnpm/sharp@0.35.5_@types+node@24.13.5/node_modules/sharp/dist/sharp.mjs\n    at Module._resolveFilename (node:internal/modules/cjs/loader:1517:15)\n    at wrapResolveFilename (node:internal/modules/cjs/loader:1071:27)\n    at defaultResolveImplForCJSLoading (node:internal/modules/cjs/loader:1095:10)\n    at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1122:12)\n    at Module._load (node:internal/modules/cjs/loader:1294:5)\n    at wrapModuleLoad (node:internal/modules/cjs/loader:255:19)\n    at Module.require (node:internal/modules/cjs/loader:1617:12)\n    at require (node:internal/modules/helpers:153:16)\n    at Module.onRuntimeInitialized (/data/data/com.termux/files/home/Marinara-Engine/.pnpm/@img+sharp-wasm32@0.35.5/node_modules/@img/sharp-wasm32/lib/sharp-wasm32-0.35.5.node.js:1:733)\n    at run (/data/data/com.termux/files/home/Marinara-Engine/.pnpm/@img+sharp-wasm32@0.35.5/node_modules/@img/sharp-wasm32/lib/sharp-wasm32-0.35.5.node.js:1:160110)","code":"MODULE_NOT_FOUND","requireStack":["/data/data/com.termux/files/home/Marinara-Engine/.pnpm/@img+sharp-wasm32@0.35.5/node_modules/@img/sharp-wasm32/lib/sharp-wasm32-0.35.5.node.js","/data/data/com.termux/files/home/Marinara-Engine/.pnpm/@img+sharp-wasm32@0.35.5/node_modules/@img/sharp-wasm32/index.cjs","/data/data/com.termux/files/home/Marinara-Engine/.pnpm/sharp@0.35.5_@types+node@24.13.5/node_modules/sharp/dist/sharp.mjs"]},"msg":"[process] Unhandled rejection; reaping sidecar before exit"}
  [ERROR] Marinara Engine server exited with status 1.
[Discord message: https://discord.com/channels/1417099416812392641/1557101289400442973/1557101462037864570]

[2026-10-06T18:45:53.355Z] Leytra: ` ` `
Marinara Engine diagnostics
Version: 2.5.0
Build: 2.5.0
Commit: Unavailable
Server OS: Unreachable (request timed out)
Server memory: Unreachable (request timed out)
Background wake lock: Unreachable (request timed out)
Last detected freeze: Unreachable (request timed out)
Previous session: Unreachable (request timed out)
Sessions ended without shutdown: Unreachable (request timed out)
Client OS: Android 16
Browser / app shell: Mozilla/5.0 (Linux; Android 16; PNM-N49 Build/HONORPNM-N49; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/153.0.8010.36 Safari/537.36 MarinaraEngine/Android
Client runtime: {"build":"2.5.0+7e28236962a0","page":"mux14126-hwmanvcp","persistence":"local","navigation":"navigate","standalone":false,"view":[856,0,856,0],"events":[{"at":1791310497292,"page":"mux00pos-drdqf3zb","build":"2.5.0+7e28236962a0","kind":"page-start","view":[857,0,857,0]},{"at":1791312326355,"page":"mux00pos-drdqf3zb","build":"2.5.0+7e28236962a0","kind":"chunk-error","error":"TypeError","view":[857,0,857,0]},{"at":1791312326372,"page":"mux00pos-drdqf3zb","build":"2.5.0+7e28236962a0","kind":"reload-requested","reason":"chunk-recovery","view":[857,0,857,0]},{"at":1791312331614,"page":"mux14126-hwmanvcp","build":"2.5.0+7e28236962a0","kind":"page-start","view":[856,0,856,0]}]}
GPU: Adreno (TM) 840
Server GPU: Unreachable (request timed out)
Main sidecar: Unreachable (request timed out)
Utility sidecar: Unreachable (request timed out)
Decision sidecar: Unreachable (request timed out)
Sidecar load: Unreachable (request timed out)
Active connection: Mimo
Connection provider: openrouter
LLM model: xiaomi/mimo-v2.5
Mari last acted on: Unavailable (workspace status not reachable)
` ` `
[Discord message: https://discord.com/channels/1417099416812392641/1557101289400442973/1557101609924694097]

[2026-10-06T19:03:24.225Z] Marinara: >Termux.
[Discord message: https://discord.com/channels/1417099416812392641/1557101289400442973/1557106017592938649]

[2026-10-06T19:03:26.875Z] Marinara: :Termux:
[Discord message: https://discord.com/channels/1417099416812392641/1557101289400442973/1557106028707971093]

[2026-10-06T19:03:47.359Z] Marinara: Looks like some dependencies weren't properly installed.
[Discord message: https://discord.com/channels/1417099416812392641/1557101289400442973/1557106114623963307]

[2026-10-06T19:05:01.739Z] Leytra: there a way to force it to correct?
It's not like I did anything manually, the normal auto-install did all the updating work,
[Discord message: https://discord.com/channels/1417099416812392641/1557101289400442973/1557106426596433991]

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 (Oct 6, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7173 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Accessing Marinara Engine through a browser on a PC causes the Termux-hosted server to crash, making remote use unavailable. The crash occurs while processing a background image thumbnail because the sharp dependency cannot load. ## Expected behavior Marinara Engine should remain running and be usable remotely through a browser on a PC. ## Actual behavior The Marinara Engine server exits with status 1 when a background image request is processed. Image processing fails because sharp cannot load, including a missing @emnapi/runtime module. ## Steps to reproduce 1. Run Marinara Engine version 2.5.0 in Termux on Android. 2. Access Marinara Engine remotely through a browser on a PC. 3. Allow the application to request a background image or its thumbnail. 4. Observe that the server crashes and remote access becomes unavailable. ## Environment - Marinara Engine version: 2.5.0 - Install type: termux - OS + version: Android 16; server runs in Termux - Browser or app shell: MarinaraEngine/Android app shell using Android WebView; Chrome 153.0.8010.36 ## Logs, screenshots, or video Relevant errors: `TypeError: sharp.libvipsVersion is not a function`; `Image processing is unavailable on this platform (native 'sharp' module could not be loaded)`; `Error: Cannot find module '@emnapi/runtime'` from `@img/sharp-wasm32`; `Marinara Engine server exited with status 1`. No screenshots or video provided. ## Additional context The user reports that the normal automatic installation/update process handled the dependencies and that they did not manually modify the installation. Support diagnostics showed the server became unreachable after the crash. Client OS: Android 16; GPU: Adreno (TM) 840; active connection: Mimo through openrouter. Discord thread: ME Crashes when accessed through pc Discord thread link: https://discord.com/channels/1417099416812392641/1557101289400442973 Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653) <details> <summary>Discord thread transcript (10 messages)</summary> ```text [2026-10-06T18:44:36.936Z] Leytra: So this is a new one, tried to open up ME through the browser so I could start fiddling with the new agents on a bigger screen, but every time I do, it crashes the program entirely, meaning it can't be used remotely now. [Discord message: https://discord.com/channels/1417099416812392641/1557101289400442973/1557101289400442973] [2026-10-06T18:44:37.652Z] 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/1557101289400442973/1557101292403425413] [2026-10-06T18:44:46.513Z] Leytra: Termux crash data: [Discord message: https://discord.com/channels/1417099416812392641/1557101289400442973/1557101329569153178] [2026-10-06T18:45:15.714Z] Leytra: Press Ctrl+C to stop ══════════════════════════════════════════ [OK] Auto-open disabled (AUTO_OPEN_BROWSER=false) [OK] Android wake lock acquired for background reliability {"level":40,"time":1791312131696,"pid":26166,"hostname":"localhost","bootId":"9fb25040","previousPid":25644,"path":"/data/data/com.termux/files/home/Marinara-Engine/packages/server/data/storage/.writer-lease","staleReason":"liveness","hostProof":"termux-home","msg":"[file-storage] Reclaimed the writer lease after confirming the previous owner was no longer listening."} {"level":40,"time":1791312141070,"pid":26166,"hostname":"localhost","bootId":"9fb25040","requestId":"babd07a3-9182-4101-994d-e3cb387623b3","route":"/api/backgrounds/file/:filename","err":{"type":"TypeError","message":"sharp.libvipsVersion is not a function","stack":"TypeError: sharp.libvipsVersion is not a function\n at file:///data/data/com.termux/files/home/Marinara-Engine/.pnpm/sharp@0.35.5_@types+node@24.13.5/node_modules/sharp/dist/utility.mjs:18:30\n at ModuleJob.run (node:internal/modules/esm/module_job:439:25)\n at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:643:26)\n at async getSharp (file:///data/data/com.termux/files/home/Marinara-Engine/packages/server/dist/services/image/sharp-runtime.js:8:17)\n at async resolveThumbPath (file:///data/data/com.termux/files/home/Marinara-Engine/packages/server/dist/services/image/image-thumbnail.js:23:19)\n at async Object.<anonymous> (file:///data/data/com.termux/files/home/Marinara-Engine/packages/server/dist/routes/backgrounds.routes.js:575:40)"},"msg":"[sprites] Image processing unavailable because sharp could not be loaded"} {"level":40,"time":1791312141071,"pid":26166,"hostname":"localhost","bootId":"9fb25040","requestId":"babd07a3-9182-4101-994d-e3cb387623b3","route":"/api/backgrounds/file/:filename","err":{"type":"Error","message":"Image processing is unavailable on this platform (native 'sharp' module could not be loaded). Sprite generation and background removal are disabled.","stack":"Error: Image processing is unavailable on this platform (native 'sharp' module could not be loaded). Sprite generation and background removal are disabled.\n at getSharp (file:///data/data/com.termux/files/home/Marinara-Engine/packages/server/dist/services/image/sharp-runtime.js:16:22)\n at async resolveThumbPath (file:///data/data/com.termux/files/home/Marinara-Engine/packages/server/dist/services/image/image-thumbnail.js:23:19)\n at async Object.<anonymous> (file:///data/data/com.termux/files/home/Marinara-Engine/packages/server/dist/routes/backgrounds.routes.js:575:40)"},"msg":"Image thumbnail failed for /data/data/com.termux/files/home/Marinara-Engine/packages/server/data/backgrounds/Black.jpg"} {"level":50,"time":1791312141072,"pid":26166,"hostname":"localhost","bootId":"9fb25040","requestId":"babd07a3-9182-4101-994d-e3cb387623b3","route":"/api/backgrounds/file/:filename","err":{"type":"Error","message":"Cannot find module '@emnapi/runtime'\nRequire stack:\n- /data/data/com.termux/files/home/Marinara-Engine/.pnpm/@img+sharp-wasm32@0.35.5/node_modules/@img/sharp-wasm32/lib/sharp-wasm32-0.35.5.node.js\n- /data/data/com.termux/files/home/Marinara-Engine/.pnpm/@img+sharp-wasm32@0.35.5/node_modules/@img/sharp-wasm32/index.cjs\n- /data/data/com.termux/files/home/Marinara-Engine/.pnpm/sharp@0.35.5_@types+node@24.13.5/node_modules/sharp/dist/sharp.mjs","stack":"Error: Cannot find module '@emnapi/runtime'\nRequire stack:\n- /data/data/com.termux/files/home/Marinara-Engine/.pnpm/@img+sharp-wasm32@0.35.5/node_modules/@img/sharp-wasm32/lib/sharp-wasm32-0.35.5.node.js\n- [Discord message: https://discord.com/channels/1417099416812392641/1557101289400442973/1557101452047028395] [2026-10-06T18:45:18.096Z] Leytra: /data/data/com.termux/files/home/Marinara-Engine/.pnpm/@img+sharp-wasm32@0.35.5/node_modules/@img/sharp-wasm32/index.cjs\n- /data/data/com.termux/files/home/Marinara-Engine/.pnpm/sharp@0.35.5_@types+node@24.13.5/node_modules/sharp/dist/sharp.mjs\n at Module._resolveFilename (node:internal/modules/cjs/loader:1517:15)\n at wrapResolveFilename (node:internal/modules/cjs/loader:1071:27)\n at defaultResolveImplForCJSLoading (node:internal/modules/cjs/loader:1095:10)\n at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1122:12)\n at Module._load (node:internal/modules/cjs/loader:1294:5)\n at wrapModuleLoad (node:internal/modules/cjs/loader:255:19)\n at Module.require (node:internal/modules/cjs/loader:1617:12)\n at require (node:internal/modules/helpers:153:16)\n at Module.onRuntimeInitialized (/data/data/com.termux/files/home/Marinara-Engine/.pnpm/@img+sharp-wasm32@0.35.5/node_modules/@img/sharp-wasm32/lib/sharp-wasm32-0.35.5.node.js:1:733)\n at run (/data/data/com.termux/files/home/Marinara-Engine/.pnpm/@img+sharp-wasm32@0.35.5/node_modules/@img/sharp-wasm32/lib/sharp-wasm32-0.35.5.node.js:1:160110)","code":"MODULE_NOT_FOUND","requireStack":["/data/data/com.termux/files/home/Marinara-Engine/.pnpm/@img+sharp-wasm32@0.35.5/node_modules/@img/sharp-wasm32/lib/sharp-wasm32-0.35.5.node.js","/data/data/com.termux/files/home/Marinara-Engine/.pnpm/@img+sharp-wasm32@0.35.5/node_modules/@img/sharp-wasm32/index.cjs","/data/data/com.termux/files/home/Marinara-Engine/.pnpm/sharp@0.35.5_@types+node@24.13.5/node_modules/sharp/dist/sharp.mjs"]},"msg":"[process] Unhandled rejection; reaping sidecar before exit"} [ERROR] Marinara Engine server exited with status 1. [Discord message: https://discord.com/channels/1417099416812392641/1557101289400442973/1557101462037864570] [2026-10-06T18:45:53.355Z] Leytra: ` ` ` Marinara Engine diagnostics Version: 2.5.0 Build: 2.5.0 Commit: Unavailable Server OS: Unreachable (request timed out) Server memory: Unreachable (request timed out) Background wake lock: Unreachable (request timed out) Last detected freeze: Unreachable (request timed out) Previous session: Unreachable (request timed out) Sessions ended without shutdown: Unreachable (request timed out) Client OS: Android 16 Browser / app shell: Mozilla/5.0 (Linux; Android 16; PNM-N49 Build/HONORPNM-N49; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/153.0.8010.36 Safari/537.36 MarinaraEngine/Android Client runtime: {"build":"2.5.0+7e28236962a0","page":"mux14126-hwmanvcp","persistence":"local","navigation":"navigate","standalone":false,"view":[856,0,856,0],"events":[{"at":1791310497292,"page":"mux00pos-drdqf3zb","build":"2.5.0+7e28236962a0","kind":"page-start","view":[857,0,857,0]},{"at":1791312326355,"page":"mux00pos-drdqf3zb","build":"2.5.0+7e28236962a0","kind":"chunk-error","error":"TypeError","view":[857,0,857,0]},{"at":1791312326372,"page":"mux00pos-drdqf3zb","build":"2.5.0+7e28236962a0","kind":"reload-requested","reason":"chunk-recovery","view":[857,0,857,0]},{"at":1791312331614,"page":"mux14126-hwmanvcp","build":"2.5.0+7e28236962a0","kind":"page-start","view":[856,0,856,0]}]} GPU: Adreno (TM) 840 Server GPU: Unreachable (request timed out) Main sidecar: Unreachable (request timed out) Utility sidecar: Unreachable (request timed out) Decision sidecar: Unreachable (request timed out) Sidecar load: Unreachable (request timed out) Active connection: Mimo Connection provider: openrouter LLM model: xiaomi/mimo-v2.5 Mari last acted on: Unavailable (workspace status not reachable) ` ` ` [Discord message: https://discord.com/channels/1417099416812392641/1557101289400442973/1557101609924694097] [2026-10-06T19:03:24.225Z] Marinara: >Termux. [Discord message: https://discord.com/channels/1417099416812392641/1557101289400442973/1557106017592938649] [2026-10-06T19:03:26.875Z] Marinara: :Termux: [Discord message: https://discord.com/channels/1417099416812392641/1557101289400442973/1557106028707971093] [2026-10-06T19:03:47.359Z] Marinara: Looks like some dependencies weren't properly installed. [Discord message: https://discord.com/channels/1417099416812392641/1557101289400442973/1557106114623963307] [2026-10-06T19:05:01.739Z] Leytra: there a way to force it to correct? It's not like I did anything manually, the normal auto-install did all the updating work, [Discord message: https://discord.com/channels/1417099416812392641/1557101289400442973/1557106426596433991] ``` </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:09:27 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Oct 6, 2026):

Claude is taking this issue for @SpicyMarinara. I checked for linked, open and draft PRs first; none exist. The fix will target staging.

Cause found so far (a v2.5.0 regression):

  1. Missing module on Termux. On Termux, sharp has no native build, so it falls back to @img/sharp-wasm32, which loads @emnapi/runtime when it starts. v2.5.0 moved @img/sharp-wasm32 from optionalDependencies to dependencies (#6885). pnpm does not link @emnapi/runtime into that package's own node_modules. On a desktop install it is still found through pnpm's hoisted copy, but on this device it is not, so the fallback fails.
  2. The failure crashes the server. The fallback reports this second failure asynchronously, outside the try/catch around import("sharp") in getSharp(). It becomes an unhandled rejection, and packages/server/src/index.ts exits on those. The first image request (the background thumbnail the browser loads on open) therefore kills the whole server, when it should only disable image processing.

Next: reproduce a Termux-style install on desktop, confirm the install fix, make a broken image library non-fatal, and add a regression that covers both.

<!-- gh-comment-id:6023501829 --> @SpicyMarinara commented on GitHub (Oct 6, 2026): Claude is taking this issue for @SpicyMarinara. I checked for linked, open and draft PRs first; none exist. The fix will target `staging`. Cause found so far (a v2.5.0 regression): 1. **Missing module on Termux.** On Termux, `sharp` has no native build, so it falls back to `@img/sharp-wasm32`, which loads `@emnapi/runtime` when it starts. v2.5.0 moved `@img/sharp-wasm32` from `optionalDependencies` to `dependencies` (#6885). pnpm does not link `@emnapi/runtime` into that package's own `node_modules`. On a desktop install it is still found through pnpm's hoisted copy, but on this device it is not, so the fallback fails. 2. **The failure crashes the server.** The fallback reports this second failure asynchronously, outside the `try/catch` around `import("sharp")` in `getSharp()`. It becomes an unhandled rejection, and `packages/server/src/index.ts` exits on those. The first image request (the background thumbnail the browser loads on open) therefore kills the whole server, when it should only disable image processing. Next: reproduce a Termux-style install on desktop, confirm the install fix, make a broken image library non-fatal, and add a regression that covers both.
Author
Owner

@SpicyMarinara commented on GitHub (Oct 6, 2026):

Root cause confirmed by reproducing the Termux install on desktop with pnpm 10.34.5, forcing sharp's WebAssembly fallback:

  • Only in-place updates from 2.4.6 break; fresh 2.5.0 installs are fine.
    • In 2.4.6, @img/sharp-wasm32 was optional, so pnpm recorded its helper @emnapi/runtime as skipped in node_modules/.modules.yaml.
    • 2.5.0 made the fallback a regular dependency. The launcher's update runs pnpm install --frozen-lockfile without --force, which never clears that stale skipped entry, so @emnapi/runtime is never installed.
    • The in-app updater uses --force, which is why some users are not affected.
  • Why it kills the server: the fallback finishes starting up in an un-awaited async function. Its failure becomes an unhandled rejection that getSharp() cannot catch, and the server exits on unhandled rejections.

Workaround for affected Termux installs (verified on a copy of the broken state):

cd ~/Marinara-Engine
rm -f node_modules/.modules.yaml
SHARP_IGNORE_GLOBAL_LIBVIPS=1 pnpm --config.trustPolicy=off --config.confirmModulesPurge=false install --frozen-lockfile --prefer-offline
./start-termux.sh

Deleting .modules.yaml drops pnpm's stale skipped list. The install then adds only @emnapi/runtime from the local store, with no other downloads. Running pnpm install --frozen-lockfile alone does not fix it.

The fix PR makes @emnapi/runtime a direct server dependency, which repairs fresh installs, updates from 2.4.6 and already-broken trees on the next update. It also makes a failed image-library start disable image processing instead of stopping the server.

<!-- gh-comment-id:6023956846 --> @SpicyMarinara commented on GitHub (Oct 6, 2026): Root cause confirmed by reproducing the Termux install on desktop with pnpm 10.34.5, forcing sharp's WebAssembly fallback: - **Only in-place updates from 2.4.6 break; fresh 2.5.0 installs are fine.** - In 2.4.6, `@img/sharp-wasm32` was optional, so pnpm recorded its helper `@emnapi/runtime` as *skipped* in `node_modules/.modules.yaml`. - 2.5.0 made the fallback a regular dependency. The launcher's update runs `pnpm install --frozen-lockfile` without `--force`, which never clears that stale skipped entry, so `@emnapi/runtime` is never installed. - The in-app updater uses `--force`, which is why some users are not affected. - **Why it kills the server:** the fallback finishes starting up in an un-awaited async function. Its failure becomes an unhandled rejection that `getSharp()` cannot catch, and the server exits on unhandled rejections. **Workaround for affected Termux installs (verified on a copy of the broken state):** ```sh cd ~/Marinara-Engine rm -f node_modules/.modules.yaml SHARP_IGNORE_GLOBAL_LIBVIPS=1 pnpm --config.trustPolicy=off --config.confirmModulesPurge=false install --frozen-lockfile --prefer-offline ./start-termux.sh ``` Deleting `.modules.yaml` drops pnpm's stale skipped list. The install then adds only `@emnapi/runtime` from the local store, with no other downloads. Running `pnpm install --frozen-lockfile` alone does **not** fix it. The fix PR makes `@emnapi/runtime` a direct server dependency, which repairs fresh installs, updates from 2.4.6 and already-broken trees on the next update. It also makes a failed image-library start disable image processing instead of stopping the server.
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#4004
No description provided.