LunaPixelStudios / Better-MC

https://lunapixel.studio/discord
https://lunapixel.studio/discord
79 stars 15 forks source link

Crash on start #1628

Closed bryce-carson closed 3 months ago

bryce-carson commented 3 months ago

Describe the Bug

I was able to get the game to start in Curseforge twice, but every other time it crashed. I don't know why. The game crashed at some point when the game was almost done loading, during the Mojang splash screen.

Reproduction Steps

  1. Install the modpack with either Curseforge or ATLauncher
  2. Play the game

Screenshots and Videos

No response

Crash Report or Log

https://paste.atlauncher.com/view/677d8b20-75b5-4aa7-bd0f-802c2a40f5fe

Operating System

Fedora 39

Minecraft Version

1.20

Modloader

Forge

Modpack Version

bmc4 v26

Other Mods

No response

bryce-carson commented 3 months ago

What I had noticed in the logs was that libOpenal was crashing. In ATLauncher I have selected to use the system library instead. However, a core dump due to a crash in the same library occurred: https://paste.atlauncher.com/view/031ad1a5-9d5e-4961-b4f8-f050d3542031.

Frontear commented 3 months ago

Hi, good debugging on your part! You're right, it is indeed an OpenAL issue, though unfortunately ATLauncher seems quite hit or miss with fixing it via that toggle you tried. I'll give you a few steps that you can try to hopefully see if at least one of them works.

  1. In ATLauncher, open up your java arguments screen, and add the following snippet (separate it with a space from the previous flag): -Dorg.lwjgl.openal.libname=/usr/lib/libopenal.so (or wherever libopenal.so is downloaded for your system). Make sure of course that you have the open al static libs installed via your distro's main repos. (you may or may not need to disable that system library toggle in atlauncher for this to work correct).
  2. If the above doesn't work, download PrismLauncher, open settings in the top bar, then minecraft, then tweaks, check the box that says "Use system installation of OpenAL" and type the path to the openal file (either /usr/lib/libopenal.so or elsewhere depending on distro). Once you've done that install the modpack and try launching it like normal.

Let me know if neither of these steps help. Hopefully one of them does but if not we can try alternative things.

bryce-carson commented 3 months ago

The suggested extra Java argument worked with ATLauncher on the first try (once I had the argument input correctly [it appeared that arguments were written on separate lines in the text are box due to soft wrapping; once I replaced line feeds with spaces the command-line syntax was accepted]).