PojavLauncher_iOS icon indicating copy to clipboard operation
PojavLauncher_iOS copied to clipboard

[Bug] Crashes upon startup

Open bbzze opened this issue 8 months ago • 21 comments

Describe the bug

When launching the game, the game immediately crashes.

The log file and images/videos

[Pre-Init] PojavLauncher INIT! [Pre-Init] Version: 3.0-development [Pre-Init] Commit: 68ee5d0 (main) [Pre-Init] Device: iPad Pro 11-inch (M4) [Pre-Init] iPadOS 18.4 (22E240) (Unjailbroken) [Pre-init] Entitlements availability:

  • com.apple.developer.kernel.extended-virtual-addressing: NO
  • com.apple.developer.kernel.increased-memory-limit: NO
  • com.apple.private.security.no-sandbox: NO [Debugging] Debug log enabled: YES [Pre-init] Restored game directory preference (default) [VersionList] Got 810 versions [MCDL] SHA1 passed for 1.21.5.json [MCDL] Warning: JNA version required by 1.21.5 is 5.15.0 > 5.13.0, skipping JNA replacement. [MDCL] Skipped library org.lwjgl:lwjgl-freetype:3.3.3 [MDCL] Skipped library org.lwjgl:lwjgl-freetype:3.3.3:natives-linux [MDCL] Skipped library org.lwjgl:lwjgl-freetype:3.3.3:natives-macos-arm64 [MDCL] Skipped library org.lwjgl:lwjgl-freetype:3.3.3:natives-macos-patch [MDCL] Skipped library org.lwjgl:lwjgl-freetype:3.3.3:natives-windows [MDCL] Skipped library org.lwjgl:lwjgl-freetype:3.3.3:natives-windows-arm64 [MDCL] Skipped library org.lwjgl:lwjgl-freetype:3.3.3:natives-windows-x86 [MDCL] Skipped library org.lwjgl:lwjgl-glfw:3.3.3 [MDCL] Skipped library org.lwjgl:lwjgl-glfw:3.3.3:natives-linux [MDCL] Skipped library org.lwjgl:lwjgl-glfw:3.3.3:natives-macos [MDCL] Skipped library org.lwjgl:lwjgl-glfw:3.3.3:natives-macos-arm64 [MDCL] Skipped library org.lwjgl:lwjgl-glfw:3.3.3:natives-windows [MDCL] Skipped library org.lwjgl:lwjgl-glfw:3.3.3:natives-windows-arm64 [MDCL] Skipped library org.lwjgl:lwjgl-glfw:3.3.3:natives-windows-x86 [MDCL] Skipped library org.lwjgl:lwjgl-jemalloc:3.3.3 [MDCL] Skipped library org.lwjgl:lwjgl-jemalloc:3.3.3:natives-linux [MDCL] Skipped library org.lwjgl:lwjgl-jemalloc:3.3.3:natives-macos [MDCL] Skipped library org.lwjgl:lwjgl-jemalloc:3.3.3:natives-macos-arm64 [MDCL] Skipped library org.lwjgl:lwjgl-jemalloc:3.3.3:natives-windows [MDCL] Skipped library org.lwjgl:lwjgl-jemalloc:3.3.3:natives-windows-arm64 [MDCL] Skipped library org.lwjgl:lwjgl-jemalloc:3.3.3:natives-windows-x86 [MDCL] Skipped library org.lwjgl:lwjgl-openal:3.3.3 [MDCL] Skipped library org.lwjgl:lwjgl-openal:3.3.3:natives-linux [MDCL] Skipped library org.lwjgl:lwjgl-openal:3.3.3:natives-macos [MDCL] Skipped library org.lwjgl:lwjgl-openal:3.3.3:natives-macos-arm64 [MDCL] Skipped library org.lwjgl:lwjgl-openal:3.3.3:natives-windows [MDCL] Skipped library org.lwjgl:lwjgl-openal:3.3.3:natives-windows-arm64 [MDCL] Skipped library org.lwjgl:lwjgl-openal:3.3.3:natives-windows-x86 [MDCL] Skipped library org.lwjgl:lwjgl-opengl:3.3.3 [MDCL] Skipped library org.lwjgl:lwjgl-opengl:3.3.3:natives-linux [MDCL] Skipped library org.lwjgl:lwjgl-opengl:3.3.3:natives-macos [MDCL] Skipped library org.lwjgl:lwjgl-opengl:3.3.3:natives-macos-arm64 [MDCL] Skipped library org.lwjgl:lwjgl-opengl:3.3.3:natives-windows [MDCL] Skipped library org.lwjgl:lwjgl-opengl:3.3.3:natives-windows-arm64 [MDCL] Skipped library org.lwjgl:lwjgl-opengl:3.3.3:natives-windows-x86 [MDCL] Skipped library org.lwjgl:lwjgl-stb:3.3.3 [MDCL] Skipped library org.lwjgl:lwjgl-stb:3.3.3:natives-linux [MDCL] Skipped library org.lwjgl:lwjgl-stb:3.3.3:natives-macos [MDCL] Skipped library org.lwjgl:lwjgl-stb:3.3.3:natives-macos-arm64 [MDCL] Skipped library org.lwjgl:lwjgl-stb:3.3.3:natives-windows [MDCL] Skipped library org.lwjgl:lwjgl-stb:3.3.3:natives-windows-arm64 [MDCL] Skipped library org.lwjgl:lwjgl-stb:3.3.3:natives-windows-x86 [MDCL] Skipped library org.lwjgl:lwjgl-tinyfd:3.3.3 [MDCL] Skipped library org.lwjgl:lwjgl-tinyfd:3.3.3:natives-linux [MDCL] Skipped library org.lwjgl:lwjgl-tinyfd:3.3.3:natives-macos [MDCL] Skipped library org.lwjgl:lwjgl-tinyfd:3.3.3:natives-macos-arm64 [MDCL] Skipped library org.lwjgl:lwjgl-tinyfd:3.3.3:natives-windows [MDCL] Skipped library org.lwjgl:lwjgl-tinyfd:3.3.3:natives-windows-arm64 [MDCL] Skipped library org.lwjgl:lwjgl-tinyfd:3.3.3:natives-windows-x86 [MDCL] Skipped library org.lwjgl:lwjgl:3.3.3 [MDCL] Skipped library org.lwjgl:lwjgl:3.3.3:natives-linux [MDCL] Skipped library org.lwjgl:lwjgl:3.3.3:natives-macos [MDCL] Skipped library org.lwjgl:lwjgl:3.3.3:natives-macos-arm64 [MDCL] Skipped library org.lwjgl:lwjgl:3.3.3:natives-windows [MDCL] Skipped library org.lwjgl:lwjgl:3.3.3:natives-windows-arm64 [MDCL] Skipped library org.lwjgl:lwjgl:3.3.3:natives-windows-x86 [MCDL] Downloading 1.21.5.jar [JavaLauncher] Beginning JVM launch [DyldLVBypass] init [DyldLVBypass] hook mmap succeed! [DyldLVBypass] hook fcntl succeed! [DyldLVBypass] found dyld_mmap at 0x1b477757c [DyldLVBypass] hook dyld_mmap succeed! [DyldLVBypass] found dyld_fcntl at 0x1b477bd3c [DyldLVBypass] hook dyld_fcntl succeed! [JavaLauncher] Reading custom environment variables [JavaLauncher] Warning: skipped empty value custom env variable: [JavaLauncher] RENDERER is set to auto [JavaLauncher] Looking for Java 21 or later [JavaLauncher] JAVA_HOME has been set to /private/var/containers/Bundle/Application/D21B11A1-C866-4FA1-BD88-EBE65A220E16/App.app/java_runtimes/java-21-openjdk [JavaLauncher] Max RAM allocation is set to 1866 MB [JavaLauncher] Reading custom JVM flags [Init] Found JLI lib [Init] Calling JLI_Launch Error occurred during initialization of VM Could not reserve enough space for 1916928KB object heap

