SmashingMods / Glacial-Awakening

2 stars 4 forks source link

Client crashes during startup - Extra Anvils #172

Open Chezzik opened 3 years ago

Chezzik commented 3 years ago

I'm using MultiMC on Linux with Java 8. I tried uninstalling the whole pack and reinstalling with no extra mods, and it still crashes when I first start it up. Here's the relevant part of the crash log:


[23:25:47] [Client thread/INFO] [STDOUT]: [net.minecraft.init.Bootstrap:func_179870_a:553]: ---- Minecraft Crash Report ----

WARNING: coremods are present:
  Inventory Tweaks Coremod (InventoryTweaks-1.64+dev.151.jar)
  CorePlugin (SmoothFont-mc1.12.2-2.1.2.jar)
  AppleCore (AppleCore-mc1.12.2-3.2.0.jar)
  ForgelinPlugin (Forgelin-1.8.4.jar)
  AALoadingPlugin (arcanearchives-0.2.0.20-mixins7.11.jar)
  MekanismCoremod (Mekanism-1.12.2-9.8.3.390.jar)
  AstralCore (astralsorcery-1.12.2-1.10.23.jar)
  Quark Plugin (Quark-r1.6-179.jar)
  LoadingPlugin (LoadingProfiler-MC1.12-1.3.jar)
  Narrator Hotkey Disabler (rebindnarrator-1.0.jar)
  EnderCorePlugin (EnderCore-1.12.2-0.5.73-core.jar)
  IELoadingPlugin (ImmersiveEngineering-core-0.12-92.jar)
  CTMCorePlugin (CTM-MC1.12.2-1.0.2.31.jar)
  llibrary (llibrary-core-1.0.11-1.12.2.jar)
  Do not report to Forge! (If you haven't disabled the FoamFix coremod, try disabling it in the config! Note that this bit of text will still appear.) (foamfix-0.10.10-1.12.2.jar)
  LoadingPlugin (ResourceLoader-MC1.12.1-1.5.3.jar)
  TickCentral (TickCentral-2.6.jar)
Contact their authors BEFORE contacting forge

// Quite honestly, I wouldn't worry myself about that.

Time: 1/19/21 11:25 PM
Description: Initializing game

java.lang.ArrayIndexOutOfBoundsException: -7
    at com.tfar.extraanvils.generic.BlockGenericAnvil.stringToRainbow(BlockGenericAnvil.java:244)
    at com.tfar.extraanvils.generic.BlockGenericAnvil.func_190948_a(BlockGenericAnvil.java:220)
    at net.minecraft.item.ItemBlock.func_77624_a(ItemBlock.java:157)
    at net.minecraft.item.ItemStack.func_82840_a(ItemStack.java:707)
    at net.minecraft.client.Minecraft.lambda$populateSearchTreeManager$1(Minecraft.java:576)
    at net.minecraft.client.util.SearchTree.func_194042_b(SourceFile:49)
    at net.minecraft.client.util.SearchTree.func_194043_a(SourceFile:44)
    at java.lang.Iterable.forEach(Iterable.java:75)
    at net.minecraft.client.Minecraft.func_193986_ar(Minecraft.java:590)
    at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:529)
    at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:378)
    at net.minecraft.client.main.Main.main(SourceFile:123)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
    at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.multimc.onesix.OneSixLauncher.launchWithMainClass(OneSixLauncher.java:196)
    at org.multimc.onesix.OneSixLauncher.launch(OneSixLauncher.java:231)
    at org.multimc.EntryPoint.listen(EntryPoint.java:143)
    at org.multimc.EntryPoint.main(EntryPoint.java:34)

