Lightman314 / LightmansCurrency

Lightman's Currency Minecraft Mod
Other
26 stars 16 forks source link

BUG: [Render thread/ERROR]: Error occurred while rendering wallet overlay! IWalletHandler #196

Closed Krimatoria closed 7 months ago

Krimatoria commented 7 months ago

Minecraft Version

1.19.2

Forge Version

Forge 43.3.5

Lightman's Currency Version

lightmanscurrency-1.19.2-2.2.0.3b.jar

Environment Type

Minecraft Client (Bug/crash happened in a single-player world or while the game was booting)

Other relevant Mods

No response

Describe the bug

Log Spam Again

To Reproduce

lightmanscurrency-1.19.2-2.2.0.3b.jar

Screenshots/Logs/Crash Reports

[17:54:34] [Render thread/ERROR]: Error occurred while rendering wallet overlay!

8132 | java.lang.NullPointerException: Cannot invoke "io.github.lightman314.lightmanscurrency.common.capability.wallet.IWalletHandler.getWallet()" because "walletHandler" is null 8133 | at io.github.lightman314.lightmanscurrency.client.gui.overlay.WalletDisplayOverlay.render(WalletDisplayOverlay.java:52) ~[lightmanscurrency-1.19.2-2.2.0.3b.jar%23593!/:1.19.2-2.2.0.3b] 8134 | at net.minecraftforge.client.gui.overlay.ForgeGui.lambda$render$0(ForgeGui.java:141) ~[forge-1.19.2-43.3.5-universal.jar%23724!/:?] 8135 | at net.minecraftforge.client.gui.overlay.ForgeGui.mda78bda$lambda$batching$0$0(ForgeGui.java:1265) ~[forge-1.19.2-43.3.5-universal.jar%23724!/:?] 8136 | at com.google.common.collect.ImmutableList.forEach(ImmutableList.java:422) ~[guava-31.0.1-jre.jar%23121!/:?] 8137 | at net.minecraftforge.client.gui.overlay.ForgeGui.redirect$dae000$batching(ForgeGui.java:1259) ~[forge-1.19.2-43.3.5-universal.jar%23724!/:?] 8138 | at net.minecraftforge.client.gui.overlay.ForgeGui.m93030(ForgeGui.java:136) ~[forge-1.19.2-43.3.5-universal.jar%23724!/:?] 8139 | at net.minecraft.client.renderer.GameRenderer.m109093(GameRenderer.java:876) ~[client-1.19.2-20220805.130853-srg.jar%23719!/:?] 8140 | at net.minecraft.client.Minecraft.m91383(Minecraft.java:1115) ~[client-1.19.2-20220805.130853-srg.jar%23719!/:?] 8141 | at net.minecraft.client.Minecraft.m91374(Minecraft.java:700) ~[client-1.19.2-20220805.130853-srg.jar%23719!/:?] 8142 | at net.minecraft.client.main.Main.m239872(Main.java:212) ~[client-1.19.2-20220805.130853-srg.jar%23719!/:?] 8143 | at net.minecraft.client.main.Main.main(Main.java:51) ~[client-1.19.2-20220805.130853-srg.jar%23719!/:?] 8144 | at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?] 8145 | at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:?] 8146 | at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:?] 8147 | at java.lang.reflect.Method.invoke(Unknown Source) ~[?:?] 8148 | at net.minecraftforge.fml.loading.targets.CommonClientLaunchHandler.lambda$launchService$0(CommonClientLaunchHandler.java:27) ~[fmlloader-1.19.2-43.3.5.jar%23101!/:?] 8149 | at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:30) [modlauncher-10.0.8.jar%2388!/:?] 8150 | at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:53) [modlauncher-10.0.8.jar%2388!/:?] 8151 | at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:71) [modlauncher-10.0.8.jar%2388!/:?] 8152 | at cpw.mods.modlauncher.Launcher.run(Launcher.java:106) [modlauncher-10.0.8.jar%2388!/:?] 8153 | at cpw.mods.modlauncher.Launcher.main(Launcher.java:77) [modlauncher-10.0.8.jar%2388!/:?] 8154 | at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26) [modlauncher-10.0.8.jar%2388!/:?] 8155 | at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23) [modlauncher-10.0.8.jar%2388!/:?] 8156 | at cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:141) [bootstraplauncher-1.1.2.jar:?]

Krimatoria commented 7 months ago

Sometimes the game crashes with an error, and according to the log timer, it is immediately after this error

[20:52:22] [Render thread/WARN]: Unable to play empty soundEvent: biomemusic:music.game [20:52:22] [Render thread/ERROR]: Error occurred while rendering wallet overlay! java.lang.NullPointerException: Cannot invoke "io.github.lightman314.lightmanscurrency.common.capability.wallet.IWalletHandler.getWallet()" because "walletHandler" is null at io.github.lightman314.lightmanscurrency.client.gui.overlay.WalletDisplayOverlay.render(WalletDisplayOverlay.java:52) ~[lightmanscurrency-1.19.2-2.2.0.3b.jar%23592!/:1.19.2-2.2.0.3b] at net.minecraftforge.client.gui.overlay.ForgeGui.lambda$render$0(ForgeGui.java:141) ~[forge-1.19.2-43.3.5-universal.jar%23722!/:?] at net.minecraftforge.client.gui.overlay.ForgeGui.md8ce5e4$lambda$batching$0$0(ForgeGui.java:1265) ~[forge-1.19.2-43.3.5-universal.jar%23722!/:?] at com.google.common.collect.ImmutableList.forEach(ImmutableList.java:422) ~[guava-31.0.1-jre.jar%23121!/:?] at net.minecraftforge.client.gui.overlay.ForgeGui.redirect$ddd000$batching(ForgeGui.java:1259) ~[forge-1.19.2-43.3.5-universal.jar%23722!/:?] at net.minecraftforge.client.gui.overlay.ForgeGui.m93030(ForgeGui.java:136) ~[forge-1.19.2-43.3.5-universal.jar%23722!/:?] at net.minecraft.client.renderer.GameRenderer.m109093(GameRenderer.java:876) ~[client-1.19.2-20220805.130853-srg.jar%23717!/:?] at net.minecraft.client.Minecraft.m91383(Minecraft.java:1115) ~[client-1.19.2-20220805.130853-srg.jar%23717!/:?] at net.minecraft.client.Minecraft.m91374(Minecraft.java:700) ~[client-1.19.2-20220805.130853-srg.jar%23717!/:?] at net.minecraft.client.main.Main.m239872(Main.java:212) ~[client-1.19.2-20220805.130853-srg.jar%23717!/:?] at net.minecraft.client.main.Main.main(Main.java:51) ~[client-1.19.2-20220805.130853-srg.jar%23717!/:?] at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?] at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:?] at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:?] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:?] at net.minecraftforge.fml.loading.targets.CommonClientLaunchHandler.lambda$launchService$0(CommonClientLaunchHandler.java:27) ~[fmlloader-1.19.2-43.3.5.jar%23101!/:?] at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:30) [modlauncher-10.0.8.jar%2388!/:?] at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:53) [modlauncher-10.0.8.jar%2388!/:?] at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:71) [modlauncher-10.0.8.jar%2388!/:?] at cpw.mods.modlauncher.Launcher.run(Launcher.java:106) [modlauncher-10.0.8.jar%2388!/:?] at cpw.mods.modlauncher.Launcher.main(Launcher.java:77) [modlauncher-10.0.8.jar%2388!/:?] at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26) [modlauncher-10.0.8.jar%2388!/:?] at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23) [modlauncher-10.0.8.jar%2388!/:?] at cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:141) [bootstraplauncher-1.1.2.jar:?] [20:52:23] [Render thread/WARN]: Received passengers for unknown entity [20:53:01] [Render thread/INFO]: Started editing 'endofherobrine-common.toml' [20:53:18] [Render thread/INFO]: [EMI] Disconnecting from server, EMI data cleared [20:53:18] [Render thread/INFO]: Unloading synced configs from server [20:53:18] [Thread-45/INFO]: [EMI] Clearing data [20:53:18] [Render thread/INFO]: JEI StartEventObserver received class net.minecraftforge.client.event.ClientPlayerNetworkEvent$LoggingOut [20:53:18] [Render thread/INFO]: JEI StartEventObserver transitioning state from JEI_STARTED to DISABLED [20:53:18] [Render thread/INFO]: Stopping JEI [20:53:18] [Render thread/INFO]: Sending Runtime Unavailable: jei:minecraft ... [20:53:18] [Render thread/INFO]: Sending Runtime Unavailable: jei:minecraft took 30.40 ?s [20:53:18] [Render thread/INFO]: Sending Runtime Unavailable: modernfix:capturer ... [20:53:18] [Render thread/INFO]: Sending Runtime Unavailable: modernfix:capturer took 5.600 ?s [20:53:18] [Render thread/INFO]: Sending Runtime Unavailable: apotheosis:village_module ... [20:53:18] [Render thread/INFO]: Sending Runtime Unavailable: apotheosis:village_module took 4.100 ?s [20:53:18] [Render thread/INFO]: Sending Runtime Unavailable: apotheosis:spawner ... [20:53:18] [Render thread/INFO]: Sending Runtime Unavailable: apotheosis:spawner took 4.100 ?s [20:53:18] [Render thread/INFO]: Sending Runtime Unavailable: apotheosis:potion ... [20:53:18] [Render thread/INFO]: Sending Runtime Unavailable: apotheosis:potion took 4.000 ?s [20:53:18] [Render thread/INFO]: Sending Runtime Unavailable: apotheosis:garden ... [20:53:18] [Render thread/INFO]: Sending Runtime Unavailable: apotheosis:garden took 3.801 ?s [20:53:18] [Render thread/INFO]: Sending Runtime Unavailable: apotheosis:enchantment ... [20:53:18] [Render thread/INFO]: Sending Runtime Unavailable: apotheosis:enchantment took 4.001 ?s [20:53:18] [Render thread/INFO]: Sending Runtime Unavailable: apotheosis:adventure_module ... [20:53:18] [Render thread/INFO]: Sending Runtime Unavailable: apotheosis:adventure_module took 4.199 ?s [20:53:18] [Render thread/INFO]: Sending Runtime Unavailable: hordes:infection ... [20:53:18] [Render thread/INFO]: Sending Runtime Unavailable: hordes:infection took 4.100 ?s [20:53:18] [Render thread/INFO]: Sending Runtime Unavailable: minecraft:jeresources ... [20:53:18] [Render thread/INFO]: Sending Runtime Unavailable: minecraft:jeresources took 4.100 ?s [20:53:18] [Render thread/INFO]: Sending Runtime Unavailable: exposure:jei_plugin ... [20:53:18] [Render thread/INFO]: Sending Runtime Unavailable: exposure:jei_plugin took 3.701 ?s [20:53:18] [Render thread/INFO]: Sending Runtime Unavailable: corpse:corpse ... [20:53:18] [Render thread/INFO]: Sending Runtime Unavailable: corpse:corpse took 4.900 ?s [20:53:18] [Render thread/INFO]: Sending Runtime Unavailable: toms_storage:jei ... [20:53:18] [Render thread/INFO]: Sending Runtime Unavailable: toms_storage:jei took 3.900 ?s [20:53:18] [Render thread/INFO]: Sending Runtime Unavailable: visualworkbench:crafting ... [20:53:18] [Render thread/INFO]: Sending Runtime Unavailable: visualworkbench:crafting took 8.201 ?s [20:53:18] [Render thread/INFO]: Sending Runtime Unavailable: lightmanscurrency:lightmanscurrency ... [20:53:18] [Render thread/INFO]: Sending Runtime Unavailable: lightmanscurrency:lightmanscurrency took 4.101 ?s [20:53:18] [Render thread/INFO]: Sending Runtime Unavailable: sons_of_sins:jei_plugin ... [20:53:18] [Render thread/INFO]: Sending Runtime Unavailable: sons_of_sins:jei_plugin took 4.201 ?s [20:53:18] [Render thread/INFO]: Sending Runtime Unavailable: sons_of_sins:brewing_recipes ... [20:53:18] [Render thread/INFO]: Sending Runtime Unavailable: sons_of_sins:brewing_recipes took 4.299 ?s [20:53:18] [Render thread/INFO]: Sending Runtime Unavailable: emi:jemi ... [20:53:18] [Render thread/INFO]: Sending Runtime Unavailable: emi:jemi took 5.400 ?s [20:53:18] [Render thread/INFO]: Sending Runtime Unavailable: justenoughprofessions:jei_plugin ... [20:53:18] [Render thread/INFO]: Sending Runtime Unavailable: justenoughprofessions:jei_plugin took 3.700 ?s [20:53:18] [Render thread/INFO]: Sending Runtime Unavailable: hexerei:jei_plugin ... [20:53:18] [Render thread/INFO]: Sending Runtime Unavailable: hexerei:jei_plugin took 3.801 ?s [20:53:18] [Render thread/INFO]: Sending Runtime Unavailable: aether:jei ... [20:53:18] [Render thread/INFO]: Sending Runtime Unavailable: aether:jei took 3.799 ?s [20:53:18] [Render thread/INFO]: Sending Runtime Unavailable: sophisticatedcore:default ... [20:53:18] [Render thread/INFO]: Sending Runtime Unavailable: sophisticatedcore:default took 4.100 ?s [20:53:18] [Render thread/INFO]: Sending Runtime Unavailable: sophisticatedbackpacks:default ... [20:53:18] [Render thread/INFO]: Sending Runtime Unavailable: sophisticatedbackpacks:default took 3.900 ?s [20:53:18] [Render thread/INFO]: Sending Runtime Unavailable: farmersdelight:jei_plugin ... [20:53:18] [Render thread/INFO]: Sending Runtime Unavailable: farmersdelight:jei_plugin took 3.901 ?s [20:53:18] [Render thread/INFO]: Sending Runtime Unavailable: cataclysm:jei_plugin ... [20:53:18] [Render thread/INFO]: Sending Runtime Unavailable: cataclysm:jei_plugin took 3.700 ?s [20:53:18] [Render thread/INFO]: Sending Runtime Unavailable: patchouli:patchouli ... [20:53:18] [Render thread/INFO]: Sending Runtime Unavailable: patchouli:patchouli took 3.700 ?s [20:53:18] [Render thread/INFO]: Sending Runtime Unavailable: curios:curios ... [20:53:18] [Render thread/INFO]: Sending Runtime Unavailable: curios:curios took 4.101 ?s [20:53:18] [Render thread/INFO]: Sending Runtime Unavailable: ftblibrary:jei ... [20:53:18] [Render thread/INFO]: Sending Runtime Unavailable: ftblibrary:jei took 3.900 ?s [20:53:18] [Render thread/INFO]: Sending Runtime Unavailable: biomancy:plugin ... [20:53:18] [Render thread/INFO]: Sending Runtime Unavailable: biomancy:plugin took 3.700 ?s [20:53:18] [Render thread/INFO]: Sending Runtime Unavailable: jei:gui ... [20:53:18] [Render thread/INFO]: Sending Runtime Unavailable: jei:gui took 3.900 ?s [20:53:18] [Render thread/INFO]: Sending Runtime Unavailable: jei:debug ... [20:53:18] [Render thread/INFO]: Sending Runtime Unavailable: jei:debug took 4.100 ?s [20:53:18] [Render thread/INFO]: Sending Runtime Unavailable: jei:forge_gui ... [20:53:18] [Render thread/INFO]: Stopping JEI GUI [20:53:18] [Render thread/INFO]: Sending Runtime Unavailable: jei:forge_gui took 925.7 ?s [20:53:18] [Render thread/INFO]: Sending Runtime Unavailable: kubejs:jei ... [20:53:18] [Render thread/INFO]: Sending Runtime Unavailable: kubejs:jei took 4.400 ?s [20:53:18] [Render thread/INFO]: Sending Runtime Unavailable: trashslot:trashslot ... [20:53:18] [Render thread/INFO]: Sending Runtime Unavailable: trashslot:trashslot took 4.200 ?s [20:53:18] [Render thread/INFO]: Sending Runtime Unavailable: ftbxmodcompat:ftbquests_jei ... [20:53:18] [Render thread/INFO]: Sending Runtime Unavailable: ftbxmodcompat:ftbquests_jei took 3.701 ?s [20:53:18] [Render thread/INFO]: Sending Runtime Unavailable: map_atlases:jei_plugin ... [20:53:18] [Render thread/INFO]: Sending Runtime Unavailable: map_atlases:jei_plugin took 3.601 ?s [20:53:18] [Render thread/INFO]: Sending Runtime Unavailable: waystones:jei ... [20:53:18] [Render thread/INFO]: Sending Runtime Unavailable: waystones:jei took 4.000 ?s [20:53:18] [Render thread/INFO]: Sending Runtime Unavailable: jeimultiblocks:plugin ... [20:53:18] [Render thread/INFO]: Sending Runtime Unavailable: jeimultiblocks:plugin took 3.799 ?s [20:53:18] [Render thread/INFO]: Sending Runtime Unavailable: immersiveengineering:main ... [20:53:18] [Render thread/INFO]: Sending Runtime Unavailable: immersiveengineering:main took 3.699 ?s [20:53:18] [Render thread/INFO]: Sending Runtime Unavailable: jade:main ... [20:53:18] [Render thread/INFO]: Sending Runtime Unavailable: jade:main took 3.800 ?s [20:53:18] [Render thread/INFO]: Sending Runtime Unavailable: quark:quark ... [20:53:18] [Render thread/INFO]: Sending Runtime Unavailable: quark:quark took 3.601 ?s [20:53:18] [Render thread/INFO]: Sending Runtime Unavailable: supplementaries:jei_plugin ... [20:53:18] [Render thread/INFO]: Sending Runtime Unavailable: supplementaries:jei_plugin took 3.700 ?s [20:53:18] [Render thread/INFO]: Sending Runtime Unavailable: fantasyfurniture:jei_integration ... [20:53:18] [Render thread/INFO]: Sending Runtime Unavailable: fantasyfurniture:jei_integration took 3.500 ?s [20:53:18] [Render thread/INFO]: Sending Runtime Unavailable: drinkbeer:jei_plugin ... [20:53:18] [Render thread/INFO]: Sending Runtime Unavailable: drinkbeer:jei_plugin took 5.500 ?s [20:53:18] [Render thread/INFO]: Sending Runtime Unavailable: jei:internal ... [20:53:18] [Render thread/INFO]: Sending Runtime Unavailable: jei:internal took 4.200 ?s [20:53:18] [JEI Library Config file watcher/INFO]: FileWatcher was interrupted, stopping. [20:53:18] [Render thread/INFO]: Stopped editing 'endofherobrine-common.toml' [20:53:18] [Render thread/INFO]: Stopping worker threads

Lightman314 commented 7 months ago

Fixed in v2.2.0.3c. Thank you for reporting!

Krimatoria commented 7 months ago

Исправлено в версии 2.2.0.3c. Спасибо за отчет!

Nice)))