MixinBootstrap

MixinBootstrap

15M Downloads

NullPointerException

Craft1s opened this issue ยท 10 comments

commented

Environment

Issue Description
The log attached here is from my server because I suspected that the problem is in the server side. I'm fine playing my pack in single player mode but in my server I can login, interact things for a little while but after some seconds my game freezes then disconnects. And when I checked my mc's directory, the crash log is flooded by at least 100+ NullPointerException crash.txt(s) captured by VanillaFix and cause by unknown mod. I posted this issue here because I read some articles that this is caused by multiple mods(VanillaFix, Texfix, Phosphor, Performant, etc.) loading mixin, which creates a mod clash.

https://mclo.gs/RSNzuvg

commented

Mixin cause so many issues and compat. issues...

commented

I'll add the latest.log too.
debug.log
latest.log

commented

There are "Out of Memory" errors all over the place, You need to allocate more ram to your Minecraft Client, I can see you've only allocation 1 GB which is definitely not enough for Modded Minecraft.

commented

Can you please upload your clients debug.log.

commented

If you wish to receive more help, activate your windows. Alternatively, install Linux.

commented

Well, I'm not getting "Out of Memory" errors when I'm in single player unless I crank up the render distance to high and fly around very fast. And when I read the log, the error only appeared during the journey maps's minimap loading which I also noticed that the minimap disappears after some seconds of playing in the server.
[10:53:22] [Client thread/WARN] [journeymap]: TileDrawStep.updateRegionTexture is already running, cancelling first
[10:53:22] [Client thread/ERROR] [net.minecraft.client.Minecraft]: ########## GL ERROR ##########
[10:53:22] [Client thread/ERROR] [net.minecraft.client.Minecraft]: @ Post render
[10:53:22] [Client thread/ERROR] [net.minecraft.client.Minecraft]: 1285: Out of memory
[10:53:22] [Client thread/WARN] [journeymap]: TileDrawStep.updateRegionTexture is already running, cancelling first
[10:53:22] [Client thread/ERROR] [net.minecraft.client.Minecraft]: ########## GL ERROR ##########
[10:53:22] [Client thread/ERROR] [net.minecraft.client.Minecraft]: @ Post render
[10:53:22] [Client thread/ERROR] [net.minecraft.client.Minecraft]: 1285: Out of memory
[10:53:22] [Client thread/WARN] [journeymap]: TileDrawStep.updateRegionTexture is already running, cancelling first
[10:53:22] [Client thread/ERROR] [net.minecraft.client.Minecraft]: ########## GL ERROR ##########
[10:53:22] [Client thread/ERROR] [net.minecraft.client.Minecraft]: @ Post render
[10:53:22] [Client thread/ERROR] [net.minecraft.client.Minecraft]: 1285: Out of memory
[10:53:22] [Client thread/WARN] [journeymap]: TileDrawStep.updateRegionTexture is already running, cancelling first
[10:53:22] [Client thread/ERROR] [net.minecraft.client.Minecraft]: ########## GL ERROR ##########
[10:53:22] [Client thread/ERROR] [net.minecraft.client.Minecraft]: @ Post render
[10:53:22] [Client thread/ERROR] [net.minecraft.client.Minecraft]: 1285: Out of memory
[10:53:22] [Client thread/WARN] [journeymap]: TileDrawStep.updateRegionTexture is already running, cancelling first
[10:53:22] [Client thread/ERROR] [net.minecraft.client.Minecraft]: ########## GL ERROR ##########
[10:53:22] [Client thread/ERROR] [net.minecraft.client.Minecraft]: @ Post render
[10:53:22] [Client thread/ERROR] [net.minecraft.client.Minecraft]: 1285: Out of memory
[10:53:22] [Client thread/WARN] [journeymap]: TileDrawStep.updateRegionTexture is already running, cancelling first
[10:53:22] [Client thread/ERROR] [net.minecraft.client.Minecraft]: ########## GL ERROR ##########
[10:53:22] [Client thread/ERROR] [net.minecraft.client.Minecraft]: @ Post render
[10:53:22] [Client thread/ERROR] [net.minecraft.client.Minecraft]: 1285: Out of memory
[10:53:22] [Client thread/WARN] [journeymap]: TileDrawStep.updateRegionTexture is already running, cancelling first
[10:53:22] [Client thread/ERROR] [net.minecraft.client.Minecraft]: ########## GL ERROR ##########
[10:53:22] [Client thread/ERROR] [net.minecraft.client.Minecraft]: @ Post render
[10:53:22] [Client thread/ERROR] [net.minecraft.client.Minecraft]: 1285: Out of memory
[10:53:22] [Client thread/WARN] [journeymap]: TileDrawStep.updateRegionTexture is already running, cancelling first
[10:53:22] [Client thread/ERROR] [net.minecraft.client.Minecraft]: ########## GL ERROR ##########
[10:53:22] [Client thread/ERROR] [net.minecraft.client.Minecraft]: @ Post render
[10:53:22] [Client thread/ERROR] [net.minecraft.client.Minecraft]: 1285: Out of memory
[10:53:22] [Client thread/WARN] [journeymap]: TileDrawStep.updateRegionTexture is already running, cancelling first
[10:53:22] [Client thread/ERROR] [net.minecraft.client.Minecraft]: ########## GL ERROR ##########
[10:53:22] [Client thread/ERROR] [net.minecraft.client.Minecraft]: @ Post render
[10:53:22] [Client thread/ERROR] [net.minecraft.client.Minecraft]: 1285: Out of memory
[10:53:23] [Client thread/WARN] [journeymap]: TileDrawStep.updateRegionTexture is already running, cancelling first
[10:53:23] [Client thread/ERROR] [net.minecraft.client.Minecraft]: ########## GL ERROR ##########
[10:53:23] [Client thread/ERROR] [net.minecraft.client.Minecraft]: @ Post render
[10:53:23] [Client thread/ERROR] [net.minecraft.client.Minecraft]: 1285: Out of memory
[10:53:23] [Client thread/WARN] [journeymap]: TileDrawStep.updateRegionTexture is already running, cancelling first
[10:53:23] [Client thread/ERROR] [net.minecraft.client.Minecraft]: ########## GL ERROR ##########
[10:53:23] [Client thread/ERROR] [net.minecraft.client.Minecraft]: @ Post render
[10:53:23] [Client thread/ERROR] [net.minecraft.client.Minecraft]: 1285: Out of memory
[10:53:23] [Client thread/WARN] [journeymap]: TileDrawStep.updateRegionTexture is already running, cancelling first
[10:53:23] [Client thread/ERROR] [net.minecraft.client.Minecraft]: ########## GL ERROR ##########
[10:53:23] [Client thread/ERROR] [net.minecraft.client.Minecraft]: @ Post render
[10:53:23] [Client thread/ERROR] [net.minecraft.client.Minecraft]: 1285: Out of memory
[10:53:23] [Client thread/WARN] [journeymap]: TileDrawStep.updateRegionTexture is already running, cancelling first
[10:53:23] [Client thread/ERROR] [net.minecraft.client.Minecraft]: ########## GL ERROR ##########
[10:53:23] [Client thread/ERROR] [net.minecraft.client.Minecraft]: @ Post render
[10:53:23] [Client thread/ERROR] [net.minecraft.client.Minecraft]: 1285: Out of memory
[10:53:23] [Client thread/WARN] [journeymap]: TileDrawStep.updateRegionTexture is already running, cancelling first
[10:53:23] [Client thread/ERROR] [net.minecraft.client.Minecraft]: ########## GL ERROR ##########
[10:53:23] [Client thread/ERROR] [net.minecraft.client.Minecraft]: @ Post render
[10:53:23] [Client thread/ERROR] [net.minecraft.client.Minecraft]: 1285: Out of memory
And after a minute of playing, the client freezes because VanillaFix captures a ton of NullPointerException errors with no known cause. I cannot attach a crash file here because I already cleared the crash logs but I will try to replicate the error and attach the crash log here. And as far I've read the crash logs, I can't really tell that the problem is memory 'cause the client only uses 400-470MB of memory out of 888MB max 1011MB.

commented
[10:53:31] [Client thread/ERROR] [journeymap]: Error in JourneyMap.performMainThreadTasks(): java.lang.OutOfMemoryError
	at sun.misc.Unsafe.allocateMemory(Native Method)
	at java.nio.DirectByteBuffer.<init>(Unknown Source)
	at java.nio.ByteBuffer.allocateDirect(Unknown Source)
	at journeymap.client.render.texture.TextureImpl.setImage(TextureImpl.java:126)
	at journeymap.client.render.texture.TextureImpl.<init>(TextureImpl.java:90)
	at journeymap.client.render.texture.RegionTextureImpl.<init>(RegionTextureImpl.java:26)
	at journeymap.client.model.ImageHolder.getTexture(ImageHolder.java:161)
	at journeymap.client.model.ImageHolder.<init>(ImageHolder.java:53)
	at journeymap.client.model.ImageSet.addHolder(ImageSet.java:155)
	at journeymap.client.model.RegionImageSet.getHolder(RegionImageSet.java:42)
	at journeymap.client.render.map.TileDrawStep.getRegionTextureHolder(TileDrawStep.java:94)
	at journeymap.client.render.map.TileDrawStep.updateRegionTexture(TileDrawStep.java:286)
	at journeymap.client.render.map.TileDrawStep.<init>(TileDrawStep.java:80)
	at journeymap.client.render.map.TileDrawStepCache._getOrCreate(TileDrawStepCache.java:88)
	at journeymap.client.render.map.TileDrawStepCache.getOrCreate(TileDrawStepCache.java:57)
	at journeymap.client.io.RegionImageHandler.getTileDrawSteps(RegionImageHandler.java:362)
	at journeymap.client.render.map.Tile.updateTexture(Tile.java:125)
	at journeymap.client.render.map.Tile.create(Tile.java:67)
	at journeymap.client.render.map.GridRenderer.findTile(GridRenderer.java:711)
	at journeymap.client.render.map.GridRenderer.center(GridRenderer.java:239)
	at journeymap.client.ui.minimap.MiniMap.initGridRenderer(MiniMap.java:133)
	at journeymap.client.ui.minimap.MiniMap.reset(MiniMap.java:665)
	at journeymap.client.JourneymapClient.reset(JourneymapClient.java:619)
	at journeymap.client.JourneymapClient.startMapping(JourneymapClient.java:525)
	at journeymap.client.task.main.MappingMonitorTask.perform(MappingMonitorTask.java:72)
	at journeymap.client.task.main.MainTaskController.performTasks(MainTaskController.java:84)
	at journeymap.client.JourneymapClient.performMainThreadTasks(JourneymapClient.java:639)
	at journeymap.client.forge.event.StateTickHandler.onClientTick(StateTickHandler.java:73)
	at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_557_StateTickHandler_onClientTick_ClientTickEvent.invoke(.dynamic)
	at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90)
	at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182)
	at net.minecraftforge.fml.common.FMLCommonHandler.onPreClientTick(FMLCommonHandler.java:344)
	at net.minecraft.client.Minecraft.func_71407_l(Minecraft.java:1708)
	at net.minecraft.client.Minecraft.func_71411_J(Minecraft.java:1098)
	at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:3942)
	at net.minecraft.client.main.Main.main(SourceFile:123)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
	at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

Journey map couldn't allocate a block of memory and throws an OutOfMemoryError.
Prior to that:

[10:53:31] [Client thread/ERROR] [net.minecraft.client.Minecraft]: ########## GL ERROR ##########
[10:53:31] [Client thread/ERROR] [net.minecraft.client.Minecraft]: @ Post render
[10:53:31] [Client thread/ERROR] [net.minecraft.client.Minecraft]: 1285: Out of memory

OpenGL throws Out Of Memory errors.
2 Things are happening here, firstly you are running out of video memory, secondly you are running out of system memory. Due to the fact that you are running integrated graphics and 32 bit windows, i recomend upgrading to a 64bit operating system, and allocate more memory to your minecraft instance.

Regardless, this is not a MixinBootstrap issue.

commented

What covers said.

commented

OK, i'll do your advice.

commented

I replicated the error and I also checked my system.
crash-2020-09-08_13.44.52-client.txt
crash-2020-09-08_13.44.57-client.txt

system
memory