A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Thread: Client thread
Stacktrace:
    at com.tfar.extraanvils.generic.BlockGenericAnvil.stringToRainbow(BlockGenericAnvil.java:244)
    at com.tfar.extraanvils.generic.BlockGenericAnvil.func_190948_a(BlockGenericAnvil.java:220)
    at net.minecraft.item.ItemBlock.func_77624_a(ItemBlock.java:157)
    at net.minecraft.item.ItemStack.func_82840_a(ItemStack.java:707)
    at net.minecraft.client.Minecraft.lambda$populateSearchTreeManager$1(Minecraft.java:576)
    at net.minecraft.client.util.SearchTree.func_194042_b(SourceFile:49)
    at net.minecraft.client.util.SearchTree.func_194043_a(SourceFile:44)
    at java.lang.Iterable.forEach(Iterable.java:75)
    at net.minecraft.client.Minecraft.func_193986_ar(Minecraft.java:590)
    at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:529)

-- Initialization --
Details:
Stacktrace:
    at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:378)
    at net.minecraft.client.main.Main.main(SourceFile:123)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
    at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.multimc.onesix.OneSixLauncher.launchWithMainClass(OneSixLauncher.java:196)
    at org.multimc.onesix.OneSixLauncher.launch(OneSixLauncher.java:231)
    at org.multimc.EntryPoint.listen(EntryPoint.java:143)
    at org.multimc.EntryPoint.main(EntryPoint.java:34)
Chezzik commented 3 years ago

This error is repeatable for me. It happens every time I try to launch the pack. The array index changes each time, but it always fails in the same location. Another log, for example:

Time: 1/20/21 8:24 AM
Description: Initializing game

java.lang.ArrayIndexOutOfBoundsException: -1
    at com.tfar.extraanvils.generic.BlockGenericAnvil.stringToRainbow(BlockGenericAnvil.java:244)
    at com.tfar.extraanvils.generic.BlockGenericAnvil.func_190948_a(BlockGenericAnvil.java:220)
    at net.minecraft.item.ItemBlock.func_77624_a(ItemBlock.java:157)
    at net.minecraft.item.ItemStack.func_82840_a(ItemStack.java:707)
ghost commented 3 years ago

I should probably update Glacial Awakening soon, which could possibly things for you, but until then you can remove Extra Anvils and that should stop the crash.

Chezzik commented 3 years ago

For some reason, I thought that this mod was integral to progression in the pack. In any case, I tried disabling that mod, and it runs fine, and I was able to create a world and enter it.

I really can't understand why I'm hitting this error and no one else is. I have Java 8, and run plenty of modpacks, and don't ever hit strange issues that affect me only.

It seems the error the code makes is assuming that the output of some function is a positive integer, but it seems to be a negative integer output for me:

public static String stringToRainbow(String parString) {
    int stringLength = parString.length();
    if (stringLength < 1)
      return ""; 
    StringBuilder outputString = new StringBuilder();
    TextFormatting[] colorChar = { TextFormatting.RED, TextFormatting.GOLD, TextFormatting.YELLOW, TextFormatting.GREEN, TextFormatting.AQUA, TextFormatting.BLUE, TextFormatting.DARK_PURPLE, TextFormatting.LIGHT_PURPLE };
    for (int i = 0; i < stringLength; i++)
      outputString.append(colorChar[(i + (int)(Minecraft.func_71386_F() / 50L)) % 8]).append(parString, i, i + 1); 
    return outputString.toString();
  }

The outputString.append() line is the one that one that crashes. Clearly the array index should be between 0 and 7, and it will be as long as Minecraft.func_713886_F() returns any non-negative integer. I can't find anything that says exactly what that function does, but the stack shows that this is being called from a function that puts tooltips on items.

I found another mod that calls this function while doing stuff with advancements, maybe it's related to that? I'm really confused by it.

DucksFoLif commented 2 years ago

I'm also having this same exact issue, I'm on an m1 Macbook but the error is exactly the same, it works fine on my windows machine.

Roguim commented 2 years ago

I'm also having this same exact issue, I'm on an m1 Macbook but the error is exactly the same, it works fine on my windows machine.

For now, just disable it- it is not key to progression. I'll upload a script shortly that you can upload to your /scripts/ folder, it will replace all the removed anvil recipes with working ones

Roguim commented 2 years ago

extraanvils.txt Okay nevermind, it doesn't like me uploading .zs files-- put it in your /scripts/ folder (within the Glacial Awakening instance; can be gotten to by going into your resource packs folder and going up a directory), and rename it to extraanvils.zs