PojavLauncherTeam / PojavLauncher

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

(forge 1.20+) game closes when minimized #4783

Open YeahhColix opened 10 months ago

YeahhColix commented 10 months ago

Describe the bug

Forge 1.20.1 closes when minimized (the back button) it only happens in forge 1.20+

The log file and images/videos

https://github.com/PojavLauncherTeam/PojavLauncher/assets/148950843/583be0c3-d2f1-42a4-8ac9-d6582c17c8db

latestlog.txt

Steps To Reproduce

1. Start PojavLauncher
2. Start Minecraft Forge 1.20+
3. Press the back button on your device

Expected Behavior

I expect the game to just be minimized

Platform

- Device model: Vivo Y33S
- CPU architecture: i dont know
- Android version: 11
- PojavLauncher version: Latest Release (on the google play store)

Anything else?

No response

GaucovyAero commented 10 months ago

you havent sent the logs (send latestlog.txt)

YeahhColix commented 10 months ago

you havent sent the logs (send latestlog.txt)

done

GaucovyAero commented 10 months ago

well thats a funny issue, is that just forge with just optifine?

YeahhColix commented 10 months ago

well thats a funny issue, is that just forge with just optifine?

mhm

GaucovyAero commented 10 months ago

yeah it seems like forge is calling some sort of special snowflake opengl function that gl4es doesnt have when alt tabbing

YeahhColix commented 10 months ago

yeah it seems like forge is calling some sort of special snowflake opengl function that gl4es doesnt have when alt tabbing

got it, so do i just use a different renderer?

GaucovyAero commented 10 months ago

yeah it seems like forge is calling some sort of special snowflake opengl function that gl4es doesnt have when alt tabbing

got it, so do i just use a different renderer?

pretty sure the other ones straight up dont support going out of the window but you can try

GaucovyAero commented 10 months ago

latestlog-1.txt

https://github.com/PojavLauncherTeam/PojavLauncher/assets/85581164/65d3398d-642a-4ebc-b3b7-5b5aab533d6c

tombstone_34.txt

successfully reproduced, here are my logs and video

Mathias-Boulay commented 10 months ago
Field Value
Build type DEBUG
Pojav version edelweiss - 20231104 - feat/activity_destruction_handling
Minecraft version 1.20.1-forge-47.2.0 - FORGE
Renderer GL4ES_115
Architecture ARM_64
Java runtime INTERNAL - JRE - 17
Java arguments
Errors Found:
branch.not.mainline
GaucovyAero commented 10 months ago

nevermind, sorry, you can workaround this,

just change earlyWindowControl to false in .minecraft/config/fml.toml

Mathias-Boulay commented 10 months ago

I'll take a look to see if I can fix this without needing a workaround

YeahhColix commented 10 months ago

nevermind, sorry, you can workaround this,

just change earlyWindowControl to false in .minecraft/config/fml.toml

how do i edit the toml file?

kedrick021 commented 10 months ago

How to fix this crash on minimize?

GaucovyAero commented 10 months ago

nevermind, sorry, you can workaround this, just change earlyWindowControl to false in .minecraft/config/fml.toml

how do i edit the toml file?

dunno if Acode editor works but i use mixplorer's text editor and it works fine (free download from mixplorer.com)

GaucovyAero commented 10 months ago

nevermind, sorry, you can workaround this,

just change earlyWindowControl to false in .minecraft/config/fml.toml

@kedrick021

kedrick021 commented 10 months ago

nevermind, sorry, you can workaround this, just change earlyWindowControl to false in .minecraft/config/fml.toml

@kedrick021

It's working thank you

By the way do you know how to make costume control?

GaucovyAero commented 10 months ago

nevermind, sorry, you can workaround this, just change earlyWindowControl to false in .minecraft/config/fml.toml

@kedrick021

It's working thank you

By the way do you know how to make costume control?

yes

kedrick021 commented 10 months ago

nevermind, sorry, you can workaround this, just change earlyWindowControl to false in .minecraft/config/fml.toml

@kedrick021

It's working thank you By the way do you know how to make costume control?

yes

Like mcpe icon?

GaucovyAero commented 10 months ago

nevermind, sorry, you can workaround this, just change earlyWindowControl to false in .minecraft/config/fml.toml

@kedrick021

It's working thank you By the way do you know how to make costume control?

yes

Like mcpe icon?

no