Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-220024

Shader compilation slows or fails the more asterisks are in a multiline comment

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 21w16a
    • 21w11a, 21w14a, 21w15a
    • None
    • Confirmed
    • Crash, Rendering
    • Very Important

      Currently playing with shaders/include/light.glsl for a pack I want to release.

      Tried adding a "Made by: " multiline comment with a lot of *'s for style. Caused shader compilation to fail every time, or just straight up crash the game.

      This does not occur with traditional // Single line comments.

      My only guess is that this has to do with #moj_import? I haven't tried it with other shaders yet.

      /*****************
      * Add me to an include shader to slow resource pack loading to a crawl!
      * :)
      * :|
      * :(
      * :((((((((((((((
      ****************/
      /******************************************************************
      ** This has a 25% Chance of actually just outright crashing the
      ** the game on F3+T reload, and 75% chance of failing resource
      ** pack loading. Which will reset every pack you had set to be
      ** not set. That's annoying. Really *really* annoying.
      **
      ** I spent 2 hours on this problem. I really wanted to include the
      ** ASCII art of my birthday coyote too!
      ** ;-;
      **
      ** Though really, I don't think the ASCII art helped either. It had
      ** a lot of *'s too.
      **********************************************************************/
      

            xilefian [Mojang] Felix Jones
            ConstaChymic Cici
            Votes:
            4 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: