Witchery: Companion

Witchery: Companion

11.2k Downloads

[Witchery Bug] bad type on operand stack on server boot

Nivid-IT opened this issue ยท 2 comments

commented

Description
Half of the time when my SpongeForge server boots up ever since Witchery was added to the modpack that is hosted, the boot process is halted within 20 seconds using a bad type on operand stack inside the Witchery mod.

Context
Environment
[ ] The issue is present in Single-Player (not relevant)
[X] The issue is present in Multi-Player
Other mods
[ ] The issue is present with just Forge and Witchery: Resurrected
[X] The issue is present when the following mods are installed: (please list the minimum amount of mods required to reproduce the issue. The less mods, the quicker the issue can be reproduced and solved)

  • spongeforge-1.12.2-2838-7.4.8-RC0.jar
  • forge-1.12.2-14.23.5.2860-universal.jar
  • !mixinbooter-9.4.jar
  • WitcheryResurrected-1.12.2-0.5.2.4-forge-all.jar
  • witcherycompanion-0.26.0-beta.jar and also using the newer witcherycompanion-0.32.2-beta.jar

Crash Report / logs
Specific Error (crash report also attached):

Description: Exception in server tick loop

java.lang.VerifyError: Bad type on operand stack
Exception Details:
  Location:
    net/msrandom/witchery/common/CommonEvents.onHarvestDrops(Lnet/minecraftforge/event/world/BlockEvent$HarvestDropsEvent;)V @126: invokevirtual
  Reason:
    Type 'java/lang/Object' (current frame, stack[0]) is not assignable to 'net/minecraft/entity/player/EntityPlayer'
  Current Frame:
    bci: @126
    flags: { }
    locals: { 'net/minecraftforge/event/world/BlockEvent$HarvestDropsEvent', 'net/msrandom/witchery/extensions/PlayerExtendedData', 'net/minecraft/world/storage/loot/LootTable', 'java/lang/Object' }
    stack: { 'java/lang/Object' }
  Bytecode:
    0x0000000: 2ab6 0766 c700 0701 a700 0a2a b607 66b8
    0x0000010: 0141 4c2a b607 67b4 0179 9a01 102a b607
    0x0000020: 689a 0109 b207 6b2a b607 6eb9 02bb 0100
    0x0000030: b603 4b99 00e4 b803 762a b607 67b6 0772
    0x0000040: b207 6b2a b607 6eb9 02bb 0100 b607 75c0
    0x0000050: 0777 b607 7d4d 2cb2 0783 a500 bd2a b607
    0x0000060: 664e 2dc7 000e 2ab6 0767 c007 85b8 078b
    0x0000070: 4e2a b607 8eb8 0792 0c95 9900 132d b606
    0x0000080: 2b13 0794 0c2a b607 8e6e b607 982d b606
    0x0000090: 2b13 079a bb02 d259 b702 d32a b607 6eb8
    0x00000a0: 07a0 b607 a4bb 002f 592a b607 67c0 0785
    0x00000b0: b707 a72d b607 ab3a 042a b607 acb9 07af
    0x00000c0: 0100 2c2a b607 67b4 0418 1904 b607 b3b6
    0x00000d0: 07b7 b901 8301 003a 0519 05b9 0189 0100
    0x00000e0: 9900 1e19 05b9 018d 0100 c001 133a 062a
    0x00000f0: b607 ac19 06b9 07b8 0200 57a7 ffde 2a0c
    0x0000100: b607 bb2d b606 2b13 0794 b604 762d b606
    0x0000110: 2b13 079a b604 762a b607 66c6 000f b205
    0x0000120: 2c2a 2ab6 0766 2bb6 07bf 2ab6 0766 c600
    0x0000130: 332a b607 66b4 024d b401 799a 0026 2ab6
    0x0000140: 0766 2ab6 07c0 2ab6 076e 2ab6 07ac b807
    0x0000150: c42b 2ab6 07ac b807 c82a b607 662a b807
    0x0000160: cb2a b607 67b4 0179 9a00 28b2 07d1 2ab6
    0x0000170: 0767 b907 d602 0099 0019 2ab6 0768 9a00
    0x0000180: 122a b607 acba 07df 0000 b907 e302 0057
    0x0000190: b1                                     
  Stackmap Table:
    same_frame(@11)
    same_locals_1_stack_item_frame(@18,Object[#323])
    append_frame(@113,Object[#323],Object[#1919],Object[#5])
    same_frame(@141)
    append_frame(@217,Object[#47],Object[#389])
    same_frame(@254)
    full_frame(@279,{Object[#42],Object[#323]},{})
    same_frame(@298)
    same_frame(@353)
    same_frame(@400)

    at java.lang.Class.getDeclaredMethods0(Native Method)
    at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
    at java.lang.Class.privateGetPublicMethods(Class.java:2902)
    at java.lang.Class.getMethods(Class.java:1615)
    at net.minecraftforge.fml.common.eventhandler.EventBus.register(EventBus.java:82)
    at net.msrandom.witchery.WitcheryResurrected.preInit(WitcheryResurrected.kt:114)
    at net.msrandom.witchery.WitcheryModContainer.preInit(WitcheryModContainer.kt:120)
    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 com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:91)
    at com.google.common.eventbus.Subscriber$SynchronizedSubscriber.invokeSubscriberMethod(Subscriber.java:150)
    at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:76)
    at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:399)
    at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:71)
    at com.google.common.eventbus.Dispatcher$PerThreadQueuedDispatcher.dispatch(Dispatcher.java:116)
    at com.google.common.eventbus.EventBus.post(EventBus.java:217)
    at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:219)
    at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:197)
    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 com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:91)
    at com.google.common.eventbus.Subscriber$SynchronizedSubscriber.invokeSubscriberMethod(Subscriber.java:150)
    at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:76)
    at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:399)
    at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:71)
    at com.google.common.eventbus.Dispatcher$PerThreadQueuedDispatcher.dispatch(Dispatcher.java:116)
    at com.google.common.eventbus.EventBus.post(EventBus.java:217)
    at net.minecraftforge.fml.common.LoadController.redirect$zza000$forgeImpl$PostEvent(LoadController.java:1068)
    at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:136)
    at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:629)
    at net.minecraftforge.fml.server.FMLServerHandler.beginServerLoading(FMLServerHandler.java:99)
    at net.minecraftforge.fml.common.FMLCommonHandler.onServerStart(FMLCommonHandler.java:333)
    at net.minecraft.server.dedicated.DedicatedServer.init(DedicatedServer.java:125)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:1802)
    at java.lang.Thread.run(Thread.java:748)

crash-2024-11-05_00.02.53-server (1).txt

commented

This is a build provided by Dockter from the SF team in February of this year which includes a fix to the following longstanding issue: SpongePowered/SpongeForge#3231

Ignore it being named RC0, it is the RC4142 build including AlmuraDev/SpongeForge@585c0c1. I would say that on average, once every 8 automatic server restarts, sometimes consecutively, sometimes not once in multiple days, this error crashes the server during the startup process.

commented

Is there a particular reason why you're using spongeforge-1.12.2-2838-7.4.8-RC0? I just booted up a server with your exact modlist but with spongeforge-1.12.2-2838-7.4.8-RC4142, downloaded from here https://spongepowered.org/downloads/spongeforge?minecraft=1.12.2&offset=0

Booted up several times, didn't have any issues. Can you try with the SF version I mentioned?