PojavLauncherTeam / PojavLauncher

A Minecraft: Java Edition Launcher for Android and iOS based on Boardwalk. This repository contains source code for Android platform.
GNU Lesser General Public License v3.0
6.63k stars 1.27k forks source link

[BUG] Minecraft crashes when I switch to other apps (Samsung) #5916

Closed clmc99 closed 1 month ago

clmc99 commented 1 month ago

Describe the bug

When I switch to another app, the game closes itself. The log doesn't seem to have any sign of Minecraft crashing. The Pojav app itself stays open. I've tried lowering the allocated RAM to 2 GB with no effect, so I don't think it's an issue of allocating too much RAM

The log file and images/videos

Example a log file: latestlog.txt

Settings modified: Screenshot_20240806_170519_PojavLauncher (Minecraft Java Edition for Android) Screenshot_20240806_170527_PojavLauncher (Minecraft Java Edition for Android)

Steps To Reproduce

1. Install and start the latest version of PojavLauncher from the Play Store (foxglove-20240727-ae48e8e-v3_openjdk)
    1a) Modify settings as shown above*
2. Create installation with latest version of Forge 1.20.1
    2a) Set Java version of installation to internal Java 17*
3. Start the game, wait for the menu screen to appear
4. Switch to another app using the built-in Android app switcher
5. Switch back to Pojav. The Pojav home screen, instead of Minecraft, will be showing

*Not known if necessary to reproduce. Appears to recur regardless of RAM setting

Expected Behavior

I expect to be able to switch to another app and come back to Pojav without Minecraft closing.

Platform

- Device model: Samsung Galaxy Tab S9 FE
- CPU architecture: ARMv8-A
- Instruction sets: arm64-v8a
- Kernel architecture: aarch64
- Android version: 14
- PojavLauncher version: foxglove-20240727-ae48e8e-v3_openjdk

Anything else?

Parsec is still broken please help

GaucovyAero commented 1 month ago

wrong log, send latestlog.txt

clmc99 commented 1 month ago

Edited

NinjaLegendmc commented 1 month ago

Crash cause because of alternate surface rendring try disable alternate surface rendring

GaucovyAero commented 1 month ago

try disabling earlyWindowControl in .minecraft/config/fml.toml and see if that helps

mozyu28282828 commented 1 month ago

Same here. In my case, it's only when the forge is installed. Vanilla and fabric are no problem. Still no luck.

mozyu28282828 commented 1 month ago

try disabling earlyWindowControl in .minecraft/config/fml.toml and see if that helps

This is worked! Thank you!