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

Dedicated server crashes due to libjvm (Ubuntu, Linux)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.19.3, 1.19.4, 1.21
    • None
    • Ubuntu 22.04.2, OpenJDK Runtime Environment 17.0.7+7
    • Plausible
    • Crash, Dedicated Server

      Hello, I host a dedicated server on ubuntu and since the beginning it has been crashing every so often, every few days or so. It runs perfectly fine once restarted, but it is quite annoying to go and restart it each time. It now crashes when I try to restart it, not just occasionally. I will attach updated logs.

      I have multiple of the crash reports, but attached the most recent below. 

       

      What I have tried;

      • Updating java and JDK
      • Switching to server version 1.19.4 (From 1.19.3)
      • Running the server with less or more ram
      •  

      Here is the server specs and the command I run it with

      • Command Line: -Xms1024M -Xmx6G minecraft_server_1.19.4.jar nogui
      • Host: Intel(R) Core(TM) i5-7500 CPU @ 3.40GHz, 4 cores, 62G, Ubuntu 22.04.2 LTS Time: Fri Jun 2 19:46:48 2023 EDT elapsed time: 5.137884 seconds (0d 0h 0m 5s)

      Though as I said, I have tried changing the Xms & Xmx arguments.

       

      The most recent error happened as I tried to restart it with the above parameters,

      ...

      [19:46:48] [ServerMain/INFO]: Loaded 7 recipes

      [19:46:48] [ServerMain/INFO]: Loaded 1179 advancements

      1. A fatal error has been detected by the Java Runtime Environment: }}
      2. # SIGSEGV (0xb) at pc=0x00007f28fd96fad1, pid=603897, tid=603931
      3. #
      4. # JRE version: OpenJDK Runtime Environment (17.0.7+7) (build 17.0.7+7-Ubuntu-0ubuntu122.04.2)
      5. # Java VM: OpenJDK 64-Bit Server VM (17.0.7+7-Ubuntu-0ubuntu122.04.2, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
      6. # Problematic frame:
      7. # V [libjvm.so+0x740ad1][thread 603899 also had an error]
        [thread 603933 also had an error]
        [thread 603932 also had an error]
        G1ParScanThreadState::trim_queue_to_threshold(unsigned int)+0x14f1}}
      8. #
      9. # Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport -p%p -s%s -c%c -d%d -P%P -u%u -g%g – %E" (or dumping to /opt/minecraft/minecraftserver/antServer/core.603897)
        #
      10. An error report file with more information is saved as:}}
      11. # /opt/minecraft/minecraftserver/mcServer/hs_err_pid603897.log
      12. #
      13. # If you would like to submit a bug report, please visit:
      14. #  Unknown
      15. #

       

       

      hs_err_pid603897.log is the most recent error. I believe, given these logs, the issue to be compatibility with the libjvm library.

        1. hs_err_pid1442.log
          223 kB
        2. hs_err_pid1449.log
          236 kB
        3. hs_err_pid52083.log
          156 kB
        4. hs_err_pid603897.log
          106 kB

            Unassigned Unassigned
            tpg tpg
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              CHK: