Grasscutters / Grasscutter

A server software reimplementation for a certain anime game.
https://grasscutter.io/
GNU Affero General Public License v3.0
16.27k stars 4.48k forks source link

[Bug] Cannot invoke "emu.grasscutter.game.entity.GameEntity.getEntityType()" because "e" is null #1047

Closed rs-v closed 2 years ago

rs-v commented 2 years ago

dev-wrold-script 862bfa061133a35e453fa042d7125644810082f2 <ERROR:GameServer$1> An error occurred during game update. java.lang.NullPointerException: Cannot invoke "emu.grasscutter.game.entity.GameEntity.getEntityType()" because "e" is null at emu.grasscutter.scripts.SceneScriptManager.lambda$checkRegions$2(SceneScriptManager.java:196) at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:178) at it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap$ValueSpliterator.acceptOnIndex(Int2ObjectOpenHashMap.java:1221) at it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap$ValueSpliterator.acceptOnIndex(Int2ObjectOpenHashMap.java:1205) at it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap$MapSpliterator.forEachRemaining(Int2ObjectOpenHashMap.java:881) at it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap$ValueSpliterator.forEachRemaining(Int2ObjectOpenHashMap.java:1205) at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150) at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173) at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596) at emu.grasscutter.scripts.SceneScriptManager.checkRegions(SceneScriptManager.java:197) at emu.grasscutter.game.world.Scene.onTick(Scene.java:425) at emu.grasscutter.game.world.World.onTick(World.java:314) at emu.grasscutter.server.game.GameServer.onTick(GameServer.java:224) at emu.grasscutter.server.game.GameServer$1.run(GameServer.java:251) at java.base/java.util.TimerThread.mainLoop(Timer.java:566) at java.base/java.util.TimerThread.run(Timer.java:516) 10:33:38 <INFO:ScriptLib> [LUA] @@ LUA_WARNING : set_gadget_state_by_configId 10:33:40 <ERROR:GameServer$1> An error occurred during game update. java.lang.NullPointerException: null

rs-v commented 2 years ago

no manualy DB modify use Koko-boya/Grasscutter_Resources

memetrollsXD commented 2 years ago

Please provide more context

rs-v commented 2 years ago

ha! I maybe cause by a certain lua script! but now there is a more tricky problem! when i teletransport ,the server crashed now! `

[LUA] call trigger failed action_EVENT_GADGE T_CREATE_81011,emu.grasscutter.scripts.data.ScriptArgs@5509ece9org.luaj.vm2.LuaError: script:516 attempt to call nil at org.luaj.vm2.LuaValue.checkmetatag(Unknown Source) at org.luaj.vm2.LuaValue.callmt(Unknown Source) at org.luaj.vm2.LuaValue.invoke(Unknown Source) at org.luaj.vm2.LuaClosure.execute(Unknown Source) at org.luaj.vm2.LuaClosure.call(Unknown Source) at emu.grasscutter.scripts.SceneScriptManager.safetyCall(SceneScriptMana ger.java:335) at emu.grasscutter.scripts.SceneScriptManager.callScriptFunc(SceneScript Manager.java:328) at emu.grasscutter.scripts.SceneScriptManager.realCallEvent(SceneScriptM anager.java:298) at emu.grasscutter.scripts.SceneScriptManager.lambda$callEvent$6(SceneSc riptManager.java:283) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executo rs.java:539) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoo lExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPo olExecutor.java:635) at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalR unnable.java:30) at java.base/java.lang.Thread.run(Thread.java:833)10:58:56 Scene 7 loaded 25 group(s)10:58:56 Scene 7 Block 7006 loaded.10:59:10 Loading script ./resources/scripts/Scene/3/scene3.l uajava.lang.OutOfMemoryError: Java heap space at ch.ethz.globis.phtree.util.unsynced.LongArrayPool.(LongArrayPoo l.java:65) at ch.ethz.globis.phtree.util.unsynced.LongArrayPool.create(LongArrayPoo l.java:43) at ch.ethz.globis.phtree.v16.bst.BSTPool.(BSTPool.java:31) at ch.ethz.globis.phtree.v16.bst.BSTPool.create(BSTPool.java:37) at ch.ethz.globis.phtree.v16.PhTree16.(PhTree16.java:131) at emu.grasscutter.scripts.data.SceneBlock.(SceneBlock.java:28) at emu.grasscutter.scripts.data.SceneBlockConstructorAccess.newInstance( Unknown Source) at emu.grasscutter.scripts.serializer.LuaSerializer.serialize(LuaSeriali zer.java:97) at emu.grasscutter.scripts.serializer.LuaSerializer.serializeList(LuaSer ializer.java:52) at emu.grasscutter.scripts.serializer.LuaSerializer.toList(LuaSerializer .java:28) at emu.grasscutter.scripts.data.SceneMeta.load(SceneMeta.java:58) at emu.grasscutter.scripts.data.SceneMeta.of(SceneMeta.java:33) at emu.grasscutter.scripts.ScriptLoader.lambda$getSceneMeta$1(ScriptLoad er.java:131) at emu.grasscutter.scripts.ScriptLoader$$Lambda$617/0x0000000801184800.g et(Unknown Source) at java.base/java.util.Optional.orElseGet(Optional.java:364) at emu.grasscutter.scripts.ScriptLoader.getSceneMeta(ScriptLoader.java:1 30) at emu.grasscutter.scripts.SceneScriptManager.init(SceneScriptManager.ja va:156) at emu.grasscutter.scripts.SceneScriptManager.(SceneScriptManager. java:70) at emu.grasscutter.game.world.Scene.(Scene.java:70) at emu.grasscutter.game.world.World.getSceneById(World.java:112) at emu.grasscutter.game.world.World.transferPlayerToScene(World.java:235 ) at emu.grasscutter.game.world.World.transferPlayerToScene(World.java:210 ) at emu.grasscutter.server.packet.recv.HandlerSceneTransToPointReq.handle (HandlerSceneTransToPointReq.java:29) at emu.grasscutter.server.game.GameServerPacketHandler.handle(GameServer PacketHandler.java:88) at emu.grasscutter.server.game.GameSession.onMessage(GameSession.java:25 0) at emu.grasscutter.netty.KcpChannel.channelRead(KcpChannel.java:43) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(Abst ractChannelHandlerContext.java:379) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(Abst ractChannelHandlerContext.java:365) at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(Abstra ctChannelHandlerContext.java:357) at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(Defau ltChannelPipeline.java:1410) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(Abst ractChannelHandlerContext.java:379) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(Abst ractChannelHandlerContext.java:365) ` **ok when teletransport from one instance to another instance would cause above situation**
rs-v commented 2 years ago

java.lang.NullPointerException: Cannot invoke "emu.grasscutter.game.world.Scene.getSceneType()" because the return value of "emu.grasscutter.game.player.Player.getScene()" is null at emu.grasscutter.game.player.Player.onLogout(Player.java:1244) at emu.grasscutter.server.game.GameSession.onDisconnect(GameSession.java:131) at emu.grasscutter.netty.KcpChannel.channelInactive(KcpChannel.java:37) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:262) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:248) at io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:241) at io.netty.channel.DefaultChannelPipeline$HeadContext.channelInactive(DefaultChannelPipeline.java:1405) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:262) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:248) at io.netty.channel.DefaultChannelPipeline.fireChannelInactive(DefaultChannelPipeline.java:901) at io.netty.channel.AbstractChannel$AbstractUnsafe$8.run(AbstractChannel.java:831) at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:164) at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:469) at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:500) at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:986) at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) at java.base/java.lang.Thread.run(Thread.java:833)

rs-v commented 2 years ago

here is the

Please provide more context

`

[LUA] ## TEMPLE_LOG : Gadget_State_Change | 66002 : 0 -> 0 11:22:56 [LUA] call trigger failed action_EVENT_ANY_M ONSTER_DIE_251017,emu.grasscutter.scripts.data.ScriptArgs@6a74050e org.luaj.vm2.LuaError: script:560 attempt to call nil at org.luaj.vm2.LuaValue.checkmetatag(Unknown Source) at org.luaj.vm2.LuaValue.callmt(Unknown Source) at org.luaj.vm2.LuaValue.call(Unknown Source) at org.luaj.vm2.LuaClosure.execute(Unknown Source) at org.luaj.vm2.LuaClosure.call(Unknown Source) at emu.grasscutter.scripts.SceneScriptManager.safetyCall(SceneScriptMana ger.java:335) at emu.grasscutter.scripts.SceneScriptManager.callScriptFunc(SceneScript Manager.java:328) at emu.grasscutter.scripts.SceneScriptManager.realCallEvent(SceneScriptM anager.java:298) at emu.grasscutter.scripts.SceneScriptManager.lambda$callEvent$6(SceneSc riptManager.java:283) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executo rs.java:539) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoo lExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPo olExecutor.java:635) at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalR unnable.java:30) at java.base/java.lang.Thread.run(Thread.java:833) 11:22:58 [LUA] call trigger failed action_EVENT_ANY_M ONSTER_DIE_251017,emu.grasscutter.scripts.data.ScriptArgs@78537224 org.luaj.vm2.LuaError: script:560 attempt to call nil at org.luaj.vm2.LuaValue.checkmetatag(Unknown Source) at org.luaj.vm2.LuaValue.callmt(Unknown Source) at org.luaj.vm2.LuaValue.call(Unknown Source) at org.luaj.vm2.LuaClosure.execute(Unknown Source) at org.luaj.vm2.LuaClosure.call(Unknown Source) at emu.grasscutter.scripts.SceneScriptManager.safetyCall(SceneScriptMana ger.java:335) at emu.grasscutter.scripts.SceneScriptManager.callScriptFunc(SceneScript Manager.java:328) at emu.grasscutter.scripts.SceneScriptManager.realCallEvent(SceneScriptM anager.java:298) at emu.grasscutter.scripts.SceneScriptManager.lambda$callEvent$6(SceneSc riptManager.java:283) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executo rs.java:539) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoo lExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPo olExecutor.java:635) at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalR unnable.java:30) at java.base/java.lang.Thread.run(Thread.java:833) 11:22:58 [LUA] ## TEMPLE_LOG : Gadget_State_Change | 66002 : 0 -> 0 11:23:00 [LUA] ## TEMPLE_LOG : Gadget_State_Change | 66002 : 0 -> 0 11:23:00 [LUA] call trigger failed action_EVENT_ANY_M ONSTER_DIE_251017,emu.grasscutter.scripts.data.ScriptArgs@72478656 org.luaj.vm2.LuaError: script:560 attempt to call nil at org.luaj.vm2.LuaValue.checkmetatag(Unknown Source) at org.luaj.vm2.LuaValue.callmt(Unknown Source) at org.luaj.vm2.LuaValue.call(Unknown Source) at org.luaj.vm2.LuaClosure.execute(Unknown Source) at org.luaj.vm2.LuaClosure.call(Unknown Source) at emu.grasscutter.scripts.SceneScriptManager.safetyCall(SceneScriptMana ger.java:335) at emu.grasscutter.scripts.SceneScriptManager.callScriptFunc(SceneScript Manager.java:328) at emu.grasscutter.scripts.SceneScriptManager.realCallEvent(SceneScriptM anager.java:298) at emu.grasscutter.scripts.SceneScriptManager.lambda$callEvent$6(SceneSc riptManager.java:283) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executo rs.java:539) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoo lExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPo olExecutor.java:635) at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalR unnable.java:30) at java.base/java.lang.Thread.run(Thread.java:833) 11:23:06 Loading script ./resources/scripts/Scene/3/scene3_g roup133101157.lua 11:23:06 group 133101157 in scene 3 is loaded successfully. 11:23:06 Scene 3 loaded 1 group(s) 11:23:07 [LUA] call trigger failed action_EVENT_ANY_M ONSTER_DIE_251017,emu.grasscutter.scripts.data.ScriptArgs@1437d905 org.luaj.vm2.LuaError: script:560 attempt to call nil at org.luaj.vm2.LuaValue.checkmetatag(Unknown Source) at org.luaj.vm2.LuaValue.callmt(Unknown Source) at org.luaj.vm2.LuaValue.call(Unknown Source) at org.luaj.vm2.LuaClosure.execute(Unknown Source) at org.luaj.vm2.LuaClosure.call(Unknown Source) at emu.grasscutter.scripts.SceneScriptManager.safetyCall(SceneScriptMana ger.java:335) at emu.grasscutter.scripts.SceneScriptManager.callScriptFunc(SceneScript Manager.java:328) at emu.grasscutter.scripts.SceneScriptManager.realCallEvent(SceneScriptM anager.java:298) at emu.grasscutter.scripts.SceneScriptManager.lambda$callEvent$6(SceneSc riptManager.java:283) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executo rs.java:539) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoo lExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPo olExecutor.java:635) at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalR unnable.java:30) at java.base/java.lang.Thread.run(Thread.java:833) 11:23:07 [LUA] ## TEMPLE_LOG : Gadget_State_Change | 66002 : 0 -> 0 11:23:08 Loading script ./resources/scripts/Scene/3/scene3_g roup133101159.lua 11:23:08 group 133101159 in scene 3 is loaded successfully. 11:23:08 Scene 3 loaded 1 group(s) 11:23:13 [LUA] ## TEMPLE_LOG : Gadget_State_Change | 66002 : 0 -> 0 11:23:13 [LUA] ## TEMPLE_LOG : Gadget_State_Change | 91002 : 0 -> 0 11:23:13 [LUA] call trigger failed action_EVENT_ANY_M ONSTER_DIE_251017,emu.grasscutter.scripts.data.ScriptArgs@308e4b5a org.luaj.vm2.LuaError: script:560 attempt to call nil at org.luaj.vm2.LuaValue.checkmetatag(Unknown Source) at org.luaj.vm2.LuaValue.callmt(Unknown Source) at org.luaj.vm2.LuaValue.call(Unknown Source) at org.luaj.vm2.LuaClosure.execute(Unknown Source) at org.luaj.vm2.LuaClosure.call(Unknown Source) at emu.grasscutter.scripts.SceneScriptManager.safetyCall(SceneScriptMana ger.java:335) at emu.grasscutter.scripts.SceneScriptManager.callScriptFunc(SceneScript Manager.java:328) at emu.grasscutter.scripts.SceneScriptManager.realCallEvent(SceneScriptM anager.java:298) at emu.grasscutter.scripts.SceneScriptManager.lambda$callEvent$6(SceneSc riptManager.java:283) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executo rs.java:539) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoo lExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPo olExecutor.java:635) at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalR unnable.java:30) at java.base/java.lang.Thread.run(Thread.java:833) 11:23:13 [LUA] call trigger failed action_EVENT_ANY_M ONSTER_DIE_251017,emu.grasscutter.scripts.data.ScriptArgs@74d4d98b org.luaj.vm2.LuaError: script:560 attempt to call nil at org.luaj.vm2.LuaValue.checkmetatag(Unknown Source) at org.luaj.vm2.LuaValue.callmt(Unknown Source) at org.luaj.vm2.LuaValue.call(Unknown Source) at org.luaj.vm2.LuaClosure.execute(Unknown Source) at org.luaj.vm2.LuaClosure.call(Unknown Source) at emu.grasscutter.scripts.SceneScriptManager.safetyCall(SceneScriptMana ger.java:335) at emu.grasscutter.scripts.SceneScriptManager.callScriptFunc(SceneScript Manager.java:328) at emu.grasscutter.scripts.SceneScriptManager.realCallEvent(SceneScriptM anager.java:298) at emu.grasscutter.scripts.SceneScriptManager.lambda$callEvent$6(SceneSc riptManager.java:283) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executo rs.java:539) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoo lExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPo olExecutor.java:635) at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalR unnable.java:30) at java.base/java.lang.Thread.run(Thread.java:833) 11:23:13 [LUA] ## TEMPLE_LOG : Gadget_State_Change | 66002 : 0 -> 0 11:23:13 [LUA] ## TEMPLE_LOG : Gadget_State_Change | 91002 : 0 -> 0 11:23:14 [LUA] ## TEMPLE_LOG : Gadget_State_Change | 91002 : 0 -> 0 11:23:14 [LUA] call trigger failed action_EVENT_ANY_M ONSTER_DIE_251017,emu.grasscutter.scripts.data.ScriptArgs@7a987430 org.luaj.vm2.LuaError: script:560 attempt to call nil at org.luaj.vm2.LuaValue.checkmetatag(Unknown Source) at org.luaj.vm2.LuaValue.callmt(Unknown Source) at org.luaj.vm2.LuaValue.call(Unknown Source) at org.luaj.vm2.LuaClosure.execute(Unknown Source) at org.luaj.vm2.LuaClosure.call(Unknown Source) at emu.grasscutter.scripts.SceneScriptManager.safetyCall(SceneScriptMana ger.java:335) at emu.grasscutter.scripts.SceneScriptManager.callScriptFunc(SceneScript Manager.java:328) at emu.grasscutter.scripts.SceneScriptManager.realCallEvent(SceneScriptM anager.java:298) at emu.grasscutter.scripts.SceneScriptManager.lambda$callEvent$6(SceneSc riptManager.java:283) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executo rs.java:539) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoo lExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPo olExecutor.java:635) at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalR unnable.java:30) at java.base/java.lang.Thread.run(Thread.java:833) 11:23:14 [LUA] ## TEMPLE_LOG : Gadget_State_Change | 66002 : 0 -> 0 11:23:14 [LUA] ## TEMPLE_LOG : Gadget_State_Change | 66002 : 0 -> 0 11:23:14 [LUA] ## TEMPLE_LOG : Gadget_State_Change | 91002 : 0 -> 0 11:23:14 [LUA] call trigger failed action_EVENT_ANY_M ONSTER_DIE_251017,emu.grasscutter.scripts.data.ScriptArgs@7d8ef5fa org.luaj.vm2.LuaError: script:560 attempt to call nil at org.luaj.vm2.LuaValue.checkmetatag(Unknown Source) at org.luaj.vm2.LuaValue.callmt(Unknown Source) at org.luaj.vm2.LuaValue.call(Unknown Source) at org.luaj.vm2.LuaClosure.execute(Unknown Source) at org.luaj.vm2.LuaClosure.call(Unknown Source) at emu.grasscutter.scripts.SceneScriptManager.safetyCall(SceneScriptMana ger.java:335) at emu.grasscutter.scripts.SceneScriptManager.callScriptFunc(SceneScript Manager.java:328) at emu.grasscutter.scripts.SceneScriptManager.realCallEvent(SceneScriptM anager.java:298) at emu.grasscutter.scripts.SceneScriptManager.lambda$callEvent$6(SceneSc riptManager.java:283) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executo rs.java:539) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoo lExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPo olExecutor.java:635) at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalR unnable.java:30) at java.base/java.lang.Thread.run(Thread.java:833) 11:23:17 [LUA] ## TEMPLE_LOG : Gadget_State_Change | 91002 : 0 -> 102 11:23:17 [LUA] ## TEMPLE_LOG : Gadget_Die | 91002 11:23:23 [LUA] @@ LUA_WARNING : set_gadget_state_by_configId 11:23:23 [LUA] call trigger failed action_EVENT_ANY_M ONSTER_DIE_251017,emu.grasscutter.scripts.data.ScriptArgs@351197f4 org.luaj.vm2.LuaError: script:560 attempt to call nil at org.luaj.vm2.LuaValue.checkmetatag(Unknown Source) at org.luaj.vm2.LuaValue.callmt(Unknown Source) at org.luaj.vm2.LuaValue.call(Unknown Source) at org.luaj.vm2.LuaClosure.execute(Unknown Source) at org.luaj.vm2.LuaClosure.call(Unknown Source) at emu.grasscutter.scripts.SceneScriptManager.safetyCall(SceneScriptMana ger.java:335) at emu.grasscutter.scripts.SceneScriptManager.callScriptFunc(SceneScript Manager.java:328) at emu.grasscutter.scripts.SceneScriptManager.realCallEvent(SceneScriptM anager.java:298) at emu.grasscutter.scripts.SceneScriptManager.lambda$callEvent$6(SceneSc riptManager.java:283) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executo rs.java:539) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoo lExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPo olExecutor.java:635) at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalR unnable.java:30) at java.base/java.lang.Thread.run(Thread.java:833) 11:23:23 [LUA] ## TEMPLE_LOG : Gadget_State_Change | 66002 : 0 -> 0 11:23:28 [LUA] @@ LUA_WARNING : set_gadget_state_by_configId 11:23:28 [LUA] call trigger failed action_EVENT_ANY_M ONSTER_DIE_251017,emu.grasscutter.scripts.data.ScriptArgs@72c2d18 org.luaj.vm2.LuaError: script:560 attempt to call nil at org.luaj.vm2.LuaValue.checkmetatag(Unknown Source) at org.luaj.vm2.LuaValue.callmt(Unknown Source) at org.luaj.vm2.LuaValue.call(Unknown Source) at org.luaj.vm2.LuaClosure.execute(Unknown Source) at org.luaj.vm2.LuaClosure.call(Unknown Source) at emu.grasscutter.scripts.SceneScriptManager.safetyCall(SceneScriptMana ger.java:335) at emu.grasscutter.scripts.SceneScriptManager.callScriptFunc(SceneScript Manager.java:328) at emu.grasscutter.scripts.SceneScriptManager.realCallEvent(SceneScriptM anager.java:298) at emu.grasscutter.scripts.SceneScriptManager.lambda$callEvent$6(SceneSc riptManager.java:283) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executo rs.java:539) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoo lExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPo olExecutor.java:635) at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalR unnable.java:30) at java.base/java.lang.Thread.run(Thread.java:833) 11:23:28 [LUA] ## TEMPLE_LOG : Gadget_State_Change | 66002 : 0 -> 0 11:23:38 [LUA] @@ LUA_WARNING : set_gadget_state_by_configId 11:23:38 [LUA] ## TEMPLE_LOG : Gadget_State_Change | 66002 : 0 -> 0 11:23:38 [LUA] call trigger failed action_EVENT_ANY_M ONSTER_DIE_251017,emu.grasscutter.scripts.data.ScriptArgs@1ab2a469 org.luaj.vm2.LuaError: script:560 attempt to call nil at org.luaj.vm2.LuaValue.checkmetatag(Unknown Source) at org.luaj.vm2.LuaValue.callmt(Unknown Source) at org.luaj.vm2.LuaValue.call(Unknown Source) at org.luaj.vm2.LuaClosure.execute(Unknown Source) at org.luaj.vm2.LuaClosure.call(Unknown Source) at emu.grasscutter.scripts.SceneScriptManager.safetyCall(SceneScriptMana ger.java:335) at emu.grasscutter.scripts.SceneScriptManager.callScriptFunc(SceneScript Manager.java:328) at emu.grasscutter.scripts.SceneScriptManager.realCallEvent(SceneScriptM anager.java:298) at emu.grasscutter.scripts.SceneScriptManager.lambda$callEvent$6(SceneSc riptManager.java:283) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executo rs.java:539) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoo lExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPo olExecutor.java:635) at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalR unnable.java:30) at java.base/java.lang.Thread.run(Thread.java:833) 11:24:05 Scene 3 Block 3101 is unloaded. 11:24:05 Loading script ./resources/scripts/Scene/3/scene3_b lock3103.lua 11:24:06 scene 3 block 3103 is loaded successfully. 11:24:06 Loading script ./resources/scripts/Scene/3/scene3_g roup133103337.lua 11:24:06 group 133103337 in scene 3 is loaded successfully. 11:24:06 Loading script ./resources/scripts/Scene/3/scene3_g roup133103578.lua 11:24:06 group 133103578 in scene 3 is loaded successfully. 11:24:06 Loading script ./resources/scripts/Scene/3/scene3_g roup133103333.lua 11:24:06 group 133103333 in scene 3 is loaded successfully. 11:24:06 Loading script ./resources/scripts/Scene/3/scene3_g roup133103810.lua 11:24:06 group 133103810 in scene 3 is loaded successfully. 11:24:06 Loading script ./resources/scripts/Scene/3/scene3_g roup133103344.lua 11:24:06 group 133103344 in scene 3 is loaded successfully. 11:24:06 Loading script ./resources/scripts/Scene/3/scene3_g roup133103177.lua 11:24:06 group 133103177 in scene 3 is loaded successfully. 11:24:06 Loading script ./resources/scripts/Scene/3/scene3_g roup133103188.lua 11:24:06 group 133103188 in scene 3 is loaded successfully. 11:24:06 Loading script ./resources/scripts/Scene/3/scene3_g roup133103481.lua 11:24:06 group 133103481 in scene 3 is loaded successfully. 11:24:06 Loading script ./resources/scripts/Scene/3/scene3_g roup133103474.lua 11:24:06 group 133103474 in scene 3 is loaded successfully. 11:24:06 Loading script ./resources/scripts/Scene/3/scene3_g roup133103346.lua 11:24:06 group 133103346 in scene 3 is loaded successfully. 11:24:06 Scene 3 loaded 10 group(s) 11:24:06 Scene 3 Block 3103 loaded. 11:24:17 Loading script ./resources/scripts/Scene/3/scene3_g roup133103343.lua 11:24:17 group 133103343 in scene 3 is loaded successfully. 11:24:17 Scene 3 loaded 1 group(s) 11:24:18 Loading script ./resources/scripts/Scene/3/scene3_g roup133103341.lua 11:24:18 group 133103341 in scene 3 is loaded successfully. 11:24:18 Scene 3 loaded 1 group(s) 11:24:38 Client disconnected from 127.0.0.1 11:24:38 Client connected from 127.0.0.1 11:24:40 Scene 3 loaded 6 group(s) 11:24:40 Scene 3 Block 3103 loaded. > io.jpower.kcp.netty.KcpException: State=-1 after update() at io.jpower.kcp.netty.UkcpServerChannel.run(UkcpServerChannel.java:395) at io.netty.util.concurrent.PromiseTask.runTask(PromiseTask.java:98) at io.netty.util.concurrent.ScheduledFutureTask.run(ScheduledFutureTask. java:170) at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEv entExecutor.java:164) at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(Single ThreadEventExecutor.java:469) at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:503) at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThread EventExecutor.java:986) at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java :74) at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalR unnable.java:30) at java.base/java.lang.Thread.run(Thread.java:833) 11:27:03 Client disconnected from 127.0.0.1 > Exception in thread "Timer-0" java.lang.OutOfMemoryError: Java heap space at java.base/java.util.HashMap$KeySet.iterator(HashMap.java:983) at java.base/java.util.HashSet.iterator(HashSet.java:174) at java.base/java.util.Collections$SynchronizedCollection.iterator(Colle ctions.java:2100) at emu.grasscutter.server.game.GameServer.onTick(GameServer.java:216) at emu.grasscutter.server.game.GameServer$1.run(GameServer.java:251) at java.base/java.util.TimerThread.mainLoop(Timer.java:566) at java.base/java.util.TimerThread.run(Timer.java:516) 11:27:23 Exception in monitor thread while connecting to serv er localhost:27017 java.lang.OutOfMemoryError: Java heap space 11:27:33 Opened connection [connectionId{localValue:4, server Value:19}] to localhost:27017 11:27:33 Monitor thread successfully connected to server with description ServerDescription{address=localhost:27017, type=STANDALONE, state=C ONNECTED, ok=true, minWireVersion=0, maxWireVersion=6, maxDocumentSize=16777216, logicalSessionTimeoutMinutes=30, roundTripTimeNanos=678052} `
memetrollsXD commented 2 years ago

This looks like a problem with YSLua rather than Grasscutter itself

Not all data from the anime game is reliable, so it may just be that some data are broken for usage

please anime company bring back lua 😔

rs-v commented 2 years ago

oh! altough it sounds so bad😶, Thanks for your help.