[Bug]: Memory Leak from Bliss Shader
TqLxQuanZ opened this issue · 3 comments
I have confirmed that ...
- tacz is up to date
- unable to reproduce without tacz
Minecraft and modloader version
1.20.1-forge-47.3.0
tac version
1.0.3
Related Mods
Embeddium 0.3.31
Oculus 1.7.0
TACZ 1.0.3
Bliss Shader (https://github.com/X0nk/Bliss-Shader)
Description
There's memory leak whenever picked up guns and start shooting when bliss shader is on. The game will slowly starts to lag out over time and eventually crash once it reached the maximum amount of memory available.
There are also times that I don't need to shoot, just make sure I bring a gun up and it'll slowly pile up with memory leak.
If this is an issue from Bliss Shader itself, please let me know.
Step to reproduce
- Install all the following mods above.
- Make sure shader is on and selected on bliss shader.
- Create a new world.
- Bring out any guns through creative mode.
- Start spam shooting.
- Wait until you notice the game is lagging randomly over time, and even if you stop shooting, the memory leak still happens over time.
Logs & Crash reports
crash-2024-10-06_00.01.16-client.txt
Checked this with Bliss Shader's developer, apparently its on TACZ side.
this is indeed on TACZ's end, according to the Iris developer. it is a problem related to how the 2 mods interact when iris's hybrid deferred entities feature is used by a shader. i cannot do anything about this.
there is an option in the shader you can turn off:
shader settings -> debug/experimental -> TRANSLUCENT_ENTITIES
which turns off the use of that iris feature, but it will no longer render translucent entities correctly.
For added clarity, the current solution to this issue is to disable the 'translucent_entities' feature of Iris/Oculus.
This needs to be done on a per-shaderpack-basis (if that's wrong please correct me).
Instructions:
- Navigate to your "shaderpacks" folder
<minecraft installation> -> shaderpacks
- Open the config file (the
.txt
file with the same name as the shaderpack you're using,) and add the following line at the bottom:
TRANSLUCENT_ENTITIES=false
Note: As pointed out in this thread: Link, any shaderpacks that utilize either Bliss or Photon shaders will cause this issue.
I can confirm that I have had the same issue when running shaders. I got crashes using the Hysteria shader and could not reproduce the crash with TaCZ removed. However, I get the error java.lang.IndexOutOfBoundsException: null with Embeddium and I get java.lang.OutOfMemoryError: Failed to resize buffer from 2146435072 bytes to -2146435072 bytes with Xenon, an Embeddium fork.