PojavLauncherTeam / PojavLauncher_iOS

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

- #34

Closed cuj closed 3 years ago

cuj commented 3 years ago
khanhduytran0 commented 3 years ago

Can you check if file /var/mobile/Documents/minecraft/latestlog.txt exists and send it?

khanhduytran0 commented 3 years ago
khanhduytran0 commented 3 years ago

Is this really the "latest build" you installed? https://github.com/PojavLauncherTeam/PojavLauncher_iOS/actions/runs/551286872

khanhduytran0 commented 3 years ago

Also, you respring instead of run uicache, that's might not good.

SuperKael commented 3 years ago

I also have this exact same problem, with the same latestlog and everything.

I am using iPhone 6s Plus, iOS 14.3, Checkra1n jailbreak.

khanhduytran0 commented 3 years ago

Check if minecraft/versions/1.16.5/1.16.5.json exists?

SuperKael commented 3 years ago

There is no versions folder.

SuperKael commented 3 years ago

I just realized, this latestlog file is not actually due to the app crashing. That log file was produced when I tried running the script in PojavLauncher.app, before realizing I needed to run UICache to make the app appear.

SuperKael commented 3 years ago

With regards to the actual crash, CrashReporter produces this: https://pastebin.com/EZGgYcnu

khanhduytran0 commented 3 years ago

You can't run ios app from command line directly Try https://github.com/PojavLauncherTeam/PojavLauncher_iOS/actions/runs/565855529

SuperKael commented 3 years ago

That build did not fix it. Still crashes immediately when trying to open it, before it even writes to latestlog.txt

khanhduytran0 commented 3 years ago

Stills run the app from command line?

SuperKael commented 3 years ago

No. It crashes immediately when I try to run it from the Home Screen. I do see the new message when running it from command line, which is nice, but the real issue is the fact that it fails to run from the Home Screen.

khanhduytran0 commented 3 years ago

Maybe try

uicache -u /Application/PojavLauncher.app
uicache -p /Application/PojavLauncher.app

Then try launch again

SuperKael commented 3 years ago

The commands wouldn’t run with /Application/PojavLauncher.app. After changing it to /Applications/PojavLauncher.app, the commands ran, but it still crashes immediately.

khanhduytran0 commented 3 years ago

Does java itself even run? Try exec /usr/lib/jvm/java-16-openjdk/bin/java

SuperKael commented 3 years ago

Running that command caused my terminal to reset, and nothing else. However, navigating to that location and executing Java using Filza caused it to print out help information.

khanhduytran0 commented 3 years ago

Does /var/mobile/Documents/minecraft exists? Also what's inside if exists?

SuperKael commented 3 years ago

That folder appeared from my previous running it from the terminal. However, if I delete the folder and try to run the app from the Home Screen, the folder does not reappear.

khanhduytran0 commented 3 years ago

It was the source of crash! The Debian package pre-create it, but you deleted.

SuperKael commented 3 years ago

Huh? No, I only deleted it a couple minutes ago to see if it would reappear...

SuperKael commented 3 years ago

There, I just removed the folder from trash and put it back. Still doesn’t work.

khanhduytran0 commented 3 years ago

Anything inside latestlog.txt or never reached to it?

SuperKael commented 3 years ago

Never reached it.

khanhduytran0 commented 3 years ago

Try a clean install.

khanhduytran0 commented 3 years ago

So, possibility the minecraft folder was no longer accessible by PojavLauncher, crashes at fileno(“latestlog.txt”).

nergzd723 commented 3 years ago

This is not iOS 13.5.1 specific, works fine on iPad Air 2 iOS 13.5.1.

SuperKael commented 3 years ago

After performing a complete uninstall and reinstall of openjdk and PojavLauncher, it actually works now! To be specific, I removed the two packages, deleted the “minecraft” and “.pojavlauncher” folders in Documents, then reinstalled them both. In particular, after installing PojavLauncher again, I performed uicache and then resprung in that order. Oh, and btw, I’m on iOS 14.3, so seemingly unrelated to iOS version.

khanhduytran0 commented 3 years ago

So what about crash of @cuj ?

khanhduytran0 commented 3 years ago

Send latestlog.txt

khanhduytran0 commented 3 years ago

Also try https://github.com/PojavLauncherTeam/PojavLauncher_iOS/actions/runs/567549911

khanhduytran0 commented 3 years ago

@cuj so?