Flywheel (Legacy)

Flywheel (Legacy)

41M Downloads

[1.20.1] [0.6.10-7] Crash when rendering translucent render type in batching backend

hlysine opened this issue ยท 0 comments

commented

Describe the Bug

Hi, Create: Copycats+ dev here. While developing the Copycat Shaft, I noticed a weirdly specific crash that Flywheel throws when a translucent material is put into the shaft. The crash happens on both Forge and Fabric and the stack trace seems unrelated to C:Copycats+.

The crash only happens when the batching backend is active and a material with RenderType.translucent() is rendered on the shaft. Because of this, I had to put in a workaround for this specific situation: https://github.com/copycats-plus/copycats/blob/6a5f7d253f9925a82f5b2738c5ec796ecad33f90/common/src/main/java/com/copycatsplus/copycats/content/copycat/base/model/functional/IFunctionalCopycatBlockInstance.java#L33-L35

Reproduction Steps

  1. Download this test version of C:Copycats+ or build https://github.com/copycats-plus/copycats/tree/6a5f7d253f9925a82f5b2738c5ec796ecad33f90 from source with the workaround commented out:
    UNZIP Copycats-forge.1.20.1-1.3.5-shaft-TEST.6a5f7d2.zip
    UNZIP Copycats-fabric.1.20.1-1.3.5-shaft-TEST.6a5f7d2.zip

  2. Place a Copycat Shaft and place tinted glass inside

  3. /flywheel backend batching

  4. Crash

Expected Result

Tinted glass renders normally

Screenshots and Videos

No response

Crash Report or Log

https://pastebin.com/mm1RRJNS

Operating System

Windows 11

What is your GPU?

NVIDIA GeForce GTX 1650/PCIe/SSE2 4.6.0 NVIDIA 537.13

Mod Version

0.6.8.a

Minecraft Version

1.19.2

Loader Version

Forge 47.2.20, Fabric 0.15.7

Other Mods

(From dev environment)

Mod List: 
		forge-1.20.1-47.2.20-minecraft-merged-1.20.1-loom.|Minecraft                     |minecraft                     |1.20.1              |DONE      |Manifest: NOSIGNATURE
		mixinextras-forge-0.3.2.jar                       |MixinExtras                   |mixinextras                   |0.3.2               |DONE      |Manifest: NOSIGNATURE
		5490499978021441488.jar                           |generated_7dfba9c             |generated_7dfba9c             |1                   |DONE      |Manifest: NOSIGNATURE
		additional-placements-674852-5142065.jar          |Additional Placements         |additionalplacements          |1.8.0               |DONE      |Manifest: NOSIGNATURE
		                                                  |Forge                         |forge                         |47.2.20             |DONE      |Manifest: NOSIGNATURE
		rubidium-574856-4952685.jar                       |Rubidium                      |rubidium                      |0.7.1a              |DONE      |Manifest: NOSIGNATURE
		flywheel-forge-1.20.1-0.6.10-7.jar                |Flywheel                      |flywheel                      |0.6.10-7            |DONE      |Manifest: NOSIGNATURE
		jade-324717-5390389.jar                           |Jade                          |jade                          |11.9.3+forge        |DONE      |Manifest: NOSIGNATURE
		create-1.20.1-0.5.1.f-26-slim.jar                 |Create                        |create                        |0.5.1.f-26          |DONE      |Manifest: NOSIGNATURE
		main                                              |Create: Copycats+             |copycats                      |1.20.1-1.3.5-shaft-T|DONE      |Manifest: NOSIGNATURE
		jei-1.20.1-forge-15.3.0.4.jar                     |Just Enough Items             |jei                           |15.3.0.4            |DONE      |Manifest: NOSIGNATURE

Additional Context

No response