Tom's Peripherals

Tom's Peripherals

49 Downloads

java.lang.NullPointerException: Cannot read field "chars2" because "this.selectedFont" is null

Tablet-512 opened this issue ยท 1 comments

commented

2024-09-20_10 24 15
Version: 1.20.1 fabric
Fabric version 0.16.5
Mod version: 1.2.1
CC: Tweaked version: 1.113.1

commented

Error in the server console (I'm playing a multiplayer game) :

[10:23:48] [ComputerCraft-Computer-Worker-0/ERROR]: Error calling call on dan200.computercraft.core.apis.PeripheralAPI@47683d5c
java.lang.NullPointerException: Cannot read field "chars2" because "this.selectedFont" is null
at com.tom.peripherals.gpu.BaseGPU.getTextLength(BaseGPU.java:536) ~[toms_peripherals_fabric-1.20.1-1.2.1.jar:?]
at com.tom.peripherals.gpu.BaseGPU.drawText(BaseGPU.java:226) ~[toms_peripherals_fabric-1.20.1-1.2.1.jar:?]
at com.tom.peripherals.api.ITMPeripheral.lambda$findLuaMethods$8(ITMPeripheral.java:63) ~[toms_peripherals_fabric-1.20.1-1.2.1.jar:?]
at com.tom.peripherals.api.TMLuaObject.callInt(TMLuaObject.java:44) ~[toms_peripherals_fabric-1.20.1-1.2.1.jar:?]
at com.tom.peripherals.block.entity.GPUBlockEntity$GPUPeripheral.call(GPUBlockEntity.java:76) ~[toms_peripherals_fabric-1.20.1-1.2.1.jar:?]
at com.tom.peripherals.cc.CCPeripheral$PeripheralWrapper.callMethod(CCPeripheral.java:45) ~[toms_peripherals_fabric-1.20.1-1.2.1.jar:?]
at dan200.computercraft.core.asm.PeripheralMethodSupplier.lambda$static$5(PeripheralMethodSupplier.java:39) ~[cc-tweaked-1.20.1-fabric-1.113.1.jar:?]
at dan200.computercraft.core.apis.PeripheralAPI$PeripheralWrapper.call(PeripheralAPI.java:105) ~[cc-tweaked-1.20.1-fabric-1.113.1.jar:?]
at dan200.computercraft.core.apis.PeripheralAPI.call(PeripheralAPI.java:326) ~[cc-tweaked-1.20.1-fabric-1.113.1.jar:?]
at dan200.computercraft.core.asm.LuaMethodSupplier.lambda$static$0(LuaMethodSupplier.java:27) ~[cc-tweaked-1.20.1-fabric-1.113.1.jar:?]
at dan200.computercraft.core.lua.ResultInterpreterFunction.invoke(ResultInterpreterFunction.java:56) ~[cc-tweaked-1.20.1-fabric-1.113.1.jar:?]
at org.squiddev.cobalt.function.ResumableVarArgFunction.invoke(ResumableVarArgFunction.java:34) ~[cc_tweaked_cobalt-0.9.3-525ae74d72e04a6f.jar:?]
at org.squiddev.cobalt.function.Dispatch.invokeImpl(Dispatch.java:175) ~[cc_tweaked_cobalt-0.9.3-525ae74d72e04a6f.jar:?]
at org.squiddev.cobalt.function.Dispatch.invoke(Dispatch.java:63) ~[cc_tweaked_cobalt-0.9.3-525ae74d72e04a6f.jar:?]
at org.squiddev.cobalt.function.Dispatch.invoke(Dispatch.java:58) ~[cc_tweaked_cobalt-0.9.3-525ae74d72e04a6f.jar:?]
at org.squiddev.cobalt.function.LuaInterpreter.execute(LuaInterpreter.java:454) ~[cc_tweaked_cobalt-0.9.3-525ae74d72e04a6f.jar:?]
at org.squiddev.cobalt.function.Dispatch.invokeImpl(Dispatch.java:166) ~[cc_tweaked_cobalt-0.9.3-525ae74d72e04a6f.jar:?]
at org.squiddev.cobalt.function.Dispatch.invoke(Dispatch.java:63) ~[cc_tweaked_cobalt-0.9.3-525ae74d72e04a6f.jar:?]
at org.squiddev.cobalt.function.Dispatch.invoke(Dispatch.java:58) ~[cc_tweaked_cobalt-0.9.3-525ae74d72e04a6f.jar:?]
at org.squiddev.cobalt.LuaThread.loop(LuaThread.java:320) ~[cc_tweaked_cobalt-0.9.3-525ae74d72e04a6f.jar:?]
at org.squiddev.cobalt.LuaThread.run(LuaThread.java:301) ~[cc_tweaked_cobalt-0.9.3-525ae74d72e04a6f.jar:?]
at org.squiddev.cobalt.LuaThread.run(LuaThread.java:297) ~[cc_tweaked_cobalt-0.9.3-525ae74d72e04a6f.jar:?]
at dan200.computercraft.core.lua.CobaltLuaMachine.handleEvent(CobaltLuaMachine.java:129) ~[cc-tweaked-1.20.1-fabric-1.113.1.jar:?]
at dan200.computercraft.core.computer.ComputerExecutor.resumeMachine(ComputerExecutor.java:557) ~[cc-tweaked-1.20.1-fabric-1.113.1.jar:?]
at dan200.computercraft.core.computer.ComputerExecutor.workImpl(ComputerExecutor.java:521) ~[cc-tweaked-1.20.1-fabric-1.113.1.jar:?]
at dan200.computercraft.core.computer.ComputerExecutor.work(ComputerExecutor.java:461) ~[cc-tweaked-1.20.1-fabric-1.113.1.jar:?]
at dan200.computercraft.core.computer.computerthread.ComputerThread$WorkerThread.runImpl(ComputerThread.java:660) ~[cc-tweaked-1.20.1-fabric-1.113.1.jar:?]
at dan200.computercraft.core.computer.computerthread.ComputerThread$WorkerThread.run(ComputerThread.java:614) ~[cc-tweaked-1.20.1-fabric-1.113.1.jar:?]
at java.lang.Thread.run(Thread.java:840) ~[?:?]
[10:24:00] [ComputerCraft-Computer-Worker-0/ERROR]: Error calling call on dan200.computercraft.core.apis.PeripheralAPI@47683d5c
java.lang.NullPointerException: Cannot read field "chars2" because "this.selectedFont" is null
at com.tom.peripherals.gpu.BaseGPU.getTextLength(BaseGPU.java:536) ~[toms_peripherals_fabric-1.20.1-1.2.1.jar:?]
at com.tom.peripherals.gpu.BaseGPU.drawTextSmart(BaseGPU.java:319) ~[toms_peripherals_fabric-1.20.1-1.2.1.jar:?]
at com.tom.peripherals.api.ITMPeripheral.lambda$findLuaMethods$8(ITMPeripheral.java:63) ~[toms_peripherals_fabric-1.20.1-1.2.1.jar:?]
at com.tom.peripherals.api.TMLuaObject.callInt(TMLuaObject.java:44) ~[toms_peripherals_fabric-1.20.1-1.2.1.jar:?]
at com.tom.peripherals.block.entity.GPUBlockEntity$GPUPeripheral.call(GPUBlockEntity.java:76) ~[toms_peripherals_fabric-1.20.1-1.2.1.jar:?]
at com.tom.peripherals.cc.CCPeripheral$PeripheralWrapper.callMethod(CCPeripheral.java:45) ~[toms_peripherals_fabric-1.20.1-1.2.1.jar:?]
at dan200.computercraft.core.asm.PeripheralMethodSupplier.lambda$static$5(PeripheralMethodSupplier.java:39) ~[cc-tweaked-1.20.1-fabric-1.113.1.jar:?]
at dan200.computercraft.core.apis.PeripheralAPI$PeripheralWrapper.call(PeripheralAPI.java:105) ~[cc-tweaked-1.20.1-fabric-1.113.1.jar:?]
at dan200.computercraft.core.apis.PeripheralAPI.call(PeripheralAPI.java:326) ~[cc-tweaked-1.20.1-fabric-1.113.1.jar:?]
at dan200.computercraft.core.asm.LuaMethodSupplier.lambda$static$0(LuaMethodSupplier.java:27) ~[cc-tweaked-1.20.1-fabric-1.113.1.jar:?]
at dan200.computercraft.core.lua.ResultInterpreterFunction.invoke(ResultInterpreterFunction.java:56) ~[cc-tweaked-1.20.1-fabric-1.113.1.jar:?]
at org.squiddev.cobalt.function.ResumableVarArgFunction.invoke(ResumableVarArgFunction.java:34) ~[cc_tweaked_cobalt-0.9.3-525ae74d72e04a6f.jar:?]
at org.squiddev.cobalt.function.Dispatch.invokeImpl(Dispatch.java:175) ~[cc_tweaked_cobalt-0.9.3-525ae74d72e04a6f.jar:?]
at org.squiddev.cobalt.function.Dispatch.invoke(Dispatch.java:63) ~[cc_tweaked_cobalt-0.9.3-525ae74d72e04a6f.jar:?]
at org.squiddev.cobalt.function.Dispatch.invoke(Dispatch.java:58) ~[cc_tweaked_cobalt-0.9.3-525ae74d72e04a6f.jar:?]
at org.squiddev.cobalt.function.LuaInterpreter.execute(LuaInterpreter.java:454) ~[cc_tweaked_cobalt-0.9.3-525ae74d72e04a6f.jar:?]
at org.squiddev.cobalt.function.Dispatch.invokeImpl(Dispatch.java:166) ~[cc_tweaked_cobalt-0.9.3-525ae74d72e04a6f.jar:?]
at org.squiddev.cobalt.function.Dispatch.invoke(Dispatch.java:63) ~[cc_tweaked_cobalt-0.9.3-525ae74d72e04a6f.jar:?]
at org.squiddev.cobalt.function.Dispatch.invoke(Dispatch.java:58) ~[cc_tweaked_cobalt-0.9.3-525ae74d72e04a6f.jar:?]
at org.squiddev.cobalt.LuaThread.loop(LuaThread.java:320) ~[cc_tweaked_cobalt-0.9.3-525ae74d72e04a6f.jar:?]
at org.squiddev.cobalt.LuaThread.run(LuaThread.java:301) ~[cc_tweaked_cobalt-0.9.3-525ae74d72e04a6f.jar:?]
at org.squiddev.cobalt.LuaThread.run(LuaThread.java:297) ~[cc_tweaked_cobalt-0.9.3-525ae74d72e04a6f.jar:?]
at dan200.computercraft.core.lua.CobaltLuaMachine.handleEvent(CobaltLuaMachine.java:129) ~[cc-tweaked-1.20.1-fabric-1.113.1.jar:?]
at dan200.computercraft.core.computer.ComputerExecutor.resumeMachine(ComputerExecutor.java:557) ~[cc-tweaked-1.20.1-fabric-1.113.1.jar:?]
at dan200.computercraft.core.computer.ComputerExecutor.workImpl(ComputerExecutor.java:521) ~[cc-tweaked-1.20.1-fabric-1.113.1.jar:?]
at dan200.computercraft.core.computer.ComputerExecutor.work(ComputerExecutor.java:461) ~[cc-tweaked-1.20.1-fabric-1.113.1.jar:?]
at dan200.computercraft.core.computer.computerthread.ComputerThread$WorkerThread.runImpl(ComputerThread.java:660) ~[cc-tweaked-1.20.1-fabric-1.113.1.jar:?]
at dan200.computercraft.core.computer.computerthread.ComputerThread$WorkerThread.run(ComputerThread.java:614) ~[cc-tweaked-1.20.1-fabric-1.113.1.jar:?]
at java.lang.Thread.run(Thread.java:840) ~[?:?]