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.82k stars 1.28k forks source link

[BUG] Current version of zink in Pojav crashing on Pixel 8a #6051

Open SolDev69 opened 2 months ago

SolDev69 commented 2 months ago

Describe the bug

The current version of zink crashes on my Pixel 8a

The log file and images/videos

1.21 latestlog.txt 1.12.2 latestlog.txt

Steps To Reproduce

1. Try running zink on Pixel 8a
2. Crash

Expected Behavior

Zink doesn't crash.

Platform

- Device model: Pixel 8a
- CPU architecture: arm64
- Android version: 14
- PojavLauncher version: foxglove-20240905-8c90b54-v3_openjdk (Google Play version)

Anything else?

This is the only mesa version in SCL that doesn't load zink for me.

GPU: Mali G715 Driver: ARM Proprietary 47.0.0

kasrarouhi commented 2 months ago

I research about pixel 8a and the gpu and it's really good phone with good gpu in my opinion report this issue to mesa (mesa 3d creator) to fix it and release a turnip driver update for zink (I don't think it's pojav issue)and my phone have the same problem 9 or 8 months ago. It's just crash with zink and after a turnip driver update for pojav it's really fixed. My phone gpu is adreno 725

SolDev69 commented 2 months ago

Mali doesn't use turnip though...

SolDev69 commented 2 months ago

Why did I close this...

Mario191209 commented 2 months ago

@SolDev69 update your phone to the latest version

Mario191209 commented 2 months ago

Afaik, your current version has old vulkan driver

Mario191209 commented 2 months ago

I mean android

Mario191209 commented 2 months ago

Since google shipped vulkan update for pixel phones, maybe.

SolDev69 commented 2 months ago

Phone is on the latest update.

Mario191209 commented 2 months ago

@SolDev69 show me the vkcapsviewer

Mario191209 commented 2 months ago

Afaik, immortalis gpu will crash with zink for some reason

Mario191209 commented 2 months ago

I've seen a lot of users with immortalis gpu having this issue

SolDev69 commented 2 months ago

Screenshot_20240910-105218.png

It's not fried, it's an issue with zink afaik. UMP Zink works fine but is slow and Zink 23.0.4 is unstable. All three crash with shaders because of an out of memory bug.

Mario191209 commented 2 months ago

@SolDev69 i wonder if you phone support Android 15 beta update

Mario191209 commented 2 months ago

Your*

SolDev69 commented 2 months ago

It does, but idk if it's stable, should I update?

Mario191209 commented 2 months ago

It does, but idk if it's stable, should I update?

Maybe you should

Mario191209 commented 2 months ago

Afaik, i bet it'll block the Android/data access after you update

Mario191209 commented 2 months ago

Damn, i shouldn't have to say afaik

Mario191209 commented 2 months ago

Screenshot_20240910-105218.png

It's not fried, it's an issue with zink afaik. UMP Zink works fine but is slow and Zink 23.0.4 is unstable. All three crash with shaders because of an out of memory bug.

In that case, i will fork your launcher and replace zink mesa 23.0.4 with 23.0.0-devel

Mario191209 commented 2 months ago

Also, i've got old virgl from dahlia version

Mario191209 commented 2 months ago

But idk how to add renderer in renderer selection

Mario191209 commented 2 months ago

Or im just gonna replace the lib

GaucovyAero commented 2 months ago

@SolDev69 please change the issue title to what you wrote in "describe the bug", i'm marking the issue as invalid till you fix it

kasrarouhi commented 2 months ago

Screenshot_20240910-105218.png

It's not fried, it's an issue with zink afaik. UMP Zink works fine but is slow and Zink 23.0.4 is unstable. All three crash with shaders because of an out of memory bug.

VULKAN 1.3 IT'S REALLY GOOD. try vulkanmod. Vulkanmod work on vulkan API 1.2 and up try it it's similar to sodium Link to download vulkanmod (android library) https://www.curseforge.com/minecraft/mc-mods/vulkanmod-android-libs

kasrarouhi commented 2 months ago

Afaik, i bet it'll block the Android/data access after you update

It related to android 11 See https://xdaforums.com/t/android-11-cannot-access-android-data-folder.4225293/

ThatMG393 commented 1 month ago

Screenshot_20240910-105218.png It's not fried, it's an issue with zink afaik. UMP Zink works fine but is slow and Zink 23.0.4 is unstable. All three crash with shaders because of an out of memory bug.

VULKAN 1.3 IT'S REALLY GOOD. try vulkanmod. Vulkanmod work on vulkan API 1.2 and up try it it's similar to sodium Link to download vulkanmod (android library) https://www.curseforge.com/minecraft/mc-mods/vulkanmod-android-libs

VulkanMod is NOT similar to Sodium 😭🙏🏿

kasrarouhi commented 1 month ago

Screenshot_20240910-105218.png It's not fried, it's an issue with zink afaik. UMP Zink works fine but is slow and Zink 23.0.4 is unstable. All three crash with shaders because of an out of memory bug.

VULKAN 1.3 IT'S REALLY GOOD. try vulkanmod. Vulkanmod work on vulkan API 1.2 and up try it it's similar to sodium Link to download vulkanmod (android library) https://www.curseforge.com/minecraft/mc-mods/vulkanmod-android-libs

VulkanMod is NOT similar to Sodium 😭🙏🏿

I mean about fps boosting

SolDev69 commented 3 weeks ago

what would be the best way to fix this? is upstream ready for an update to mesa 24.0.9? I wouldn't recommend upgrading to 24.2+ because it has funky issues with distant horizons and may break shaders. would downgrading osmesa to 23.0.4 be a better idea? update turnip to 24.0.9 and downgrade osmesa to 23.0.4 or upgrade both?

SolDev69 commented 3 weeks ago

Here's an update to this issue on Android 15, yes it's the tw version but it's basically the same as upstream in terms of zink latestlog.txt Screenshot_20241016-113327