[GH-ISSUE #5470] [Issue]: Marinara Engine hard-crashes Termux while running in background #3035

Closed
opened 2026-10-21 05:59:01 +07:00 by bsakaguchi · 1 comment
Owner

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

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Marinara Engine intermittently terminates the entire Termux session while running in the background on Android. The server becomes unavailable and Termux opens to a fresh terminal without an error or crash log.

Expected behavior

Marinara Engine should continue running in the background without terminating the Termux session.

Actual behavior

The Marinara Engine server becomes unavailable at an unpredictable time. Opening Termux afterward shows a blank, fresh terminal with no indication that Marinara Engine was previously running and no logged reason for the termination.

Steps to reproduce

  1. Start Marinara Engine in Termux on the affected Android device.
  2. Leave Marinara Engine running in the background and use or leave the phone normally.
  3. Later, check the Marinara Engine web interface and observe that the server is unavailable.
  4. Open Termux and observe a fresh terminal session with no error or crash output.

Environment

  • Marinara Engine version: 2.4.4 (build 2.4.4+5c5a0bc8e7e4, commit 5c5a0bc8e7)
  • Install type: termux
  • OS + version: OnePlus 10 Pro; Android 15 client; Termux server kernel 5.10.209-android12-9-o-g63fb7a145195 (arm64); OTA NE2215_11.H.82_3820_202501070153; build date Mon Jan 6 23:54:54 CST 2025
  • Browser or app shell: Firefox 154.0 on Android 15; Mozilla/5.0 (Android 15; Mobile; rv:154.0) Gecko/154.0 Firefox/154.0

Logs, screenshots, or video

No crash logs are produced. Screenshots: https://cdn.discordapp.com/attachments/1541268745538764950/1541268745748484166/image.png and https://cdn.discordapp.com/attachments/1541268745538764950/1541268837272657970/image.png

Additional context

The reporter removed all Marinara Engine traces, reinstalled Termux and Marinara Engine, and updated the phone to the latest available OS. As a control, while true; do date; sleep 10; done ran in Termux for one hour without a crash. The issue appears specific to running Marinara Engine, has no consistent timing, and may relate to battery optimizations. Previous troubleshooting occurred in Discord threads 1538613675261427863 and 1539838979052933221; the reporter recalls the issue beginning near the end of thread 1534559002787315844. GPU is Adreno (TM) 650 or similar.

Discord thread: ME Installation Still Continues to Hard-Crash Termux
Discord thread link: https://discord.com/channels/1417099416812392641/1541268745538764950
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)

Discord thread transcript (3 messages)
[2026-08-24T02:11:44.325Z] DSBwizzard: Marinara Engine diagnostics
Version: 2.4.4
Build: 2.4.4+5c5a0bc8e7e4
Commit: 5c5a0bc8e7e4
Server OS: Android / Termux 5.10.209-android12-9-o-g63fb7a145195 (arm64)
Client OS: Android 15
Browser / app shell: Mozilla/5.0 (Android 15; Mobile; rv:154.0) Gecko/154.0 Firefox/154.0
GPU: Adreno (TM) 650, or similar

From termux, I ran these commands for more general information:
~ $ getprop ro.build.date
Mon Jan  6 23:54:54 CST 2025
~ $ getprop ro.build.version.ota
NE2215_11.H.82_3820_202501070153

I continue to see Marinara Engine (specifically) crash my termux hard and without logging why when running ME on my phone. I have done some additional investigation to try and verify if my phone or OS are to blame and I do not believe they are at this point. Why others, including Umi who has a One Plus 10 Pro like me (albeit at a higher OS version than mine can receive) do not see this issue is beyond me.

Steps I have taken since observing this issue originally:
- Troubleshooting undertaken within the following bugs:
[1]https://discord.com/channels/1417099416812392641/1538613675261427863
[2]https://discord.com/channels/1417099416812392641/1539838979052933221

Since submitting those bugs and performing the troubleshooting within them, I have:

- Uninstalled all traces of ME from my device, and reinstalled Termux+Marinara Engine
- Updated my phone to the latest OS that is available to me
- Ran `while true; do date; sleep 10; done` for an hour on my termux and left phone alone as normal, did not see termux crash or misbehave at all like I see when running ME

