Skip to content

NumberFormatException when running on a Linux kernel version with + in the name (6.6.13+bpo-amd64) #2178

@TheFlash787

Description

@TheFlash787

Expected Behavior

Nukkit should start up successfully without crashing on newer Linux versions (E.g Debian Bullseye), and kernel versions that contain + in the version name.

Actual Behavior

Nukkit will crash during startup with an error (NumberFormatException for input string "13+bpo") causing the process to exit.

Steps to Reproduce

  • Start the nukkit-1.0-SNAPSHOT.jar snapshot with a Linux kernel that contains a + symbol (E.g 6.6.13+bpo-amd64)
  • Observe the crash

Debug Information

Checklist:

  • I made sure there aren't duplicates of this report (Use Search)
  • I made sure I am using an up-to-date version of Nukkit
  • I Made sure the bug/error is not caused by a plugin

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions