Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[1.21.1][Neoforge 21.1.68][19.0.23-beta] Guide Crashes Client #8228

Open
jaeggr opened this issue Oct 26, 2024 · 1 comment
Open

[1.21.1][Neoforge 21.1.68][19.0.23-beta] Guide Crashes Client #8228

jaeggr opened this issue Oct 26, 2024 · 1 comment
Labels
bug Self explanatory?

Comments

@jaeggr
Copy link

jaeggr commented Oct 26, 2024

Describe the bug

Opening the guidebook for more than a minute will eventually crash the client - timing and page seems to be random. There's no crash-log, but there is a rendering error in the debug.log.

debug.log
[26Oct2024 15:26:03.996] [Render thread/WARN] [oshi.util.platform.windows.WmiQueryHandler/]: COM exception querying Win32_Processor, which might not be on your system. Will not attempt to query it again. Error was -2147024882: Not enough memory resources are available to complete this operation.(HRESULT: 8007000e)
[26Oct2024 15:26:04.001] [Render thread/WARN] [oshi.util.platform.windows.WmiQueryHandler/]: COM exception querying Win32_Processor, which might not be on your system. Will not attempt to query it again. Error was -2147217402: (HRESULT: 80041006)
[26Oct2024 15:26:04.003] [Render thread/DEBUG] [oshi.util.FileUtil/]: No oshi.architecture.properties file found from ClassLoader cpw.mods.modlauncher.TransformingClassLoader@3cb04dd
[26Oct2024 15:26:04.007] [Render thread/WARN] [oshi.util.platform.windows.WmiQueryHandler/]: COM exception querying Win32_PhysicalMemory, which might not be on your system. Will not attempt to query it again. Error was -2147217402: (HRESULT: 80041006)
[26Oct2024 15:26:04.020] [Render thread/ERROR] [net.minecraft.client.Minecraft/FATAL]: Reported exception thrown!
net.minecraft.ReportedException: Rendering screen
	at TRANSFORMER/[email protected]/net.minecraft.client.renderer.GameRenderer.render(GameRenderer.java:1120) ~[client-1.21.1-20240808.144430-srg.jar%23538!/:?]
	at TRANSFORMER/[email protected]/net.minecraft.client.Minecraft.runTick(Minecraft.java:1195) ~[client-1.21.1-20240808.144430-srg.jar%23538!/:?]
	at TRANSFORMER/[email protected]/net.minecraft.client.Minecraft.run(Minecraft.java:807) ~[client-1.21.1-20240808.144430-srg.jar%23538!/:?]
	at TRANSFORMER/[email protected]/net.minecraft.client.main.Main.main(Main.java:230) ~[client-1.21.1-20240808.144430-srg.jar%23538!/:?]
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) ~[?:?]
	at java.base/java.lang.reflect.Method.invoke(Method.java:580) ~[?:?]
	at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.loading.targets.CommonLaunchHandler.runTarget(CommonLaunchHandler.java:136) ~[loader-4.0.24.jar%23130!/:4.0]
	at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.loading.targets.CommonLaunchHandler.clientService(CommonLaunchHandler.java:124) ~[loader-4.0.24.jar%23130!/:4.0]
	at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.loading.targets.CommonClientLaunchHandler.runService(CommonClientLaunchHandler.java:32) ~[loader-4.0.24.jar%23130!/:4.0]
	at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.loading.targets.CommonLaunchHandler.lambda$launchService$4(CommonLaunchHandler.java:118) ~[loader-4.0.24.jar%23130!/:4.0]
	at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:30) [modlauncher-11.0.4.jar%23103!/:?]
	at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:53) [modlauncher-11.0.4.jar%23103!/:?]
	at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:71) [modlauncher-11.0.4.jar%23103!/:?]
	at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.Launcher.run(Launcher.java:103) [modlauncher-11.0.4.jar%23103!/:?]
	at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.Launcher.main(Launcher.java:74) [modlauncher-11.0.4.jar%23103!/:?]
	at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26) [modlauncher-11.0.4.jar%23103!/:?]
	at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23) [modlauncher-11.0.4.jar%23103!/:?]
	at [email protected]/cpw.mods.bootstraplauncher.BootstrapLauncher.run(BootstrapLauncher.java:210) [bootstraplauncher-2.0.2.jar:?]
	at [email protected]/cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:69) [bootstraplauncher-2.0.2.jar:?]
Caused by: java.lang.OutOfMemoryError: Failed to resize buffer from 262144 bytes to 524288 bytes
	at TRANSFORMER/[email protected]/com.mojang.blaze3d.vertex.ByteBufferBuilder.resize(ByteBufferBuilder.java:55) ~[client-1.21.1-20240808.144430-srg.jar%23538!/:?]
	at TRANSFORMER/[email protected]/com.mojang.blaze3d.vertex.ByteBufferBuilder.ensureCapacity(ByteBufferBuilder.java:47) ~[client-1.21.1-20240808.144430-srg.jar%23538!/:?]
	at TRANSFORMER/[email protected]/com.mojang.blaze3d.vertex.ByteBufferBuilder.reserve(ByteBufferBuilder.java:38) ~[client-1.21.1-20240808.144430-srg.jar%23538!/:?]
	at TRANSFORMER/[email protected]/com.mojang.blaze3d.vertex.MeshData$SortState.buildSortedIndexBuffer(MeshData.java:91) ~[client-1.21.1-20240808.144430-srg.jar%23538!/:?]
	at TRANSFORMER/[email protected]/com.mojang.blaze3d.vertex.MeshData.sortQuads(MeshData.java:71) ~[client-1.21.1-20240808.144430-srg.jar%23538!/:?]
	at TRANSFORMER/[email protected]/net.minecraft.client.renderer.MultiBufferSource$BufferSource.endBatch(MultiBufferSource.java:94) ~[client-1.21.1-20240808.144430-srg.jar%23538!/:?]
	at TRANSFORMER/[email protected]/net.minecraft.client.renderer.MultiBufferSource$BufferSource.endBatch(MultiBufferSource.java:85) ~[client-1.21.1-20240808.144430-srg.jar%23538!/:?]
	at TRANSFORMER/[email protected]/net.minecraft.client.renderer.MultiBufferSource$BufferSource.getBuffer(MultiBufferSource.java:56) ~[client-1.21.1-20240808.144430-srg.jar%23538!/:?]
	at TRANSFORMER/[email protected]/net.minecraft.client.gui.Font$StringRenderOutput.accept(Font.java:413) ~[client-1.21.1-20240808.144430-srg.jar%23538!/:?]
	at TRANSFORMER/[email protected]/net.minecraft.util.StringDecomposer.feedChar(StringDecomposer.java:17) ~[client-1.21.1-20240808.144430-srg.jar%23538!/:?]
	at TRANSFORMER/[email protected]/net.minecraft.util.StringDecomposer.iterate(StringDecomposer.java:43) ~[client-1.21.1-20240808.144430-srg.jar%23538!/:?]
	at TRANSFORMER/[email protected]/net.minecraft.util.FormattedCharSequence.lambda$forward$2(FormattedCharSequence.java:23) ~[client-1.21.1-20240808.144430-srg.jar%23538!/:?]
	at TRANSFORMER/[email protected]/net.minecraft.client.gui.Font.renderText(Font.java:261) ~[client-1.21.1-20240808.144430-srg.jar%23538!/:?]
	at TRANSFORMER/[email protected]/net.minecraft.client.gui.Font.drawInternal(Font.java:223) ~[client-1.21.1-20240808.144430-srg.jar%23538!/:?]
	at TRANSFORMER/[email protected]/net.minecraft.client.gui.Font.drawInBatch(Font.java:128) ~[client-1.21.1-20240808.144430-srg.jar%23538!/:?]
	at TRANSFORMER/[email protected]/net.minecraft.client.gui.Font.drawInBatch(Font.java:111) ~[client-1.21.1-20240808.144430-srg.jar%23538!/:?]
	at TRANSFORMER/[email protected]/appeng.client.guidebook.render.RenderContext.renderTextInBatch(RenderContext.java:168) ~[appliedenergistics2-19.0.23-beta.jar%23569!/:?]
	at TRANSFORMER/[email protected]/appeng.client.guidebook.layout.flow.LineTextRun.renderBatch(LineTextRun.java:23) ~[appliedenergistics2-19.0.23-beta.jar%23569!/:?]
	at TRANSFORMER/[email protected]/appeng.client.guidebook.layout.flow.FlowBuilder.renderBatch(FlowBuilder.java:48) ~[appliedenergistics2-19.0.23-beta.jar%23569!/:?]
	at TRANSFORMER/[email protected]/appeng.client.guidebook.document.block.LytParagraph.renderBatch(LytParagraph.java:92) ~[appliedenergistics2-19.0.23-beta.jar%23569!/:?]
	at TRANSFORMER/[email protected]/appeng.client.guidebook.document.block.LytDocument.renderBatch(LytDocument.java:119) ~[appliedenergistics2-19.0.23-beta.jar%23569!/:?]
	at TRANSFORMER/[email protected]/appeng.client.guidebook.screen.GuideScreen.render(GuideScreen.java:243) ~[appliedenergistics2-19.0.23-beta.jar%23569!/:?]
	at TRANSFORMER/[email protected]/net.minecraft.client.gui.screens.Screen.renderWithTooltip(Screen.java:112) ~[client-1.21.1-20240808.144430-srg.jar%23538!/:?]
	at TRANSFORMER/[email protected]/net.neoforged.neoforge.client.ClientHooks.drawScreenInternal(ClientHooks.java:428) ~[neoforge-21.1.68-universal.jar%23539!/:?]
	at TRANSFORMER/[email protected]/net.neoforged.neoforge.client.ClientHooks.drawScreen(ClientHooks.java:422) ~[neoforge-21.1.68-universal.jar%23539!/:?]
	at TRANSFORMER/[email protected]/net.minecraft.client.renderer.GameRenderer.render(GameRenderer.java:1092) ~[client-1.21.1-20240808.144430-srg.jar%23538!/:?]
	... 18 more

How to reproduce the bug

Browse the guidebook. The exact page is and timing is random.

Expected behavior

Client doesn't crash

Additional details

System details:
Ryzen 9 7950X
Radeon 7900XTX
Windows 11
8GB java memory out of 32GB RAM

Which minecraft version are you using?

1.21

On which mod loaders does it happen?

NeoForge

Crash log

https://pastebin.com/UER0sQCq

@jaeggr jaeggr added the bug Self explanatory? label Oct 26, 2024
@shartte
Copy link
Member

shartte commented Oct 26, 2024

Interesting, that would sound like a leak, yes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Self explanatory?
Projects
None yet
Development

No branches or pull requests

2 participants