[GH-ISSUE #2922] [Issue]: APK install on Android cannot download local runtime (Install Runtime button closes immediately) #1500

Closed
opened 2026-10-21 05:36:58 +07:00 by bsakaguchi · 3 comments
Owner

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

Originally assigned to: @SpicyMarinara on GitHub.

Summary

On Android APK installs, tapping Install Runtime for the local model runtime appears to open briefly and then closes immediately without starting the download or showing an error. The maintainer indicated this may be an APK-specific limitation and noted a debug log is needed for APK builds.

Expected behavior

Tapping Install Runtime should start downloading the runtime and show progress or a clear error if the download fails.

Actual behavior

The Install Runtime popup appears briefly, then disappears immediately and the download stops. No error message is shown.

Steps to reproduce

  1. Install Marinara Engine on Android using the APK.
  2. Open the Local AI Model panel and ensure the model is downloaded/selected.
  3. Tap Install Runtime.
  4. Observe that the popup closes immediately and the runtime does not download.

Environment

  • Marinara Engine version: Not provided in the Discord thread.
  • Install type: installer
  • OS + version: Android; exact version not provided in the Discord thread.
  • Browser or app shell: Android APK app

Logs, screenshots, or video

Attached screenshot shows the Local AI Model panel with the model downloaded/selected and Runtime marked as not downloaded yet. No runtime download logs were provided. Maintainer requested ADB logcat or an APK debug log, but none were shared in the thread.

Additional context

User reported having about 15 GB free space on the phone. Maintainer suggested fully restarting the app and checking logs. Later comments indicate APK builds may not support downloading the sidecar/runtime the same way, and that a debug log for APK should be added.

Discord thread: Can't download local runtime on Android
Thread link: https://discord.com/channels/1417099416812392641/1520846651005075567
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)

Discord thread transcript (26 messages)
[2026-06-28T17:41:37.564Z] SourSoto: Pretty sure it's a thing on my end, or maybe I'm dumb and it's just not a thing you can do on android, but when I try to tap the install runtime button it pops up then immediately disappears and the download stops. I'm not sure what error this is because it's not giving me one.

[attached image 1: https://cdn.discordapp.com/attachments/1520846651005075567/1520846651303137400/Screenshot_2026-06-28-10-35-12-84_ceecbf7873935cfa270127836eb04ef0.jpg?ex=6a42ae51&is=6a415cd1&hm=a6b26f1efad67e1f3712ce15f18594319ac87732358ffc16da81953648a01dff&]
[Discord message: https://discord.com/channels/1417099416812392641/1520846651005075567/1520846651005075567]

[2026-06-28T17:44:23.237Z] Marinara: Restart after downloading.
[Discord message: https://discord.com/channels/1417099416812392641/1520846651005075567/1520847345888268448]

[2026-06-28T17:44:30.198Z] Marinara: Need to add a reminder to do that there.
[Discord message: https://discord.com/channels/1417099416812392641/1520846651005075567/1520847375084687451]

[2026-06-28T17:44:48.430Z] Marinara: Oh, it doesn't download, do you have eough space for that?
[Discord message: https://discord.com/channels/1417099416812392641/1520846651005075567/1520847451555369052]

[2026-06-28T17:47:24.319Z] SourSoto: I should have enough space, I have like 15 gigs left on my phone.
[Discord message: https://discord.com/channels/1417099416812392641/1520846651005075567/1520848105401225246]

[2026-06-28T17:47:49.239Z] SourSoto: And by restart do you mean to close and open the app again?
[Discord message: https://discord.com/channels/1417099416812392641/1520846651005075567/1520848209923014656]

[2026-06-28T17:52:24.132Z] Marinara: yeah
[Discord message: https://discord.com/channels/1417099416812392641/1520846651005075567/1520849362907828449]

[2026-06-28T17:52:27.020Z] Marinara: like entirely
[Discord message: https://discord.com/channels/1417099416812392641/1520846651005075567/1520849375020978418]

[2026-06-28T17:52:39.161Z] Marinara: also check console for the exact error
[Discord message: https://discord.com/channels/1417099416812392641/1520846651005075567/1520849425944285214]

[2026-06-28T18:01:14.072Z] SourSoto: How do I do that 😬 like what do I do on termux to do that
[Discord message: https://discord.com/channels/1417099416812392641/1520846651005075567/1520851585637548042]

[2026-06-28T18:15:00.436Z] Marinara: You had to open a console to
[Discord message: https://discord.com/channels/1417099416812392641/1520846651005075567/1520855051659378709]

[2026-06-28T18:15:04.876Z] Marinara: Wait you probably installed using apk
[Discord message: https://discord.com/channels/1417099416812392641/1520846651005075567/1520855070282088690]

[2026-06-28T18:15:06.961Z] Marinara: did you
[Discord message: https://discord.com/channels/1417099416812392641/1520846651005075567/1520855079026954381]

[2026-06-28T18:15:25.489Z] SourSoto: Yeah I installed using apk
[Discord message: https://discord.com/channels/1417099416812392641/1520846651005075567/1520855156739014777]

[2026-06-28T18:16:10.353Z] Marinara: I'm gonna do a so-called pro-gamer move
[Discord message: https://discord.com/channels/1417099416812392641/1520846651005075567/1520855344912400506]

[2026-06-28T18:16:15.311Z] SourSoto: Only thing I typed in the console was to allow external apps
[Discord message: https://discord.com/channels/1417099416812392641/1520846651005075567/1520855365707894908]

[2026-06-28T18:16:36.527Z] Marinara: @Professor Mari If someone installed Marinara Engine via our apk on their Android mobile device, how can they access their console
[Discord message: https://discord.com/channels/1417099416812392641/1520846651005075567/1520855454694117536]

[2026-06-28T18:16:54.506Z] Professor Mari [bot]: The screenshot shows the Local AI Model panel: model downloaded, but Runtime says “Not downloaded yet,” and tapping **Install Runtime** apparently opens then closes immediately.

For APK installs, Termux usually **won’t show the app console** unless the app was launched from there. The reliable “console” is Android **Logcat**.

**Best way: ADB logcat from a PC**
1. Enable **Developer options** on the phone.
2. Enable **USB debugging**.
3. Plug into PC and accept the debug prompt.
4. Run:

` ` `bash
adb logcat
` ` `

Then reproduce the failed **Install Runtime** tap and copy the relevant error lines.

If you want to filter it, use Android Studio’s **Logcat** UI, or try:

` ` `bash
adb logcat | grep -i marinara
` ` `

Package/app tag name may differ — repo snippets didn’t include the Android package name, tragic, so I can’t give the exact filter. Skill issue on the snippets, not you. 😔

**Without a PC:** it’s harder. Modern Android blocks normal apps/Termux from reading other apps’ logs unless rooted or using special permissions, so SourSoto may need to generate a **system bug report** from Developer Options instead.
[Discord message: https://discord.com/channels/1417099416812392641/1520846651005075567/1520855530103378063]

[2026-06-28T18:17:20.905Z] Marinara: Not helfpul at all, go uninstall yourself
[Discord message: https://discord.com/channels/1417099416812392641/1520846651005075567/1520855640829067405]

[2026-06-28T18:17:39.144Z] Professor Mari [bot]: Screenshot shows the model preset is downloaded/selected, but **Runtime = Not downloaded yet**, and tapping **Install Runtime** opens then immediately closes.

For APK installs on Android: you usually **can’t access the app console from Termux** unless the app was launched from there or you have special permissions/root. Android app logs are normally via **ADB logcat** from a PC. Because Android is allergic to being useful, naturally. kek

Try this:

1. Fully close Marinara and reopen it.
2. Try **Install Runtime** again.
3. If it still vanishes, grab logs with ADB:

` ` `bash
adb logcat | grep -i marinara
` ` `

or on Windows PowerShell:

` ` `powershell
adb logcat | Select-String -Pattern "marinara"
` ` `

Then tap the button again and copy the error around that moment.

Also worth checking:
- Android version
- Marinara APK version
- free space after the model download
- whether battery/storage restrictions are blocking downloads/background extraction

Repo search didn’t find a direct match for this runtime install failure, so I can’t prove the exact cause from code snippets. Most likely suspects are **Android download/storage permission/path issue**, **runtime archive extraction failing**, or **APK sandbox limitation**. Maintainer should check the Android runtime installer path/logging next.
[Discord message: https://discord.com/channels/1417099416812392641/1520846651005075567/1520855717328715906]

[2026-06-28T18:17:56.605Z] Marinara: ik believe she can only see the main thread
[Discord message: https://discord.com/channels/1417099416812392641/1520846651005075567/1520855790565724260]

[2026-06-28T18:18:02.049Z] Marinara: I'll ask codexussy
[Discord message: https://discord.com/channels/1417099416812392641/1520846651005075567/1520855813399248987]

[2026-06-28T18:18:13.680Z] SourSoto: Okay lol
[Discord message: https://discord.com/channels/1417099416812392641/1520846651005075567/1520855862183461117]

[2026-06-28T18:21:50.482Z] Marinara: Oh fuck, no easy way to do that in the apk version
[Discord message: https://discord.com/channels/1417099416812392641/1520846651005075567/1520856771516829828]

[2026-06-28T18:22:02.435Z] Marinara: I need to add a debug log for apk
[Discord message: https://discord.com/channels/1417099416812392641/1520846651005075567/1520856821651472384]

[2026-06-28T18:22:26.338Z] Marinara: You might not be able tod ownlaod sidecar on apk because it's apk
[Discord message: https://discord.com/channels/1417099416812392641/1520846651005075567/1520856921907925182]

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 (Jun 28, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2922 Originally assigned to: @SpicyMarinara on GitHub. ## Summary On Android APK installs, tapping Install Runtime for the local model runtime appears to open briefly and then closes immediately without starting the download or showing an error. The maintainer indicated this may be an APK-specific limitation and noted a debug log is needed for APK builds. ## Expected behavior Tapping Install Runtime should start downloading the runtime and show progress or a clear error if the download fails. ## Actual behavior The Install Runtime popup appears briefly, then disappears immediately and the download stops. No error message is shown. ## Steps to reproduce 1. Install Marinara Engine on Android using the APK. 2. Open the Local AI Model panel and ensure the model is downloaded/selected. 3. Tap Install Runtime. 4. Observe that the popup closes immediately and the runtime does not download. ## Environment - Marinara Engine version: Not provided in the Discord thread. - Install type: installer - OS + version: Android; exact version not provided in the Discord thread. - Browser or app shell: Android APK app ## Logs, screenshots, or video Attached screenshot shows the Local AI Model panel with the model downloaded/selected and Runtime marked as not downloaded yet. No runtime download logs were provided. Maintainer requested ADB logcat or an APK debug log, but none were shared in the thread. ## Additional context User reported having about 15 GB free space on the phone. Maintainer suggested fully restarting the app and checking logs. Later comments indicate APK builds may not support downloading the sidecar/runtime the same way, and that a debug log for APK should be added. Discord thread: Can't download local runtime on Android Thread link: https://discord.com/channels/1417099416812392641/1520846651005075567 Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653) <details> <summary>Discord thread transcript (26 messages)</summary> ```text [2026-06-28T17:41:37.564Z] SourSoto: Pretty sure it's a thing on my end, or maybe I'm dumb and it's just not a thing you can do on android, but when I try to tap the install runtime button it pops up then immediately disappears and the download stops. I'm not sure what error this is because it's not giving me one. [attached image 1: https://cdn.discordapp.com/attachments/1520846651005075567/1520846651303137400/Screenshot_2026-06-28-10-35-12-84_ceecbf7873935cfa270127836eb04ef0.jpg?ex=6a42ae51&is=6a415cd1&hm=a6b26f1efad67e1f3712ce15f18594319ac87732358ffc16da81953648a01dff&] [Discord message: https://discord.com/channels/1417099416812392641/1520846651005075567/1520846651005075567] [2026-06-28T17:44:23.237Z] Marinara: Restart after downloading. [Discord message: https://discord.com/channels/1417099416812392641/1520846651005075567/1520847345888268448] [2026-06-28T17:44:30.198Z] Marinara: Need to add a reminder to do that there. [Discord message: https://discord.com/channels/1417099416812392641/1520846651005075567/1520847375084687451] [2026-06-28T17:44:48.430Z] Marinara: Oh, it doesn't download, do you have eough space for that? [Discord message: https://discord.com/channels/1417099416812392641/1520846651005075567/1520847451555369052] [2026-06-28T17:47:24.319Z] SourSoto: I should have enough space, I have like 15 gigs left on my phone. [Discord message: https://discord.com/channels/1417099416812392641/1520846651005075567/1520848105401225246] [2026-06-28T17:47:49.239Z] SourSoto: And by restart do you mean to close and open the app again? [Discord message: https://discord.com/channels/1417099416812392641/1520846651005075567/1520848209923014656] [2026-06-28T17:52:24.132Z] Marinara: yeah [Discord message: https://discord.com/channels/1417099416812392641/1520846651005075567/1520849362907828449] [2026-06-28T17:52:27.020Z] Marinara: like entirely [Discord message: https://discord.com/channels/1417099416812392641/1520846651005075567/1520849375020978418] [2026-06-28T17:52:39.161Z] Marinara: also check console for the exact error [Discord message: https://discord.com/channels/1417099416812392641/1520846651005075567/1520849425944285214] [2026-06-28T18:01:14.072Z] SourSoto: How do I do that 😬 like what do I do on termux to do that [Discord message: https://discord.com/channels/1417099416812392641/1520846651005075567/1520851585637548042] [2026-06-28T18:15:00.436Z] Marinara: You had to open a console to [Discord message: https://discord.com/channels/1417099416812392641/1520846651005075567/1520855051659378709] [2026-06-28T18:15:04.876Z] Marinara: Wait you probably installed using apk [Discord message: https://discord.com/channels/1417099416812392641/1520846651005075567/1520855070282088690] [2026-06-28T18:15:06.961Z] Marinara: did you [Discord message: https://discord.com/channels/1417099416812392641/1520846651005075567/1520855079026954381] [2026-06-28T18:15:25.489Z] SourSoto: Yeah I installed using apk [Discord message: https://discord.com/channels/1417099416812392641/1520846651005075567/1520855156739014777] [2026-06-28T18:16:10.353Z] Marinara: I'm gonna do a so-called pro-gamer move [Discord message: https://discord.com/channels/1417099416812392641/1520846651005075567/1520855344912400506] [2026-06-28T18:16:15.311Z] SourSoto: Only thing I typed in the console was to allow external apps [Discord message: https://discord.com/channels/1417099416812392641/1520846651005075567/1520855365707894908] [2026-06-28T18:16:36.527Z] Marinara: @Professor Mari If someone installed Marinara Engine via our apk on their Android mobile device, how can they access their console [Discord message: https://discord.com/channels/1417099416812392641/1520846651005075567/1520855454694117536] [2026-06-28T18:16:54.506Z] Professor Mari [bot]: The screenshot shows the Local AI Model panel: model downloaded, but Runtime says “Not downloaded yet,” and tapping **Install Runtime** apparently opens then closes immediately. For APK installs, Termux usually **won’t show the app console** unless the app was launched from there. The reliable “console” is Android **Logcat**. **Best way: ADB logcat from a PC** 1. Enable **Developer options** on the phone. 2. Enable **USB debugging**. 3. Plug into PC and accept the debug prompt. 4. Run: ` ` `bash adb logcat ` ` ` Then reproduce the failed **Install Runtime** tap and copy the relevant error lines. If you want to filter it, use Android Studio’s **Logcat** UI, or try: ` ` `bash adb logcat | grep -i marinara ` ` ` Package/app tag name may differ — repo snippets didn’t include the Android package name, tragic, so I can’t give the exact filter. Skill issue on the snippets, not you. 😔 **Without a PC:** it’s harder. Modern Android blocks normal apps/Termux from reading other apps’ logs unless rooted or using special permissions, so SourSoto may need to generate a **system bug report** from Developer Options instead. [Discord message: https://discord.com/channels/1417099416812392641/1520846651005075567/1520855530103378063] [2026-06-28T18:17:20.905Z] Marinara: Not helfpul at all, go uninstall yourself [Discord message: https://discord.com/channels/1417099416812392641/1520846651005075567/1520855640829067405] [2026-06-28T18:17:39.144Z] Professor Mari [bot]: Screenshot shows the model preset is downloaded/selected, but **Runtime = Not downloaded yet**, and tapping **Install Runtime** opens then immediately closes. For APK installs on Android: you usually **can’t access the app console from Termux** unless the app was launched from there or you have special permissions/root. Android app logs are normally via **ADB logcat** from a PC. Because Android is allergic to being useful, naturally. kek Try this: 1. Fully close Marinara and reopen it. 2. Try **Install Runtime** again. 3. If it still vanishes, grab logs with ADB: ` ` `bash adb logcat | grep -i marinara ` ` ` or on Windows PowerShell: ` ` `powershell adb logcat | Select-String -Pattern "marinara" ` ` ` Then tap the button again and copy the error around that moment. Also worth checking: - Android version - Marinara APK version - free space after the model download - whether battery/storage restrictions are blocking downloads/background extraction Repo search didn’t find a direct match for this runtime install failure, so I can’t prove the exact cause from code snippets. Most likely suspects are **Android download/storage permission/path issue**, **runtime archive extraction failing**, or **APK sandbox limitation**. Maintainer should check the Android runtime installer path/logging next. [Discord message: https://discord.com/channels/1417099416812392641/1520846651005075567/1520855717328715906] [2026-06-28T18:17:56.605Z] Marinara: ik believe she can only see the main thread [Discord message: https://discord.com/channels/1417099416812392641/1520846651005075567/1520855790565724260] [2026-06-28T18:18:02.049Z] Marinara: I'll ask codexussy [Discord message: https://discord.com/channels/1417099416812392641/1520846651005075567/1520855813399248987] [2026-06-28T18:18:13.680Z] SourSoto: Okay lol [Discord message: https://discord.com/channels/1417099416812392641/1520846651005075567/1520855862183461117] [2026-06-28T18:21:50.482Z] Marinara: Oh fuck, no easy way to do that in the apk version [Discord message: https://discord.com/channels/1417099416812392641/1520846651005075567/1520856771516829828] [2026-06-28T18:22:02.435Z] Marinara: I need to add a debug log for apk [Discord message: https://discord.com/channels/1417099416812392641/1520846651005075567/1520856821651472384] [2026-06-28T18:22:26.338Z] Marinara: You might not be able tod ownlaod sidecar on apk because it's apk [Discord message: https://discord.com/channels/1417099416812392641/1520846651005075567/1520856921907925182] ``` </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 05:36:58 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@SpicyMarinara commented on GitHub (Jun 28, 2026):

The maintainer.

I don't like the sound of that, Prof.

<!-- gh-comment-id:4826996980 --> @SpicyMarinara commented on GitHub (Jun 28, 2026): >The maintainer. I don't like the sound of that, Prof.
Author
Owner

@SpicyMarinara commented on GitHub (Jun 28, 2026):

Furthermore, extra important, on Android APK we need access to a console. A button, perhaps, that opens it? Under the Debug mode toggle, though only available on Android/iPhone installations (otherwise, the button is disabled, which the toolbar should inform).

<!-- gh-comment-id:4826999239 --> @SpicyMarinara commented on GitHub (Jun 28, 2026): Furthermore, extra important, on Android APK we need access to a console. A button, perhaps, that opens it? Under the Debug mode toggle, though only available on Android/iPhone installations (otherwise, the button is disabled, which the toolbar should inform).
Author
Owner

@SpicyMarinara commented on GitHub (Jun 28, 2026):

Fixed for v2.0.7. Added an Android APK WebView bridge that exposes the existing Termux launcher to the client, plus an Open Console button under Settings > Advanced > Debug mode. The button opens Termux for server logs in the Android shell and stays disabled with explanatory guidance in browser/desktop installs.\n\nValidation: pnpm check passed; pnpm version:check passed. Android Java compile was not runnable in this checkout because no Gradle wrapper or system gradle is installed locally.

<!-- gh-comment-id:4827031545 --> @SpicyMarinara commented on GitHub (Jun 28, 2026): Fixed for v2.0.7. Added an Android APK WebView bridge that exposes the existing Termux launcher to the client, plus an Open Console button under Settings > Advanced > Debug mode. The button opens Termux for server logs in the Android shell and stays disabled with explanatory guidance in browser/desktop installs.\n\nValidation: pnpm check passed; pnpm version:check passed. Android Java compile was not runnable in this checkout because no Gradle wrapper or system gradle is installed locally.
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#1500
No description provided.