ME appears to crash and kill my Termux without logging why, when my ME is running in the background. I have not seen any rhyme or reason why or when it happens, I just start my ME instance, go about my day, check my web browser and see my ME instance is unavailable, open termux on my phone, and see a blank, fresh Terminal waiting for me without any hint it was just running ME previously.

[attached image 1: https://cdn.discordapp.com/attachments/1541268745538764950/1541268745748484166/image.png?ex=6a8cf9e0&is=6a8ba860&hm=35b2da8c1ddee037be67a130e9ffaadb533239168c87538d18ff52dbdd0e7758&]
[Discord message: https://discord.com/channels/1417099416812392641/1541268745538764950/1541268745538764950]

[2026-08-24T02:11:45.155Z] 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/1541268745538764950/1541268749020045342]

[2026-08-24T02:12:06.342Z] DSBwizzard: I'm disappointed this keeps happening and hesitate to post this issue again, because nobody else reports this, but I still have a hunch it has something to do with the optimizations to battery or something along those lines as i recall the issue began to occur roughly near the end of this bug's life: https://discord.com/channels/1417099416812392641/1534559002787315844

Thank you. I appreciate the time. Unfortunately I am no longer able to continue using ME on my phone, and do not see other avenues to pursue myself other than hosting ME elsewhere than my Termux which I would prefer not to do, for my own preference and so I can continue to provide bugtesting and issue reproduction for other users who also host ME on termux.

[attached image 1: https://cdn.discordapp.com/attachments/1541268745538764950/1541268837272657970/image.png?ex=6a8cf9f6&is=6a8ba876&hm=210b647f871a29029c090e4d9bed1251e381b3d9e17a12516de3b1d717c9af50&]
[Discord message: https://discord.com/channels/1417099416812392641/1541268745538764950/1541268837884887161]

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 (Aug 24, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5470 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Marinara Engine intermittently terminates the entire Termux session while running in the background on Android. The server becomes unavailable and Termux opens to a fresh terminal without an error or crash log. ## Expected behavior Marinara Engine should continue running in the background without terminating the Termux session. ## Actual behavior The Marinara Engine server becomes unavailable at an unpredictable time. Opening Termux afterward shows a blank, fresh terminal with no indication that Marinara Engine was previously running and no logged reason for the termination. ## Steps to reproduce 1. Start Marinara Engine in Termux on the affected Android device. 2. Leave Marinara Engine running in the background and use or leave the phone normally. 3. Later, check the Marinara Engine web interface and observe that the server is unavailable. 4. Open Termux and observe a fresh terminal session with no error or crash output. ## Environment - Marinara Engine version: 2.4.4 (build 2.4.4+5c5a0bc8e7e4, commit 5c5a0bc8e7e4) - Install type: termux - OS + version: OnePlus 10 Pro; Android 15 client; Termux server kernel 5.10.209-android12-9-o-g63fb7a145195 (arm64); OTA NE2215_11.H.82_3820_202501070153; build date Mon Jan 6 23:54:54 CST 2025 - Browser or app shell: Firefox 154.0 on Android 15; Mozilla/5.0 (Android 15; Mobile; rv:154.0) Gecko/154.0 Firefox/154.0 ## Logs, screenshots, or video No crash logs are produced. Screenshots: https://cdn.discordapp.com/attachments/1541268745538764950/1541268745748484166/image.png and https://cdn.discordapp.com/attachments/1541268745538764950/1541268837272657970/image.png ## Additional context The reporter removed all Marinara Engine traces, reinstalled Termux and Marinara Engine, and updated the phone to the latest available OS. As a control, `while true; do date; sleep 10; done` ran in Termux for one hour without a crash. The issue appears specific to running Marinara Engine, has no consistent timing, and may relate to battery optimizations. Previous troubleshooting occurred in Discord threads 1538613675261427863 and 1539838979052933221; the reporter recalls the issue beginning near the end of thread 1534559002787315844. GPU is Adreno (TM) 650 or similar. Discord thread: ME Installation Still Continues to Hard-Crash Termux Discord thread link: https://discord.com/channels/1417099416812392641/1541268745538764950 Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653) <details> <summary>Discord thread transcript (3 messages)</summary> ```text [2026-08-24T02:11:44.325Z] DSBwizzard: Marinara Engine diagnostics Version: 2.4.4 Build: 2.4.4+5c5a0bc8e7e4 Commit: 5c5a0bc8e7e4 Server OS: Android / Termux 5.10.209-android12-9-o-g63fb7a145195 (arm64) Client OS: Android 15 Browser / app shell: Mozilla/5.0 (Android 15; Mobile; rv:154.0) Gecko/154.0 Firefox/154.0 GPU: Adreno (TM) 650, or similar From termux, I ran these commands for more general information: ~ $ getprop ro.build.date Mon Jan 6 23:54:54 CST 2025 ~ $ getprop ro.build.version.ota NE2215_11.H.82_3820_202501070153 I continue to see Marinara Engine (specifically) crash my termux hard and without logging why when running ME on my phone. I have done some additional investigation to try and verify if my phone or OS are to blame and I do not believe they are at this point. Why others, including Umi who has a One Plus 10 Pro like me (albeit at a higher OS version than mine can receive) do not see this issue is beyond me. Steps I have taken since observing this issue originally: - Troubleshooting undertaken within the following bugs: [1]https://discord.com/channels/1417099416812392641/1538613675261427863 [2]https://discord.com/channels/1417099416812392641/1539838979052933221 Since submitting those bugs and performing the troubleshooting within them, I have: - Uninstalled all traces of ME from my device, and reinstalled Termux+Marinara Engine - Updated my phone to the latest OS that is available to me - Ran `while true; do date; sleep 10; done` for an hour on my termux and left phone alone as normal, did not see termux crash or misbehave at all like I see when running ME ME appears to crash and kill my Termux without logging why, when my ME is running in the background. I have not seen any rhyme or reason why or when it happens, I just start my ME instance, go about my day, check my web browser and see my ME instance is unavailable, open termux on my phone, and see a blank, fresh Terminal waiting for me without any hint it was just running ME previously. [attached image 1: https://cdn.discordapp.com/attachments/1541268745538764950/1541268745748484166/image.png?ex=6a8cf9e0&is=6a8ba860&hm=35b2da8c1ddee037be67a130e9ffaadb533239168c87538d18ff52dbdd0e7758&] [Discord message: https://discord.com/channels/1417099416812392641/1541268745538764950/1541268745538764950] [2026-08-24T02:11:45.155Z] 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/1541268745538764950/1541268749020045342] [2026-08-24T02:12:06.342Z] DSBwizzard: I'm disappointed this keeps happening and hesitate to post this issue again, because nobody else reports this, but I still have a hunch it has something to do with the optimizations to battery or something along those lines as i recall the issue began to occur roughly near the end of this bug's life: https://discord.com/channels/1417099416812392641/1534559002787315844 Thank you. I appreciate the time. Unfortunately I am no longer able to continue using ME on my phone, and do not see other avenues to pursue myself other than hosting ME elsewhere than my Termux which I would prefer not to do, for my own preference and so I can continue to provide bugtesting and issue reproduction for other users who also host ME on termux. [attached image 1: https://cdn.discordapp.com/attachments/1541268745538764950/1541268837272657970/image.png?ex=6a8cf9f6&is=6a8ba876&hm=210b647f871a29029c090e4d9bed1251e381b3d9e17a12516de3b1d717c9af50&] [Discord message: https://discord.com/channels/1417099416812392641/1541268745538764950/1541268837884887161] ``` </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:59:01 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Aug 24, 2026):

SpicyMarinara is addressing this in draft PR #5471. The implementation is intentionally scoped to the smallest root fix; validation and CodeRabbit review will complete before it lands on staging.

<!-- gh-comment-id:5391247247 --> @SpicyMarinara commented on GitHub (Aug 24, 2026): SpicyMarinara is addressing this in draft PR #5471. The implementation is intentionally scoped to the smallest root fix; validation and CodeRabbit review will complete before it lands on staging.
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#3035
No description provided.