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

Stack overflow caused by player action no longer handled gracefully

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Awaiting Response
    • None
    • 1.18.1, 22w03a
    • None
    • Community Consensus
    • Crash
    • Important

      Prior to 1.18-Pre2 a user action which resulted in a stack overflow was handled gracefully by the server side of the game, either the embedded (single player) server or the standalone (multiplayer) server.

      With the transition to Java 17 this is no longer the case and the exception

      java.lang.NoClassDefFoundError: Could not initialize class org.apache.logging.log4j.util.PrivateSecurityManagerStackTraceUtil

      is generated and the server stops.

      Higher up in the stack trace there is a StackOverflow exception, but this appears to be swallowed up by this further exception while attempting to handle an exception.

      This is reproduceable by having a line of powered rails bud powered and then updating on of the rails, this happens in a device known as an update suppressor, however this does occur in normal play as well when a large number of updates occur within the same action.

        1. 1.18.1.log
          10 kB
        2. 22w03a.log
          9 kB
        3. bug exception trace.txt
          33 kB

            Unassigned Unassigned
            AlanM Alan Mullett
            Votes:
            26 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: