BetterLoadingScreen icon indicating copy to clipboard operation
BetterLoadingScreen copied to clipboard

Minecraft 1.18.2 - Flywheel GPU instancing incompatibility

Open tt-thoma opened this issue 1 year ago • 3 comments

I had this problem recently. When loading up to phase 8, the game freezes and crashes:

[26Apr2023 14:20:53.340] [Render thread/INFO] [me.shedaniel.betterloadingscreen.launch.EarlyWindow/]: Moving render out
[26Apr2023 14:20:53.341] [Render thread/INFO] [me.shedaniel.betterloadingscreen.launch.EarlyWindow/]: Acquired lock for render out
[26Apr2023 14:20:53.343] [Thread-1/INFO] [me.shedaniel.betterloadingscreen.forge.BetterLoadingScreenForgeMessageHandler/]: Processing work FREEZE_DATA
[26Apr2023 14:20:53.343] [Early Visualization/INFO] [me.shedaniel.betterloadingscreen.launch.EarlyWindow/]: Set render to true
[26Apr2023 14:20:53.434] [Early Visualization/INFO] [com.mojang.blaze3d.platform.GlDebug/]: OpenGL debug message: id=1281, source=API, type=ERROR, severity=HIGH, message='GL_INVALID_VALUE error generated. Invalid offset and/or size.'
[26Apr2023 14:20:53.435] [Early Visualization/INFO] [com.mojang.blaze3d.platform.GlDebug/]: OpenGL debug message: id=1281, source=API, type=ERROR, severity=HIGH, message='GL_INVALID_VALUE error generated. Invalid offset and/or size.'
[26Apr2023 14:20:53.436] [Early Visualization/INFO] [com.mojang.blaze3d.platform.GlDebug/]: OpenGL debug message: id=0, source=API, type=ERROR, severity=HIGH, message='Unknown internal debug message. The NVIDIA OpenGL driver has encountered
an out of memory error. This application might
behave inconsistently and fail.
(pid=38976 javaw.exe 64bit)'
[26Apr2023 14:20:53.436] [Early Visualization/INFO] [com.mojang.blaze3d.platform.GlDebug/]: OpenGL debug message: id=1285, source=API, type=ERROR, severity=HIGH, message='GL_OUT_OF_MEMORY error generated. Failed to allocate memory for buffer object.'
[26Apr2023 14:20:53.437] [Early Visualization/INFO] [com.mojang.blaze3d.platform.GlDebug/]: OpenGL debug message: id=0, source=API, type=ERROR, severity=HIGH, message='Unknown internal debug message. The NVIDIA OpenGL driver has encountered
an out of memory error. This application might
behave inconsistently and fail.
(pid=38976 javaw.exe 64bit)'
[26Apr2023 14:20:53.437] [Early Visualization/INFO] [com.mojang.blaze3d.platform.GlDebug/]: OpenGL debug message: id=1285, source=API, type=ERROR, severity=HIGH, message='GL_OUT_OF_MEMORY error generated. Failed to map memory for buffer.'
[26Apr2023 14:20:53.484] [Early Visualization/INFO] [com.mojang.blaze3d.platform.GlDebug/]: OpenGL debug message: id=1281, source=API, type=ERROR, severity=HIGH, message='GL_INVALID_VALUE error generated. Invalid offset and/or size.'
[26Apr2023 14:20:53.484] [Early Visualization/INFO] [com.mojang.blaze3d.platform.GlDebug/]: OpenGL debug message: id=1281, source=API, type=ERROR, severity=HIGH, message='GL_INVALID_VALUE error generated. Invalid offset and/or size.'
[26Apr2023 14:20:53.485] [Early Visualization/INFO] [com.mojang.blaze3d.platform.GlDebug/]: OpenGL debug message: id=0, source=API, type=ERROR, severity=HIGH, message='Unknown internal debug message. The NVIDIA OpenGL driver has encountered
an out of memory error. This application might
behave inconsistently and fail.
(pid=38976 javaw.exe 64bit)'
[26Apr2023 14:20:53.485] [Early Visualization/INFO] [com.mojang.blaze3d.platform.GlDebug/]: OpenGL debug message: id=1285, source=API, type=ERROR, severity=HIGH, message='GL_OUT_OF_MEMORY error generated. Failed to allocate memory for buffer object.'
[26Apr2023 14:20:53.485] [Early Visualization/INFO] [com.mojang.blaze3d.platform.GlDebug/]: OpenGL debug message: id=0, source=API, type=ERROR, severity=HIGH, message='Unknown internal debug message. The NVIDIA OpenGL driver has encountered
an out of memory error. This application might
behave inconsistently and fail.
(pid=38976 javaw.exe 64bit)'
[26Apr2023 14:20:53.485] [Early Visualization/INFO] [com.mojang.blaze3d.platform.GlDebug/]: OpenGL debug message: id=1285, source=API, type=ERROR, severity=HIGH, message='GL_OUT_OF_MEMORY error generated. Failed to map memory for buffer.'

Also, the exit code is -1073740940, referencing to a memory leak/an array that is too big compared to it's attributed size.

tt-thoma avatar Apr 26 '23 12:04 tt-thoma

Found the problem: The mod is conflicting with Flywheel's GPU instancing. To disable it you should go in config/flywheel-client.toml and set the variable backend to "OFF"

tt-thoma avatar Apr 28 '23 12:04 tt-thoma

Please refer to #49 for the current state of the mod.

shedaniel avatar Apr 28 '23 12:04 shedaniel

Please refer to #49 for the current state of the mod.

GPU instancing isn't the easiest thing to handle, it's okay, your mod still works fine

tt-thoma avatar Apr 28 '23 12:04 tt-thoma