Image BLACK FRIDAY WEEK - Up to 50% off all products in our shop! Image

StackOverflowException by Self-Referencing @import


Mads_Gamer_DK
Mads_Gamer_DK
2024-07-26 17:03:46
Robby_
Approved by
Robby_
2 Votes
描述

DescriptionWhen importing the same stylesheet within itself using @import it results in a StackOverflowException, causing Minecraft to crash.

  1. Steps to ReproduceCreate an LSS stylesheet file (test.lss)

  2. Import the stylesheet within itself (@import "test.lss";)

Expected BehaviorThe stylesheet should either:

  • Handle the self-referencing @import gracefully by ignoring it, or
  • Provide a clear error message indicating the circular reference without causing a crash.

Actual BehaviorMinecraft crashes with a StackOverflowException due to the infinite loop caused by the self-referencing @import in the LSS stylesheet.

Operating System: Windows 10
Minecraft Version: unknown


评论

  • LabyMod
    LabyMod
    2024-08-07 17:21:18

    Thanks for your report. This bug/suggestion has just been completed. It will be released within one of the upcoming updates.


登陆后才能评论