Steps To Reproduce

1. Start the game

Expected Behavior

The game should launch normally.

Platform

- Device model: iPad Pro (M4)
- iOS version: 18.4
- PojavLauncher version: 3.0-development (main/68ee5d0)

Anything else?

The game only runs once upon fresh install. I’m not sure if restarting the device causes the issue or if it really just works only once.

bbzze avatar Apr 07 '25 03:04 bbzze

I swear if someone says “you dont gave enough ram!!”

I am on an M4 iPad.

bbzze avatar Apr 07 '25 03:04 bbzze

bbzze avatar Apr 07 '25 03:04 bbzze

Same here... on iPhone 16 pro max

LifeDreamer24 avatar Apr 11 '25 15:04 LifeDreamer24

I swear if someone says “you dont gave enough ram!!”

I am on an M4 iPad.

heyo, sorry for being late.

but no, its actually in reverse, you gave it too much ram. i suggest using the auto option instead!

kiokori-git avatar Apr 12 '25 03:04 kiokori-git

Thanks for the reply, but unfortunately, it was set to auto.

bbzze avatar Apr 12 '25 03:04 bbzze

Thanks for the reply, but unfortunately, it was set to auto.

hmm, try lowering the allocation to 1.8 GB (you can try keep lowering it by a 100 MB until the game boots)

kiokori-git avatar Apr 12 '25 03:04 kiokori-git

I noticed this issue on my iPhone 16 Pro Max the other day, good to know I'm not the only one seeing it. I'll be looking into it when I have the time.

crystall1nedev avatar Apr 12 '25 04:04 crystall1nedev

Has this been fixed yet? I can't launch the game anymore... Anyone got a workaround?

LifeDreamer24 avatar Apr 16 '25 19:04 LifeDreamer24

install the latest build or use an older one, thats how I went around this thing

bbzze avatar Apr 20 '25 23:04 bbzze

Nevermind, its more like never restart your device when installing the app or something… It started happening again when I restarted my device.

bbzze avatar Apr 21 '25 12:04 bbzze

Any project devs can confirm this is happening on the latest iOS versions and that it's planned to be or being worked on?

LifeDreamer24 avatar Apr 26 '25 18:04 LifeDreamer24

Another update, this time it started doing the bug without me restarting my device. I genuinely think that there’s no escape from this bug.

bbzze avatar May 04 '25 23:05 bbzze

Another update, this time it started doing the bug without me restarting my device. I genuinely think that there’s no escape from this bug.

I got some good news! Mine started working after I set the allocation to around 700-760MB in the settings. I also used this fork but it worked on the original one too:

https://github.com/congcq/PojavLauncher-iOS-Patch/actions/runs/14497133732

LifeDreamer24 avatar May 07 '25 18:05 LifeDreamer24

I can confirm it launches when setting under 1GB of ram, but I always get an out of memory error at that point. 😔

bbzze avatar May 07 '25 23:05 bbzze

For some reason my game started working flawlessly, even with auto ram enabled. I have no clue what fixed it but all I know is that I added some args that ChatGPT gave me. Even after removing them it ran fine every time 🤔

I will let the args here just in case:

-Xmx700M -Dfml.ignoreInvalidMinecraftCertificates=true -Dfml.ignorePatchDiscrepancies=true

I honestly wish I could help more... I can send my current config if needed?

LifeDreamer24 avatar May 08 '25 00:05 LifeDreamer24

For some reason my game started working flawlessly, even with auto ram enabled. I have no clue what fixed it but all I know is that I added some args that ChatGPT gave me. Even after removing them it ran fine every time 🤔

I will let the args here just in case:

-Xmx700M -Dfml.ignoreInvalidMinecraftCertificates=true -Dfml.ignorePatchDiscrepancies=true

I honestly wish I could help more... I can send my current config if needed?

Using chatgpt for minecraft java arguments 💀

VenomousSteam81 avatar May 08 '25 03:05 VenomousSteam81

For some reason my game started working flawlessly, even with auto ram enabled. I have no clue what fixed it but all I know is that I added some args that ChatGPT gave me. Even after removing them it ran fine every time 🤔

I will let the args here just in case:

-Xmx700M -Dfml.ignoreInvalidMinecraftCertificates=true -Dfml.ignorePatchDiscrepancies=true

I honestly wish I could help more... I can send my current config if needed?

It works because it sets your ram to a maximum of 700Mb. It works, yes, but I need the ram… 😔 About removing it and everything working, I hope it works for me…

bbzze avatar May 08 '25 04:05 bbzze

Using chatgpt for minecraft java arguments 💀

It solved my problem because java isn't my domain very much. I also didn't exactly ask chatgpt for args but for any possible solution. If you got anything helpful to share you can do so, but otherwise there is no need to judge other people's attempts to help :)

LifeDreamer24 avatar May 08 '25 04:05 LifeDreamer24

It works because it sets your ram to a maximum of 700Mb. It works, yes, but I need the ram… 😔 About removing it and everything working, I hope it works for me…

Hope the best 🤞 Keep me updated

LifeDreamer24 avatar May 08 '25 04:05 LifeDreamer24

It works because it sets your ram to a maximum of 700Mb. It works, yes, but I need the ram… 😔 About removing it and everything working, I hope it works for me…

Hope the best 🤞 Keep me updated

It only worked once… 🙁

bbzze avatar May 08 '25 05:05 bbzze

Same! On the same device and version, and I don’t know what to do! I am using the launcher within live container though, don’t know if that makes a difference, but when I launch it with under 700mb of ram, instead of crashing, it loads but shows a black screen, and there are no errors in the logs.

dark-Phoenix2077 avatar May 13 '25 17:05 dark-Phoenix2077