Skip to content

LevelLightEngine no-arg constructor is not handled, causing uninitialized light engine state and client crashes #33

Description

@Quilt777

Describe the bug
The client crashes while rendering a block preview.
After investigating the crash with the AnvilCraft developers, they identified that ScalableLux does not inject into the no-argument constructor of LevelLightEngine.
As a result, fields expected by ScalableLux's lighting implementation remain uninitialized when that constructor path is used.
Later, when lighting information is queried, the client crashes due to the incomplete initialization state.

To Reproduce
Steps to reproduce the behavior:

  1. Install ScalableLux 0.2.0
  2. Install AnvilCraft 1.6.0 and AnvilLib 2.0.0
  3. Install JEI 29.6.2.38
  4. Viewing the crafting recipes for certain blocks (such as Oak Planks) via JEI causes the client to crash.

Expected behavior
All LevelLightEngine construction paths should initialize the fields required by ScalableLux.
Rendering code that queries lighting information should not encounter an uninitialized ScalableLux lighting state.

Screenshots
N/A

Runtime info (please complete the following information):

  • OS: MacOS
  • Minecraft version: 26.1.2
  • Mod version: 0.2.0+neoforge.cd0897f

Crash reports / logs
crash-reports: https://mclo.gs/x74NRWb
latest.log: https://mclo.gs/m3sxVPN

Other mods
Just Enough Items (JEI)
AnvilLib
AnvilCraft

Checklist

  • I am using the official version of the mod.
  • I tried the latest development version but the issue persists.
  • I searched for similar open issues and could not find an existing bug report on this.

Additional context
Removing ScalableLux completely resolves the issue.
The AnvilCraft developers traced the problem to a missing injection for the no-argument constructor of LevelLightEngine.
Issue in AnvilCraft: Anvil-Dev/AnvilCraft#3811

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions